Horde3D

Next-Generation Graphics Engine
It is currently 25.11.2024, 08:18

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Fire simulation
PostPosted: 18.07.2008, 09:18 
Offline

Joined: 10.07.2008, 10:49
Posts: 20
hi guys,

I want to simulate a little fire, says, a candle light.
I'm going to use a Particle system to simulate the light (at the moment I don't care the shadow it casts and actually it's not a light source). But the problem is the particle system emits its particles almost everywhere (I don't want such an effect).

could anyone share the experience with this?

another point, I don't know why I can't see my cursor when I switch to full-screen mode. anyone could help?


Top
 Profile  
Reply with quote  
 Post subject: Re: Fire simulation
PostPosted: 18.07.2008, 14:12 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
newbie3D wrote:
I don't know why I can't see my cursor when I switch to full-screen mode. anyone could help?
Hardware cursors in fullscreen can be a very sticky business on some platforms, and most games render their own cursor anyway. Just grab the mouse location every frame, and render a sprite there.

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
 Post subject: Re: Fire simulation
PostPosted: 19.07.2008, 23:45 
Offline

Joined: 09.05.2008, 19:02
Posts: 18
in the scene file set the spreadAngle property to something fairly low ie 20-30 probably
give a little bit of force up in the y as well, but keep it all fairly slow except if you want sparks or an exploshion effect

you probably want to have a few emitters as well, one with smaller faster particles which have a large spread value for sparks and then one with bigger slower moving and lower spread value for the actual flame.

With particles you really need to play with them there isn't really any other way to get them how you want them. The more you work with them the faster you will get what you want but just keep altering the scene and effects files

hope this helps


Top
 Profile  
Reply with quote  
 Post subject: Re: Fire simulation
PostPosted: 21.07.2008, 03:38 
Offline

Joined: 10.07.2008, 10:49
Posts: 20
Does anyone know the accepted range of lifeMin and lifeMax in ParticleConfig (in the effect xml file)?
Actually, when I change these values to something small (for e.g 0.1 and 0.2), the program encounters a exception.
(no exception met if I escape the program without doing some WASD key-strokes)


Top
 Profile  
Reply with quote  
 Post subject: Re: Fire simulation
PostPosted: 21.07.2008, 06:44 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Can't reproduce that! In which line did the exception occure?


Top
 Profile  
Reply with quote  
 Post subject: Re: Fire simulation
PostPosted: 21.07.2008, 09:27 
Offline

Joined: 10.07.2008, 10:49
Posts: 20
That's my fault :oops:
It's not because of the parameters in effect files.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group