rajib wrote:Thanks Paul
, will download now and try. I will try the nested instances and if that has problems will provide you the scene files. I will still use the cubes, circle and the cones to create the scene so that you can easily open it for the debugging.
Hi Paul,
Have tested and have an update for you. It works perfectly with any
DzInstanceGroupNode groups created but there is an additional property you need to check for before you create the scatter nodes in the Octane Plugin. For each
DzInstanceGroupNode node you find, you need to call
getPreviewControl(). That returns a
DzBoolProperty type and you can call
getBoolValue() to get the true/false value. If the
getPreviewControl() returns
true,
do not use that DzInstanceGroupNode node to create scatter nodes in Octane. Simply ignore it. This node is meant for Daz to display a low resource version of the instances on its Viewport. If the
getPreviewControl() returns
false it indicates that that node is for actual rendering and the Octane plugin should create the scatter nodes based on that. Currently I don't think the experimental plugin is taking that into account and as such is rendering twice the number of instances for scenes created with scripts like UltraScatter that add an additional proxy (low rerource) instances node meant only for preview in Daz Viewport.
//Sample script code
var PreviewControl = CurrentDazInstanceGroupNode.getPreviewControl();
var IsPreviewNode = PreviewControl.getBoolValue();
if(IsPreviewNode == true)
continue; // Ignore this
else
CreateOctaneScatterNodes(CurrentDazInstanceGroupNode);//Create the scatter nodes based on this
In the below screenshot from the CubeinstancesTest.duf I sent you in the other post, if you look at the Daz Viewport, the dark semitransparent cubes are low resource preview instances in the
UltraScattered cube proxies node. That node will return
true for
getPreviewControl(). In the Octane Viewport, you can see it is rendering the actual instances contained in the
cube Instances group (solid White) and also the preview node
UltraScattered cube proxies (semi transparent cubes). Hence the extra instance being rendered in Octane plugin.
- Preview instance and actual instances being rendered in Octane Viewport
Switching to IRAY render you can see that IRAY is ignoring the preview node, Octane plugin is not.
- IRAY ignoring PreviewNodes, Octane is not
Finally if I manually turn off the
UltraScattered cube proxies visibility, both IRAY and Octane Viewports match.
- Manually turning off the Preview node
So like I mentioned above the Octane plugin need to check the
getPreviewControl() for each of the
DzInstanceGroupNode nodes it finds and it that returns true, ignore that group node.
Hope this helps. Do let me know if you need anything else. I am attaching the scene file with this message again. It will have the visibility on
UltraScattered cube proxies on and you can verify that the IRAY and Octane Viewport won't match until the Octane plugin handles the
getPreviewControl(). The scene file has UltraScatter created nodes.
Regards,
Rajib