blending and particle effects question

Started by
6 comments, last by kenjin 20 years, 11 months ago
does anyone know if you can do particle and blending effects toc create fires and such , but can we view these in perspective mode using glLookat ( I want to make this for my game but it seems to turn off whenever I used glLookat. Is it possible, I'' making a space simulator game
games rule
Advertisement
The mode (perspective or ortho) doesn''t really matter.
I use glBlendFunc(GL_SRC_ALPHA,GL_SRC_ALPHA_SATURATE); for my particles, you might want to try and see if you like it.

Height Map Editor | Eternal Lands | Fast User Directory
cool thanks, do you have any pics of your game on your website?
games rule
I have some pics on my web site, but none with particles.
You can see some particles (from a teleporter) on this screenshot:
http://www.happypenguin.org/images/screenshot8.jpg
The particles are blue, in the left, behind the bush

Height Map Editor | Eternal Lands | Fast User Directory
To do fire effects (additive), just use a GL_ONE, GL_ONE blend function with writing to the depth buffer disabled.

eg:


If you want a smoke effect, use GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA. Your particles will need to be depth sorted first (preferably with a radix sort).

eg:




[edited by - benjamin bunny on May 7, 2003 8:57:25 PM]

____________________________________________________________www.elf-stone.com | Automated GL Extension Loading: GLee 5.00 for Win32 and Linux

thanks for the info
games rule
wow those pics are awesome,
games rule
hey Benjamin Bunny,
Can you send me send a small snippet of your code.
I tried using some laser effects and put it into mycode
but I use gllookat and I don''t know where the laser is.

I know you can do it in perspective but I need a small example.
My frame work for my school game project is Nehe''s space ship game framework. Do I just add it in when I''m drawing the lasers.I know you have to draw it at the right time or somethings don''t show up. Or should I just try to just get a texture up there first.?
if you have any suggestions or small code it''d be great

-Kenjin
games rule

This topic is closed to new replies.

Advertisement