Jump to content

[SOLVED] Stopping grass movement in windless condition - plugin


photo

Recommended Posts

Hello, 

I would like to change the way the grass moves in the wind. The grass movement looks good, except that in zero wind the grass is still moving. ( region and meteo call setWindSpeed  )

Is it possible to somehow modify this behavior, so that at zero wind speed the grass stops moving completely (using properties of the ig-plugin ) ?

Thank  you

Link to comment

Hi! 
perhaps you need to add call functions:

Render::setAnimationScale(0);
Render::setAnimationWind(vec3::ZERO);

to stop the animation completely.

ig sets these parameters on average for all layers.

  • Thanks 1
Link to comment

Thank you for your reply. That's exactly what I'm doing , I'm using 2 layers ( the same result I got when I iterated through all layers with getRegions(). 

With decreasing value I observed using getAnimationScale()  when the value is around 0.00001 the scale is internally set to 1 which caused the movement of the grass. 

So you should not to exceed the given threshold. I used setAnimationSteam() to not animate the grass in this case . 

image.png.cd0cbc55562565f16690ceecad546bf8.png

 

Michal

 

Edited by michal
Link to comment
  • silent changed the title to [SOLVED] Stopping grass movement in windless condition - plugin
×
×
  • Create New...