blending and particle effects question
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
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
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
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
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]
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]
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement