Octane Material OpenGL Parameters

Forums: Octane Material OpenGL Parameters
Houdini Integrated Plugin

Moderator: juanjgon

Octane Material OpenGL Parameters

Postby LLLOtoy » Fri Feb 03, 2023 11:50 am

LLLOtoy Fri Feb 03, 2023 11:50 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
LLLOtoy
Licensed Customer
Licensed Customer
 
Posts: 33
Joined: Tue Jul 19, 2016 11:13 am

Re: Octane Material OpenGL Parameters

Postby blobbybarack » Fri Feb 03, 2023 3:59 pm

blobbybarack Fri Feb 03, 2023 3:59 pm
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
blobbybarack
Licensed Customer
Licensed Customer
 
Posts: 250
Joined: Sun Feb 03, 2013 9:11 pm
Location: Paris

Re: Octane Material OpenGL Parameters

Postby juanjgon » Sun Feb 05, 2023 8:45 am

juanjgon Sun Feb 05, 2023 8:45 am
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
Octane Plugin Developer
 
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Re: Octane Material OpenGL Parameters

Postby juanjgon » Sun Feb 05, 2023 8:47 am

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

Re: Octane Material OpenGL Parameters

Postby LLLOtoy » Mon Feb 06, 2023 11:03 am

LLLOtoy Mon Feb 06, 2023 11:03 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
LLLOtoy
Licensed Customer
Licensed Customer
 
Posts: 33
Joined: Tue Jul 19, 2016 11:13 am

Return to Houdini


Who is online

Users browsing this forum: No registered users and 10 guests

Sat Apr 20, 2024 5:34 am [ UTC ]