Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    61
  • comments
    131
  • views
    32209

Soooo do I have a heading?

Sign in to follow this  
Samsonite

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]
Sign in to follow this  


4 Comments


Recommended Comments

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.

Share this comment


Link to comment
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 -_-

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!