cspears2002 Posted October 27, 2009 Share Posted October 27, 2009 I'm working on a free tutorial from cmivfx that shows how you to build a noise spectrum VOP and use it to deform a grid. Unfortunately, I am getting an error. I'm pretty sure that problem is coming from the For Loop VEX node I'm using. Any ideas on what I'm doing wrong? creating_noise_function_v03.hipnc Quote Link to comment Share on other sites More sharing options...
eetu Posted October 27, 2009 Share Posted October 27, 2009 The variables inside the For loop are prefixed with an underscore (to differentiate from the values outside the loop), you need to use the underscores in your inline VOP. $noise = $_amplitude * noise($_frequency * $_P); Also, not fatal, but the inputs to the Inline VOP and the For loop seemed to have gone out of sync (the extra _next variable), so I rewired the Inline VOP As an extra tip, I'd recommend using parameters instead of constants for the amplitude and frequency to make them easier to adjust outside the VOPSOP. On the same note, I'd make a new parameter called something like "octaves" and connect it to the "end" input of the For loop. eetu. creating_noise_function_v04.hipnc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.