Jump to content

Deterministic clouds


photo

Recommended Posts

Posted

Hello,

 

we would like to configure our clouds (using the new ObjectCloudLayer) in such a way that they look identitcal when we are running two applications simultanously.

Ideally the shape of the clouds is determined by the date and the time (because it can happen that both applications are not started at the same time).

 

I know there are two functions which might help me to achieve what I want:

 

setAnimationNoiseOffset()

setAnimationCoverageOffset()

 

but I don't fully understand what they are doing.

How they are related to the wind settings and what is the valid range of the arguments?

If the valid range is exceeded, what will happen? (A jump, are the texture coords clamped or wrapped, is the texture seamless?)

 

Many thanks

 Helmut

Posted

Hi Helmut,

 

Clouds behavior should be deterministic if you have the same framerate, material, Z-coordinate of object and these two parameters (setAnimationNoiseOffset(), setAnimationCoverageOffset()).

 

The limits for that parameters are basically the min / max float value.

 

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Hello Silent,

 

thank you once more for the quick response. I think I have got it working.

I'm calling setAnimationNoiseOffset() and setAnimationCoverageOffset() once per frame, with increments of about 0.001 per second.

 

Cheers

 Helmut

×
×
  • Create New...