Antialiased Flow Noise in VEX or SOP

   1231   6   0
User Avatar
Member
63 posts
Joined: June 2020
Offline
Hi
Is it possible to exactly replicate the animated Antialiased Flow Noise VOP using VEX ot the Attribute Vector/Flow Noise SOP?
Or is a VOP absolutely necessary?
Edited by PaoloGiandoso - Aug. 31, 2024 18:13:51
User Avatar
Member
4730 posts
Joined: Feb. 2012
Offline
Hi,

You can do this in VEX easily:

#include <voptype.h>
#include <voplib.h>

vector noise = vop_fbmFlowNoiseVV(@P * chv("freq") - chv("offset"), ch("rough"), chi("maxoctave"), ch("flow"), ch("flowrate"), ch("advect"));
noise *= ch("amp");

@P += noise;

Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
63 posts
Joined: June 2020
Offline
animatrix_
You can do this in VEX easily
THANKS! This is super useful!
Anything with the Attribute Vector/Flow Noise SOP?
User Avatar
Member
4730 posts
Joined: Feb. 2012
Offline
PaoloGiandoso
animatrix_
You can do this in VEX easily
THANKS! This is super useful!
Anything with the Attribute Vector/Flow Noise SOP?

AA Noise SOP uses Unified Noise - Static VOP which uses pyro_noise.h. AFAIK vop_fbmFlowNoiseVV is not available this VOP.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
63 posts
Joined: June 2020
Offline
animatrix_
AA Noise SOP uses Unified Noise - Static VOP which uses pyro_noise.h. AFAIK vop_fbmFlowNoiseVV is not available this VOP.
Apologies I can not understand what you mean. Could you rephrase it?
User Avatar
Member
8045 posts
Joined: Sept. 2011
Offline
animatrix_
PaoloGiandoso
animatrix_
You can do this in VEX easily
THANKS! This is super useful!
Anything with the Attribute Vector/Flow Noise SOP?

AA Noise SOP uses Unified Noise - Static VOP which uses pyro_noise.h. AFAIK vop_fbmFlowNoiseVV is not available this VOP.

The vop fbm flow noise wrapper is a wrapper for the flownoise VEX function. Pyro noise also has a wrapper for flownoise, exposed on the unified noise vop as 'perlin flow'.

Unified noise has different scaling, and the wrapper is different from the voplib one, so they won't match exactly, at least not without reverse engineering the exact offsets and scales to make them match.
User Avatar
Member
63 posts
Joined: June 2020
Offline
If I understood correctly, there is no way to replicate the AA FlowNoise in the the AA Noise SOP
Also, AAFlowNoise and FlowNoise VOPs are wrappers for the flownoise VEX function, did I get it right?

jsmack
Pyro noise also has a wrapper for flownoise, exposed on the unified noise vop as 'perlin flow'.
Thanks!
What do you mean with Pyro Noise? When I create an attribute VOP I see 2 nodes called unifiedNoise and UnifiedNoise_Static. They both have a Noise Tyepe called "Perlin Flow" available. Does it mean that both these nodes set to "Perlin Flow" are also a wrapper for the flownoise VEX function?

The AAFlowNoise is so useful that I am puzzled sideFx has not added it to a SOP already.
Edited by PaoloGiandoso - Oct. 30, 2024 19:39:40
  • Quick Links