Advertisement

Lesson20 masking - adding on

Started by October 02, 2003 04:37 PM
0 comments, last by SeaCarp 21 years, 5 months ago
the only code i ever tried using for masking is from lesson20 simple enough: 2 polygons, 1 texture, 1 mask! i wanted to add in the function glColor4f(r,g,b,a); just to add the ability to change the overall opacity of the image being drawn i couldnt get it to work...? can someone explain or post the code need to get this to work weather it be add on to lesson20 or new code i need it for particles so the less life they have the more transparent they get :D Thanks
I thought the whole masking business was a bit messy, but you will notice at the end of that tutorial it hints that adding an alpha channel to your image would probably achieve better results.

I''ve written some functions that will load a bitmap, add an alpha channel to it then you can then set the opacity of the image as you wish.

It is fairly easy to do once you know what you are looking at if you like this idea and need any help with it just yell.

This topic is closed to new replies.

Advertisement