is there any way to access e.g. the color values of an Octane-RGB-Color node for use in the Opengl Parameters of the OctaneMaterialBuilder-Node?
Or the texture/colors of a RGBImageNode or MixTextureNode etc for use in the OpenGl ogl_tex1 Paramter?
many thanks for any hint!!
jn
Octane Material OpenGL Parameters
Moderator: juanjgon
- blobbybarack
- Posts: 250
- Joined: Sun Feb 03, 2013 9:11 pm
- Location: Paris
- Contact:
you can make classic houdini reference to deal with this.
Using copy parameter on the value you want to link and paste relative reference on the OGL parameter or write the path youself with something like ch("path/value")
if you look for something more complex than Diffuse/Emission/Specular at shader top level : top right gear icon > edit parameter interface > render Properties tab> then type OGL in filter to get any viewport parameter.
One different approach is to use the Labs quick material for viewport purpose. It will be less painfull to automate things with texture.
One more funky way to do, if you are more in a not textured scene is to use MatCap where you can feed the material with square render of a shaded ball render with Octane.

Using copy parameter on the value you want to link and paste relative reference on the OGL parameter or write the path youself with something like ch("path/value")
if you look for something more complex than Diffuse/Emission/Specular at shader top level : top right gear icon > edit parameter interface > render Properties tab> then type OGL in filter to get any viewport parameter.
One different approach is to use the Labs quick material for viewport purpose. It will be less painfull to automate things with texture.
One more funky way to do, if you are more in a not textured scene is to use MatCap where you can feed the material with square render of a shaded ball render with Octane.

You can use the Houdini viewport OpenGL tags linked to any Octane node parameter. You have more details here:
https://www.sidefx.com/docs/houdini/shade/opengl.html
https://www.sidefx.com/docs/houdini/pro ... l.html#ogl
-Juanjo
https://www.sidefx.com/docs/houdini/shade/opengl.html
https://www.sidefx.com/docs/houdini/pro ... l.html#ogl
-Juanjo
There are also some other topics about this question:
viewtopic.php?f=101&t=55551
Or even some video tutorials:
https://vimeo.com/212603065#t=37m0s
-Juanjo
viewtopic.php?f=101&t=55551
Or even some video tutorials:
https://vimeo.com/212603065#t=37m0s
-Juanjo
thank you so much blobbybarack and juanjgon for your answers!!!
i`m aware of the opengl shaders, and it already helps A LOT to use them the way you described...
and also found some more infos in your links.
in fact i was wondering if there is a way to fetch an already mixed Texture or layered Texture of an OCTANE material, as sometimes you have a more complex material which i didn`t manage to use in the opengl parameters,
as i only can load an image OR a channel reference from the vopnet but not the generated texture...
So i was trying to fetch what is declared as NT_TEX_MIX:color or NT_TEX_RGB:color maybe inside the color channels of opengl params?
well probably not... right?

best
jn
i`m aware of the opengl shaders, and it already helps A LOT to use them the way you described...
and also found some more infos in your links.
in fact i was wondering if there is a way to fetch an already mixed Texture or layered Texture of an OCTANE material, as sometimes you have a more complex material which i didn`t manage to use in the opengl parameters,
as i only can load an image OR a channel reference from the vopnet but not the generated texture...
So i was trying to fetch what is declared as NT_TEX_MIX:color or NT_TEX_RGB:color maybe inside the color channels of opengl params?
well probably not... right?

best
jn