I have a question about projects with dynamic objects that I have buildt with Sketchup Pro 2019 and like to showing in sketchup Viewer VR with our Oculus Rift. To show my projects to my clients directly inside a virtual room this works fine. But the dynamic objects cannot be used in the VR Viewer with Oculus Rift (like open and close doors and so on). How can I fix this or is this not possible ?
The Dynamic Components extension is a Ruby extension.
Only the desktop editions have a Ruby environment to run these extensions.
However, it is conceivable that simple interactions like clicking to rotate a door could be implemented in viewer code without needing the entire DC extension.
Perhaps reassign this topic to the Viewer category with a â[Feature Request]â prefix ? (There does not appear to be a dedicated category for viewer FRs.)
Iâm having a hard time conceiving of that outside of the Ruby environment. Unless itâs a completely new âfeatureâ, you would still need essentially everything thatâs âunder the hoodâ
Code to implement the âInteractâ Tool
Code to completely recalculate the attributes.
Code for the timing necessary for the OnClick functions that provide a bit of animation.
It would be, in essence, a rewrite of all but the UI of Dynamic Components - but not in Ruby.
Now if it were done with an eye to code that could be used in a desktop environment (as well as web based) - it might be worth doing as a replacement for the DC Extension offiline and adding DC function online, it might be worth Trimbleâs time.
I did say âsimple interactionsâ ⌠not full blown DC support like scaling and having extra copies of ladder rungs get created, etc. This would not need to âcompletely recalculate the attributesâ.
The viewer code (and C code using the C API) can read SKP files, including attribute dictionaries to know if an onClick has a simple rotation, what direction, how many degrees.
Creating a cursor is basic, and a tool that knows where it clicks and what it clicks on. I assume any good Graphics library for the platform in use, already has animation capabilities.
ADD: Also we are talking âviewerâ here. There is no DC authoring dialog or code needed.
Yes, we talking about the vr viewer. I ask for an idee how my client experience to open a door for example with a virtual click with a Oculus Rift controller when he is inside the room.
I see, its not easy to fix my problem.
I know you said âsimple interactionsâ. What I neglected to convey is that I doubt Trimble would be interested in implementing a subset of âinteractâ functionality - that it would likely be all or nothing - and the rest of my response was an explication of why âallâ would be very difficult.
AH okay. Now I know where your coming from. But I will disagree. The viewers themselves are a subset of the main appâs functionality. And theyâve adapted a subset of measuring functionalities since releasing the viewers. So it already has been done. And others like Adam have also done this in their 3rd party apps.