Octane Material OpenGL Parameters

Houdini Integrated Plugin

Moderator: juanjgon

Post Reply
LLLOtoy
Licensed Customer
Posts: 34
Joined: Tue Jul 19, 2016 11:13 am

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
blobbybarack
Licensed Customer
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.
Image
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

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
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

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
LLLOtoy
Licensed Customer
Posts: 34
Joined: Tue Jul 19, 2016 11:13 am

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
Post Reply

Return to “Houdini”