Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / Animation / Noise Controller not really random at frame zero
  RSS 2.0 ATOM  

Noise Controller not really random at frame zero
Rate this thread
 
46305
 
Permlink of this thread  
avatar
  • Location: Sarnia, Ontario CANADA (ehh)
  • Total Posts: 262
  • Joined: 22 August 2006 08:13 AM

If you created a box,say 100,100,100 and added a noisefloat to its height at say 50>0, 0.1hz,
No fractal, clone the box ten times in an x array (copies 10, x+100)

Randomize the Seeds

for i in $Box* do (i.HEIGHT.controller.seed = random 1 400)

You see that all the boxes have a height of 25, and never reach 0, or 50.

Please see enclosed file.

Not very random looking to me!



Attachment Attachment
Replies: 1
/img/forum/dark/default_avatar.png

No attachment Mark - see if this post helps.

Author: Steve_Curley

Replied: 17 August 2010 10:06 AM  
avatar
  • Location: Sarnia, Ontario CANADA (ehh)
  • Total Posts: 262
  • Joined: 22 August 2006 08:13 AM
  • Permlink of this post

Is now. Didn’t read the link but I guessed it had to be zipped and -a voila!



Replies: 1
/img/forum/dark/default_avatar.png

Yep - forum rejects files (apart from images) if they’re not zipped. Good guess :)

Author: Steve_Curley

Replied: 18 August 2010 05:16 AM  
avatar
  • Location: Sarnia, Ontario CANADA (ehh)
  • Total Posts: 262
  • Joined: 22 August 2006 08:13 AM
  • Permlink of this post

No answer to this one?

Mark Pigott 18 August 2010 10:06 AM

Is now. Didn’t read the link but I guessed it had to be zipped and -a voila!



Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 14438
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

Well, the Seed values are reasonably random - they range from 12 to 378.

The controllers all start at the same value, regardless of the Seed - you can see that in a track view if you select (only) the Height controllers for several of the boxes - they all pass through the same point (value) at frame 0 (and periodically thereafter, as the image shows, because their frequencies are the same).

The waveforms are clearly different though, so the only suggestion I can make is to offset your animation - the whole thing - by a fixed number of frames. 10 or 20 should do it with the values you’re using. Perhaps also changing the Strength and the Frequency for each box would provide better overall “randomness” to the animation.

You would probably be better off writing a script to apply the controllers once the boxes are created - that way you can play with the values more easily.

(
ctrl noise_float()
ctrl.noisestrength 50
ctrl
.frequency 0.05
ctrl
.positive true
ctrl
.fractal false

for obj in selection do
   (
   
ctrl.seed random 1 400
   obj
.height.controller copy ctrl
   
)
)

Any of the values you want to change for each one, move the line from outside the loop to inside it.

Note. For anyone else looking at this, it is for Max 9 (not 2009).



Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Attachment Attachment
Replies: 0