Horde3D

Next-Generation Graphics Engine
It is currently 18.10.2017, 04:56

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 16.08.2017, 04:40 
Offline

Joined: 15.08.2017, 06:46
Posts: 5
Hi,

how can I change the size of the particle cone? I can alter its position and
orientation via h3dSetNodeTransform but the scale values have no effect.


Top
 Profile  
Reply with quote  
PostPosted: 17.08.2017, 18:43 
Offline

Joined: 17.11.2009, 17:00
Posts: 165
Location: Russia, Moscow
As far as I remember, it is regulated via h3dSetNodeParamF( emitterNode, H3DEmitterNode::SpreadAngleF, value ). Currently it is not possible to change the initial particle positions from the center of the emitter - they always start along the vector, where emitter is poiting, plus some randomness.

You can try different parameters and see the results in the editor that is in the develop branch.


Top
 Profile  
Reply with quote  
PostPosted: 18.08.2017, 01:12 
Offline

Joined: 15.08.2017, 06:46
Posts: 5
Thank you for the reply, Irdis. I had no idea the editor works on
Linux - awesome!

The editor makes it is easy to reproduce my problem: load the
particle scene (particle.scn) and modify the emitter node
properties. "Position" and "Rotation" have the intended
effect but "Scale" does nothing except when set to [0, 0, 0].

I would like to use particles to render the exhaust "flames" for
space ship engines. Since capital ships have larger engines
than drones, I need a way to scale the "flame" as a whole.

Do you have any ideas how I could do that?


Top
 Profile  
Reply with quote  
PostPosted: 18.08.2017, 15:18 
Offline

Joined: 17.11.2009, 17:00
Posts: 165
Location: Russia, Moscow
Do you mean that you want to increase the length of the trail? Then you can try to increase particle life via h3dSetResParamF( particleRes, H3DPartEffRes::ParticleElem, 0, H3DPartEffRes::ParticleLifeMaxF, 0, value );
Horde's editor allows modifying parameters of the emitter, but not the particle effect (maybe I'm mistaken, but I didn't find a way to modify them in editor). Therefore, you may have to modify the values in particle resource files. You may also take a look at ChanMoveVel (velocity channel) and its life. And you should probably check ChanSizeElem too.


Top
 Profile  
Reply with quote  
PostPosted: 19.08.2017, 11:02 
Offline

Joined: 15.08.2017, 06:46
Posts: 5
Your suggestions regarding ChanMoveVel and ChanSizeElem are spot on. If I
adjust those parameters accordingly then I get the desired effect.

Below is a screenshot of the demo I hacked up. My "problem" was that all flames
had the volume of the top one, whereas I wanted the "small" one at the bottom.
Adjusting the particle size and velocity did the trick.

Thank you for your help.

Attachment:
File comment: Particle flames
flames.jpg
flames.jpg [ 21.84 KiB | Viewed 190 times ]


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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