Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
I'm using VRED 2019 and an HTC Vive. I want to have a menu the user can interact with pasted onto a piece of geometry in my scene. I'm trying to start from the menu.py and menu_2D.py examples, and am having no luck. The menus in these two examples are only visible in desktop view, as soon as switch to HMD view, they are nowhere to be seen. Sometimes they are not even visible in the desktop view. When I try to paste the code from the examples into my scene, the menus do not show up at all.
I opened up the menu-webengine example, and that menu is visible in the HMD view. However, pressing the buttons does not do anything, and there is no documentation or code that I can use to set something similar up in my own scene.
Is there a bug in 2019 that causes issues with vrMenu, is there something common that I'm probably doing wrong, or is there a better way for me to get a menu into my scene?
Solved! Go to Solution.
Solved by sinje_thiedemann. Go to Solution.
Hi Andrew,
using materials with web engines to display menus, like in menu-webengine.vpb, is the recommended way to setup menus for VR.
Web Engines are managed in the Media Editor module, described here in documentation: Media Editor
and To add interactive website or html content to a scene
The buttons in the menu-webengine.vpb example only work if you enable the WebInterface in the Preferences: Edit > Preferences > WebInterface > Enable Web Server
The webpage sends Python commands to the VRED Web Server to trigger some actions in the current scene.
Here is another more detailed example on Autodesk Knowledge Network: HTML 5 support in Media Editor - VRED Demo Scene
The example file VR-hands-webengine.vpb gives an example how to interact with a webpage with the built-in hand representation that was added in VRED 2019. That example also works without enabled Web Server because the "calculator" web page does not communicate with the scene.
See also Hands in VR.
Kind regards
Sinje
Can't find what you're looking for? Ask the community or share your knowledge.