We are using the above call in our old code to know when the user is interacting with the viewport camera, to be able to optimise the render.
What would be the C# equivalent for Rhino 6?
Thanks!
We are using the above call in our old code to know when the user is interacting with the viewport camera, to be able to optimise the render.
What would be the C# equivalent for Rhino 6?
Thanks!
I’m having trouble finding CRhinoDisplayPipeline::MouseCaptured in our SDK. This is in V6?
CRhinoDisplayPipeline::MouseCapture
was available in Rhino 5. See rhinoSdkDisplayPipeline.h.
Looks like it’s been removed for Rhino 6, but it wouldn’t take much to put it back - somewhere.
I’ve made an issue in our tracking system for this:
https://mcneel.myjetbrains.com/youtrack/issue/RH-35677
– Dale
I’ve added something for next week’s WIP release. Check the issue (link above) for details.
– Dale
Great, thanks, I will leave it until then.
For completeness, when the user is actively navigating in the Iray viewport, we have a feature to lower the resolution, to increase interactivity. When the mouse button is let go, i.e. navigation stops, we fall back to full resolution.
For that, I would recommend calling DisplayPipeline.IsDynamicDisplay. This is what we use internally for what you are describing.
Thanks, I’ll take a look at that.
In the end, I was asked to do it by starting a timer on camera updates, and reverting the resolution on the timer event, so I got it to work that way.