Hello!
Is there a way to use Houdini's VOP nodes in Redshift (namely the patterns)? I know I can create a RS Vopnet on mat level, but I can't pipe anything into it and the Houdini VOP nodes are not available inside the RS Vopnet? Or am misunderstanding some basic concepts about RS shaders on mat level?
VOP Pattern Nodes in Redshift
9870 17 2-
- GiovanniB
- Member
- 10 posts
- Joined: Oct. 2015
- Online
-
- Enivob
- Member
- 2637 posts
- Joined: June 2008
- Offline
Just assign the result of the SOP based VOP to an attribute then fetch the attribute inside the Redshift Material and route it to Color or other material parameters.
If you are trying to use Mantra based patterns inside Redshift just render them out as maps and use an attribute from map to get them into an attribute Redshift can use.
Or if you are in COPs, you can fetch the result of a COPs operation into the rsTexture filename field using the op: prefix.
If you are trying to use Mantra based patterns inside Redshift just render them out as maps and use an attribute from map to get them into an attribute Redshift can use.
Or if you are in COPs, you can fetch the result of a COPs operation into the rsTexture filename field using the op: prefix.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
-
- GiovanniB
- Member
- 10 posts
- Joined: Oct. 2015
- Online
-
- TwinSnakes007
- Member
- 649 posts
- Joined: July 2013
- Offline
To use Houdini textures with Redshift, you have to set them up in COPs first, and then you can reference the COPs node in a RsTextureSampler node using the op: prefix.
Behind the scenes, Redshift will take care of baking the textures down for you automatically, including MipMapping the textures.
Behind the scenes, Redshift will take care of baking the textures down for you automatically, including MipMapping the textures.
Edited by TwinSnakes007 - April 4, 2018 18:12:32
Houdini Indie
Karma/Redshift 3D
Karma/Redshift 3D
-
- madrenderman
- Member
- 129 posts
- Joined: June 2016
- Offline
-
- jsmack
- Member
- 8127 posts
- Joined: Sept. 2011
- Offline
-
- jsmack
- Member
- 8127 posts
- Joined: Sept. 2011
- Offline
-
- TwinSnakes007
- Member
- 649 posts
- Joined: July 2013
- Offline
jsmack
That's great and all if you only want to render grids, but any other geometry would require uv coordinates, ruining the simple Cartesian relationship between the pattern space and the geometry.
Not sure I follow, without some kind of projection, how can you use them even with Mantra without UV's?
Houdini Indie
Karma/Redshift 3D
Karma/Redshift 3D
-
- Siavash Tehrani
- Member
- 733 posts
- Joined: July 2005
- Offline
-
- jsmack
- Member
- 8127 posts
- Joined: Sept. 2011
- Offline
Procedural patterns in mantra very rarely use UV's. FX geometry is generally procedurally created and cannot have good seamless UV's. Noises and other patterns are most often based on Cartesian coordinates (XYZ space.) Sometimes space transformations are applied to create other spaces such as polar/cylindrical/toroidal spaces. Cartesian space has the benefit of being continuous and uniform, so patterns do not stretch or have seams, something that is impossible with 2D mappings of 3d surfaces (UV coordinates.) Orthographic projections can avoid seams, but have terrible stretching in all but the projection direction. Triplanar mapping is sometimes used to apply seamless patterns in game engines, but is generally unsuitable for production renders as the loss of contrast repeating patterns are unacceptable.
-
- TwinSnakes007
- Member
- 649 posts
- Joined: July 2013
- Offline
-
- jsmack
- Member
- 8127 posts
- Joined: Sept. 2011
- Offline
-
- tamte
- Member
- 9130 posts
- Joined: July 2007
- Offline
it'd be the most tedious task if some renderer wanted to support Mantra patterns as they are built using VEX and therefore there is no guarantee that user didn't tweak them, therefore such renderer would have to fully support VEX, which is not happening
Maybe if one day Mantra supports OSL it may be easier to get renderers on the same page
however there are renderers with their own set of pattern nodes or math nodes you can build patterns from
so as an exercise you can have a look inside of some Mantra patterns and see if you can rebuild them in your renderer using it's math nodes
Maybe if one day Mantra supports OSL it may be easier to get renderers on the same page
however there are renderers with their own set of pattern nodes or math nodes you can build patterns from
so as an exercise you can have a look inside of some Mantra patterns and see if you can rebuild them in your renderer using it's math nodes
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- TwinSnakes007
- Member
- 649 posts
- Joined: July 2013
- Offline
tamte
Maybe if one day Mantra supports OSL it may be easier to get renderers on the same page
That would be the way to go actually, alot of 3rd party tools are adding support for OSL, so a single investment by SESI, would add alot of value to Indie Licenses that use 3rd party tools that support OSL. Lets see what H17 brings to the party in this space.

tamte
so as an exercise you can have a look inside of some Mantra patterns and see if you can rebuild them in your renderer using it's math nodes
I took a peak inside Boxes, and the main work horse is a VEX function called vop_StampPattern - so, how can I find the source code for that?
Edited by TwinSnakes007 - April 8, 2018 13:10:20
Houdini Indie
Karma/Redshift 3D
Karma/Redshift 3D
-
- tamte
- Member
- 9130 posts
- Joined: July 2007
- Offline
Daryl Dunlap
I took a peak inside Boxes, and the main work horse is a VEX function called vop_StampPattern - so, how can I find the source code for that?
in the Outer code of the Inline VOP inside you can find the includes
so just look into $HFS/houdini/vex/include/voplib.h
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- TwinSnakes007
- Member
- 649 posts
- Joined: July 2013
- Offline
-
- TwinSnakes007
- Member
- 649 posts
- Joined: July 2013
- Offline
Okay, well, my simple test with Boxes is going really well - less than 100 Math nodes to reach 95% feature parity between Mantra and Redshift (RS doesnt expose Derivatives) - yipeee….no baking!
..so, I want to also have Viewport support to assist with LookDev…and from reading the Docs, I can add a Tag ogl_glsl_shader to a VOP parameter and then point that to a OGL Shader file on disk and that should give me Viewport support as well.
Has anyone had any success with doing that?, before I waste research and testing time on finding out.
..so, I want to also have Viewport support to assist with LookDev…and from reading the Docs, I can add a Tag ogl_glsl_shader to a VOP parameter and then point that to a OGL Shader file on disk and that should give me Viewport support as well.
Has anyone had any success with doing that?, before I waste research and testing time on finding out.
Houdini Indie
Karma/Redshift 3D
Karma/Redshift 3D
-
- TwinSnakes007
- Member
- 649 posts
- Joined: July 2013
- Offline
After several hard crashes to desktop, I did manage to write the OpenGL shader, but I couldnt get UV's into it for some reason, even though they are defined, I tried point and vertex level, but the OGL shader would not read them.
I wish there was someway to just override a portion of the Viewport OGL draw, instead of all or nothing - I just want to override Shaded mode and use the Houdini defaults for everything else.
I wish there was someway to just override a portion of the Viewport OGL draw, instead of all or nothing - I just want to override Shaded mode and use the Houdini defaults for everything else.
Houdini Indie
Karma/Redshift 3D
Karma/Redshift 3D
-
- Quick Links