Soooo do I have a heading?

Published November 07, 2006
Advertisement
Yes.

I have decided to continue working on Extra Terrestrial Invasion, which I hope to have finished by christmas.

What I've been working on
I can't keep myself. I have to make a journal update with more than just text, so here goes my first project-oriented post in a long time.

Blending
Yes, believe it or not, blending wasn't implemented before today. However there are a few bugs:


This shows a very irritating bug which involves an "alpha" layer being laid on the whole ship image. I've moved to PNG and SDL_image, so I used the GIMP to make some alpha channels, but it doesn't seem to work. [sad]


This shows a more right way. As you can see the blending only occurs on where I want it(around the ship) It also shows the newly implemented bullet system(deaths will soon be implemented, however I have a hard time doing animation and FPS limiting/timing).

So I have two more weeks before I go back to my mum. But right now I have to go to sleep. Tell me what you guys think, especialy what you think that blending problem is. (I'm currently using
glBlendFunc(GL_SRC_ALPHA, GL_ONE)
)

Thanks alot, see you guys later with a hopefully better update. [smile]
Previous Entry I'll be damned!
Next Entry Progress.
0 likes 4 comments

Comments

Gaiiden
yey pretty pictars
November 07, 2006 07:32 PM
HopeDagger
Awesome! Not only are you once again on the ball, but your screens look dead sexy! :)
November 07, 2006 10:40 PM
shadowcomplex
Are you still having the problem with blending in the first screenshot?

If so, I had a similar problem. It turned out that the *.png is stored as ARGB, not RGBA (or vice versa, can't remember). After knowing this I just had to change a few things when loading the texture. I don't have the souce handy, but PM me if you need it and I'll send it your way later today.

Also, when I use *.png with the alpha channel, I typcially set up the blending like:

glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);

Unfortunately I am no expert on OpenGL, but it works for me.
November 09, 2006 10:42 AM
Samsonite
Thanks alot guys it really means alot to me [smile].

And thanks for the tip, shadowcomplex. I'll test it once I get this damn sound stuff to compile -_-
November 10, 2006 03:19 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Goodbye, Gamedev!

1240 views

Untitled

1109 views

Merry Christmas!

1140 views

Untitled

1094 views

Scrolling Demo

1031 views

New PC

911 views

Untitled

853 views

Untitled

888 views

Progress.

916 views
Advertisement