question

Julio R avatar image
1 Like"
Julio R asked Phil BoBo answered

Names and Stats in VR

Hi,

I'm working on a VR model and I want to show some information in real time. To do so I was trying to use the name or stats of an operator to express some information (a label) so you could see it hovering over the operator or under him. It works fine in traditional 3D view, but on VR you can see names and stats.

Is there a way to make the name and stats visible in the VR mode?

Also, I would like to change the position of objects and operators by grabbing them like you can do with the mouse in traditional 3D. I know this is hard, I was able to replicate the buttons and mini-operators shapes of the example models (zombies and factory), I guess that can be done with the collision logic behind those but I'm not sure how to start that one. Any suggestions?

Thank you.

FlexSim 18.0.2
dashboardsvrstatsinteraction
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered

The names and stats are drawn in screen coordinates at a certain pixel size. In VR, you don't have a flat screen to draw on like this. Instead of trying to use flat text, use 3D text. You can use the Display Object Statistics pick option in the Text Display of the 3D Text object.

"I would like to change the position of objects and operators by grabbing them like you can do with the mouse in traditional 3D."

I don't understand what this means.

You can change positions of objects by calling setLocation() on the object. You can follow the example of the mini-operator shapes for grabbing and moving things. Instead of moving little figurines, add hand-sized control points that you can grab and move that will move the bigger object accordingly. Use the overloads of setLocation() and getLocation() that take x, y, and z factors in order to get the location and set the location of an object based on a certain relative position on that object.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.