Mirror transform for ospInstance #580
-
Hello, I am able to create ospInstance using groups. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If I understand your question correctly then you are asking for multi-level instancing, which is currently not supported (but a common feature request, see e.g. #547). Until we add this, the workaround is to pre-process the transformations in the application (or the scene graph) by combining the transformation of instance1 and instance2. This is how we do that in OSPRay Studio, see https://github.com/ospray/ospray_studio/blob/master/sg/visitors/RenderScene.h#L123-L159. |
Beta Was this translation helpful? Give feedback.
If I understand your question correctly then you are asking for multi-level instancing, which is currently not supported (but a common feature request, see e.g. #547). Until we add this, the workaround is to pre-process the transformations in the application (or the scene graph) by combining the transformation of instance1 and instance2. This is how we do that in OSPRay Studio, see https://github.com/ospray/ospray_studio/blob/master/sg/visitors/RenderScene.h#L123-L159.