• entries
61
131
• views
32209

Soooo do I have a heading?

164 views

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]

yey pretty pictars

Awesome! Not only are you once again on the ball, but your screens look dead sexy! :)

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.

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 -_-

Create an account

Register a new account