Page 1 of 1

Output AOV Cd with pack instanced geo ?

PostPosted: Fri Mar 31, 2023 10:58 am
by fantome
Hi guys.
- I have a point cloud with Cd attribute.
- i copy pack instance a cube on the point cloud, and inherit Cd with the texture instance node
- i would like to output Cd as a global texture 1 AOV

I have try different configuration, but for the moment i have fail to do the export correctly.
I have attach the exemple scene :
instance.zip
(553.92 KiB) Downloaded 64 times


Is it even possible to do this ?

Thanks for your lights
Cheers
E

Re: Output AOV Cd with pack instanced geo ?

PostPosted: Fri Mar 31, 2023 12:06 pm
by galleon27
You already did it. You were just using the wrong Render Target. You were using /mat/octane_mat_renderTarget1 but you set up the global texture aov for /mat/Mtl_test/octane_render_target1.
If you want to use the Render Target HDA, one of the ways to ways to do it with that is to unlock it and dive inside it. Add Shader Merge node and get Texture_Instance_Color1 thats inside the Mtl_test, and connect that to the Global_Texture input, like this:
Capture.PNG


I've attached the file with 2 ROPs. One is using the Octane Render Target HDA(and the method mentioned above) and one is using render target that you created inside the material Mtl_test.

Re: Output AOV Cd with pack instanced geo ?

PostPosted: Fri Mar 31, 2023 12:45 pm
by fantome
thanks a lot for the very fast answer galleon27 !

this is actually what i do in my scene as a temp hack.
i have unlock the default render target hda and plug my texture instance in it directly, and it doesk work.

but i think while this is working, a proper way would be to be able to have a global render target for all objects in the scene.
and then be able to output PER shader a specific AOV without having to select the Render Target inside the shader.
In the same way as mantra when you just need to bind export one attribute and just create the relative image plane.

Re: Output AOV Cd with pack instanced geo ?

PostPosted: Fri Mar 31, 2023 12:51 pm
by fantome
EDIT my bad all is working fine !
- you create the render target inside the shader to specify the export
- you pick the global render target
and it works

and you did add some magic in the scene, the tricks is to :
- unlock the render target
- add a shader merge and plug it
- link the texture instance color to the shader merge

img.jpg


Thanks