iPhone Developer Program is waaaay too many headaches.

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: iPhone Developer Program is waaaay too many headaches.

Post by MarauderIIC »

ibly31 wrote:I think I have overwritten the "ball.png" file. All the PNGs that haven't worked have been made with Macromedia(Adobe?) Fireworks.
So... are we giving up on transparency altogether, and I wasted like, five minutes (haha) finding some resources, or are you going to make another image, post it, and give it another try?
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
ibly31
Chaos Rift Junior
Chaos Rift Junior
Posts: 312
Joined: Thu Feb 19, 2009 8:47 pm
Current Project: Like... seven different ones
Favorite Gaming Platforms: Xbox 360, Gamecube
Programming Language of Choice: C++, ObjC
Location: New Jersey.

Re: iPhone Developer Program is waaaay too many headaches.

Post by ibly31 »

How exactly do you post images? And I could see if I have any other copies of images that havent worked, gimme a sec.
Image
Twitter
Website/Tumblr
My Projects

The best thing about UDP jokes is that I don’t care if you get them or not.
User avatar
hurstshifter
ES Beta Backer
ES Beta Backer
Posts: 713
Joined: Mon Jun 08, 2009 8:33 pm
Favorite Gaming Platforms: SNES
Programming Language of Choice: C/++
Location: Boston, MA
Contact:

Re: iPhone Developer Program is waaaay too many headaches.

Post by hurstshifter »

ibly31 wrote:How exactly do you post images? And I could see if I have any other copies of images that havent worked, gimme a sec.

If you can't post an image on a message board, how exactly do you plan on programming a game in C/++ and OpenGL??? :lol:


J/K. I had to say it. Use the [img]...[/img] tags around the URL to the image. Something like photobucket.com should do the trick for hosting it.
"Time is an illusion. Lunchtime, doubly so."
http://www.thenerdnight.com
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: iPhone Developer Program is waaaay too many headaches.

Post by Falco Girgis »

ibly31 wrote:How exactly do you post images? And I could see if I have any other copies of images that havent worked, gimme a sec.
. . .
User avatar
hurstshifter
ES Beta Backer
ES Beta Backer
Posts: 713
Joined: Mon Jun 08, 2009 8:33 pm
Favorite Gaming Platforms: SNES
Programming Language of Choice: C/++
Location: Boston, MA
Contact:

Re: iPhone Developer Program is waaaay too many headaches.

Post by hurstshifter »

GyroVorbis wrote:
ibly31 wrote:How exactly do you post images? And I could see if I have any other copies of images that havent worked, gimme a sec.
. . .
This thread is slowly inching its way towards "Posts you shouldn't make"
"Time is an illusion. Lunchtime, doubly so."
http://www.thenerdnight.com
User avatar
sparda
Chaos Rift Junior
Chaos Rift Junior
Posts: 291
Joined: Tue Sep 23, 2008 3:54 pm

Re: iPhone Developer Program is waaaay too many headaches.

Post by sparda »

Mar wrote:Flamin' Falco, we'll call him,--
Hahahahahahahahahahaha!


Two things:
1) The above statement either sounds likes Falco likes men (whatever floats your boat ;) )
2) Or it sounds like Falco has a bad case of the Ghonorria or Chlamydia. Mar you have to stop spilling Falc's business like that :lol:
User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: iPhone Developer Program is waaaay too many headaches.

Post by RyanPridgeon »

Have you considered that OpenGL still writes to the depth buffer even if the pixel is alpha'd out? This means that if you draw a alpha textured quad near to the screen first, then another that is further away AFTERWARDS, the occluded parts of the latter quad wont be drawn underneath the alpha'd quad.

This means you have to do some z-sorting so that the quads with alpha are drawn from back to front. (Its also a good idea to draw all solid quads from front to back, but that wont affect your problem)

Or if you're working in 2d, just disable the depth buffer.
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
ibly31
Chaos Rift Junior
Chaos Rift Junior
Posts: 312
Joined: Thu Feb 19, 2009 8:47 pm
Current Project: Like... seven different ones
Favorite Gaming Platforms: Xbox 360, Gamecube
Programming Language of Choice: C++, ObjC
Location: New Jersey.

Re: iPhone Developer Program is waaaay too many headaches.

Post by ibly31 »

I've seen the IMG tag, but the last time I tried to use it, it didn't work right. I put the direct path to my image in the space between [img]and[/img].

Obviously I never really tried to hard, but it was just a simple question, something I thought I'd ask just to save time... (other forums you would have to post the image to the site itself, and others you would have to upload it and then post the image to the site itself.).

And why would it be "Posts you shouldn't make"? It's not like I'm trolling or anyones getting angry...?
Image
Twitter
Website/Tumblr
My Projects

The best thing about UDP jokes is that I don’t care if you get them or not.
User avatar
Netwatcher
Chaos Rift Junior
Chaos Rift Junior
Posts: 378
Joined: Sun Jun 07, 2009 2:49 am
Current Project: The Awesome Game (Actual title)
Favorite Gaming Platforms: Cabbage, Ground beef
Programming Language of Choice: C++
Location: Rehovot, Israel

Re: iPhone Developer Program is waaaay too many headaches.

Post by Netwatcher »

ibly31 wrote:I've seen the IMG tag, but the last time I tried to use it, it didn't work right. I put the direct path to my image in the space between [img]and[/img].

Obviously I never really tried to hard, but it was just a simple question, something I thought I'd ask just to save time... (other forums you would have to post the image to the site itself, and others you would have to upload it and then post the image to the site itself.).

And why would it be "Posts you shouldn't make"? It's not like I'm trolling or anyones getting angry...?
just upload your pic to something like http://www.tinypic.com and use the [IMG] tags in your post containing the full url(it should end with a .png/.jpg).
"Programmers are the Gods of their tiny worlds. They create something out of nothing. In their command-line universe, they say when it’s sunny and when it rains. And the tiny universe complies."
-Derek Powazek, http://powazek.com/posts/1655

blip.fm DJ profile - http://blip.fm/Noobay
current code project http://sourceforge.net/projects/vulcanengine/
User avatar
ibly31
Chaos Rift Junior
Chaos Rift Junior
Posts: 312
Joined: Thu Feb 19, 2009 8:47 pm
Current Project: Like... seven different ones
Favorite Gaming Platforms: Xbox 360, Gamecube
Programming Language of Choice: C++, ObjC
Location: New Jersey.

Re: iPhone Developer Program is waaaay too many headaches.

Post by ibly31 »

Sorry it took so long, I just got back from a trip with my friends.

Image

16*16 ball with transparency and some parts have semi-transparency(the anti-aliasing on the edges).
Image
Twitter
Website/Tumblr
My Projects

The best thing about UDP jokes is that I don’t care if you get them or not.
vargonian
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 60
Joined: Fri Aug 07, 2009 3:34 pm

Re: iPhone Developer Program is waaaay too many headaches.

Post by vargonian »

ibly31, as someone else eluded to, have you tried putting glDisable(GL_DEPTH_TEST); in your initialization code?

(edit: "alluded"? "eluded"?)

Also, you undoubtedly passed this hurdle already, but make sure to save your PNG as 32-bit and not 24-bit.
Last edited by vargonian on Sun Jan 24, 2010 12:44 am, edited 1 time in total.
Image
User avatar
short
ES Beta Backer
ES Beta Backer
Posts: 548
Joined: Thu Apr 30, 2009 2:22 am
Current Project: c++, c
Favorite Gaming Platforms: SNES, PS2, SNES, SNES, PC NES
Programming Language of Choice: c, c++
Location: Oregon, US

Re: iPhone Developer Program is waaaay too many headaches.

Post by short »

why the refusal to post ANY source code?

That's a dangerous thought, I should clarify.

why the refusal to post any source code that's relevant, like perhaps your image loading function?
My github repository contains the project I am currently working on,
link: https://github.com/bjadamson
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: iPhone Developer Program is waaaay too many headaches.

Post by LeonBlade »

ibly31 wrote:Sorry it took so long, I just got back from a trip with my friends.

Image

16*16 ball with transparency and some parts have semi-transparency(the anti-aliasing on the edges).
I haven't used OpenGL really at all, only SDL and for me I use something like this:

Code: Select all

Uint32 colorKey = SDL_MapRGB(image->format, 0xFF, 0x00, 0xFF);
SDL_SetColorKey(image, SDL_SRCCOLORKEY, colorKey);
That just takes all colors that have that (255,0,255) pink color to be transparent.
If transparency isn't working in OpenGL then maybe that is an alternative for now?

Also, maybe this will help you?
I'm not sure what your exact problem is sorry... http://stackoverflow.com/questions/1079 ... weird-arti
ibly31 wrote:I've seen the IMG tag, but the last time I tried to use it, it didn't work right. I put the direct path to my image in the space between Image.
Also, not to be a dick... but please don't tell me you did something like:

Code: Select all

[img]file://C:\Users\ibly31\Pictures\ball.png[/img]
Right...?
There's no place like ~/
User avatar
Arce
Jealous Self-Righteous Prick
Jealous Self-Righteous Prick
Posts: 2153
Joined: Mon Jul 10, 2006 9:29 pm

Re: iPhone Developer Program is waaaay too many headaches.

Post by Arce »

Hm. I wasn't aware we had any Objective-C coders on this forum. Maybe that's why no code? Haha.
<qpHalcy0n> decided to paint the office, now i'm high and my hands hurt
Post Reply