Fire
-
- Gnoblar
- Posts: 5
- Joined: Sat Jan 08, 2005 5:59 pm
- Location: Bristol, UK
- Contact:
Fire
Hey guys,
Just wondering if anyone has (or know someone who has) made any excellent fire effects (like a log fire) using the particle system. I looked around the boards..but cannot find any mention of such a thing. Hopefully there isn't one that I've missed
Thanks
Just wondering if anyone has (or know someone who has) made any excellent fire effects (like a log fire) using the particle system. I looked around the boards..but cannot find any mention of such a thing. Hopefully there isn't one that I've missed
Thanks
- eugen
- OGRE Expert User
- Posts: 1422
- Joined: Sat May 22, 2004 5:28 am
- Location: Bucharest
- x 8
- Contact:
- leedgitar
- OGRE Community Helper
- Posts: 61
- Joined: Wed Jan 22, 2003 1:58 am
- Location: Baltimore, MD
- Contact:
- eugen
- OGRE Expert User
- Posts: 1422
- Joined: Sat May 22, 2004 5:28 am
- Location: Bucharest
- x 8
- Contact:
here is a image of what i had in mind and the fire.particle file
hope it will help u...u can adjust it at your on will
http://www.laserrollen.de/eu/OgreForum/Fire.particle
it should work! this is a 0.13 program but the resources must be there for this new version!
hope it will help u...u can adjust it at your on will
http://www.laserrollen.de/eu/OgreForum/Fire.particle
it should work! this is a 0.13 program but the resources must be there for this new version!
- Kencho
- OGRE Retired Moderator
- Posts: 4011
- Joined: Fri Sep 19, 2003 6:28 pm
- Location: Burgos, Spain
- x 2
- Contact:
Have you seen the fire in SoulCalibur II ? That's a very realistic fire (at least for me) that is done combining a simple fire particle system, with an animated fire texture (the animation is quite simple -- fire waving). If you have the chance, take a look at that fire (you can see it around the Charade character)
- Falagard
- OGRE Retired Moderator
- Posts: 2060
- Joined: Thu Feb 26, 2004 12:11 am
- Location: Toronto, Canada
- x 3
- Contact:
-
- Greenskin
- Posts: 145
- Joined: Wed Apr 28, 2004 12:10 pm
- Location: Hungary
- Contact:
Nice work eugen. Mine (http://assidragon.uw.hu/tempstore/flames.jpg ) doesn't look the same good lol, seems there's more to learn at this part too
Hope is the first step on the road to disappointment.
- alphageek
- Gnome
- Posts: 365
- Joined: Mon Jan 03, 2005 11:56 am
- epopov
- Halfling
- Posts: 85
- Joined: Tue Jun 10, 2003 2:57 pm
- Contact:
Another one:
The particle script:
The material script:
The tga used in the material is here: http://www.evpopov.com/images/flare.tga
Note: if you use the particle script, you may need to modify the unit scale (particle width/height, velocity min/max), as in my prog 1 meter is approx 500 units.
The particle script:
Code: Select all
TRPlayer/Torch
{
material TRPlayer/Fire
particle_width 250
particle_height 250
cull_each false
quota 50
billboard_type point
// Area emitter
emitter Point
{
angle 15
emission_rate 25
time_to_live_min 1
time_to_live_max 1
direction 0 -1 0
velocity_min 100
velocity_max 500
}
affector Scaler
{
rate -200
}
}
Code: Select all
material TRPlayer/Fire
{
technique
{
pass
{
lighting off
scene_blend add
depth_write off
texture_unit
{
texture flare.tga
tex_address_mode clamp
}
}
}
}
Note: if you use the particle script, you may need to modify the unit scale (particle width/height, velocity min/max), as in my prog 1 meter is approx 500 units.
-
- Gnoblar
- Posts: 5
- Joined: Sat Jan 08, 2005 5:59 pm
- Location: Bristol, UK
- Contact:
- alphageek
- Gnome
- Posts: 365
- Joined: Mon Jan 03, 2005 11:56 am
- charlie
- Greenskin
- Posts: 146
- Joined: Mon Nov 15, 2004 1:43 pm
- Location: Austria
- Contact:
The fire in the screenshot posted by Epopov looks really great.
I wanted to get some hands on that and tried it myself (first time I was dealing with particles),
So I toke the code from the particle demo of ogre, and the files posted by you.
Although I played with the parameter Epopov mentioned I didn't get an effect that was as impressiv as on the screenshots.
I wanted to ask if you could recomment some parameters.
I can't say what's a meter in my demo, but I'm using the car form ogreode and the crate.mesh to see how big things get.
Any ideas how I should choose the params?
I wanted to get some hands on that and tried it myself (first time I was dealing with particles),
So I toke the code from the particle demo of ogre, and the files posted by you.
Although I played with the parameter Epopov mentioned I didn't get an effect that was as impressiv as on the screenshots.
I wanted to ask if you could recomment some parameters.
I can't say what's a meter in my demo, but I'm using the car form ogreode and the crate.mesh to see how big things get.
Any ideas how I should choose the params?
- epopov
- Halfling
- Posts: 85
- Joined: Tue Jun 10, 2003 2:57 pm
- Contact:
How to proceed to see the fire effect in the Ogre smoke demo:
- put the particle script in the Media/particle folder. Modify the direction vector from '0 -1 0' to '0 1 0'
- put the material script in the Media/materials/scripts folder
- put the tga file in the Media/materials/textures folder
- in the Smoke.h file from the smoke demo, modify the name of the particle script from "Examples/Smoke" to "TRPlayer/Torch" and comment the line which sets the SkyDome ('mSceneMgr->setSkyDome(...)'). Indeed, if you don't do this, the torch will not look good because it will be too bright because of the blue/white background. It's better to see it on a black background.
Recompile and run, that should work.
If you want to modify the size of the particles, act simultaneously on (for eg, divide all them by 10):
- particle_width, particle_height, velocity_min, velocity_max, rate
HTH
- put the particle script in the Media/particle folder. Modify the direction vector from '0 -1 0' to '0 1 0'
- put the material script in the Media/materials/scripts folder
- put the tga file in the Media/materials/textures folder
- in the Smoke.h file from the smoke demo, modify the name of the particle script from "Examples/Smoke" to "TRPlayer/Torch" and comment the line which sets the SkyDome ('mSceneMgr->setSkyDome(...)'). Indeed, if you don't do this, the torch will not look good because it will be too bright because of the blue/white background. It's better to see it on a black background.
Recompile and run, that should work.
If you want to modify the size of the particles, act simultaneously on (for eg, divide all them by 10):
- particle_width, particle_height, velocity_min, velocity_max, rate
HTH
- TobascoSpam
- Halfling
- Posts: 86
- Joined: Thu Nov 18, 2004 2:30 am
- Location: Texas
There's a fire shader and some other shaders at: http://www.cgshaders.org/shaders/
-
- Gnoblar
- Posts: 5
- Joined: Sat Jan 08, 2005 5:59 pm
- Location: Bristol, UK
- Contact: