PDA

View Full Version : Fluid texture repetition


ikatz
10-12-2007, 03:35 AM
Hey, im working on a fly-through scene through clouds and the way im doing it is by animating the texture origin in one axis (x) and then keeping the camera still (so I dont have to make an incredibly long fluid). however after rendering a couple hundred frames i noticed that the texture was repeating itself (i.e. the same cloud patterns were appearing every 100 frames or so).
Does anyone know how to fix this / a good workaround?
thx.

AndersEgleus
10-12-2007, 05:16 PM
If you have a max depth of more than 1 (which you probably do since you're rendering clouds) you can set your Frequency Ratio to an uneven number (like 1.876 or 2.234). The fluid texture is basically several layers of noise added together. The Frequency Ratio determines how much the basic noise texture is scaled every iteration that's added up for the final noise. If it's an uneven number, each noise layer will still be repeted, but the different layers will be repeted at different frequencies, effectively eliminating the repetition of the final texture.

Note that if your Ratio value is very small, the higher frequency noise levels "drown" in the first level, but a value of > .5 should be ok.

ikatz
10-12-2007, 08:30 PM
thanks for the reply. my settings right now are 2.200 for Frequency Ratio and .427 for Ratio and the clouds are repeating with very minute variations every 80 frames or so. the problem is that since the camera is top-down for the first couple hundred frames the repetition of the general shapes is very noticeable.
ill try adjusting both values as you suggest (decreasing a bit FR and increasing ratio) and see if it helps.

Aikiman
10-13-2007, 10:42 PM
try animating the texture time also, may help variation a bit.

CGTalk Moderation
10-13-2007, 10:42 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.