Adding interaction in VRED for the HTC VIVE

Autodesk Support

Jul 27, 2016


For collaboration please refer to this article:

https://knowledge.autodesk.com/support/vred-products/learn-explore/caas/simplecontent/content/adding-vr-collaboration-vred-for-the-htc-vive.html 

 

Hi,
I would like to share you the setup that we showed in the video:

Before using this script please note:

These Sample scripts are not supported under any Autodesk standard support program or service. The sample scripts are provided without warranty of any kind. Autodesk disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you.

 

How to get started:

  • Install SteamVr and plug an HTC VIVE into your machine
  • Install VRED 2017 SP1 or newer
  • Extract vr_controller_vive_1_5.zip to C:\Program Files (x86)\Steam\steamapps\common\SteamVR\resources\rendermodels\vr_controller_vive_1_5\
  • Agree to replace vr_controller_vive_1_5.obj (do not worry, the original vr_controller_vive_1_5.obj file remains with the new name vr_controller_vive_1_5_ORIG.obj)
  • Extract VRED_OpenVR_Scripts.zip.001,VRED_OpenVR_Scripts.zip.002VRED_OpenVR_Scripts.zip.003 and VRED_OpenVR_Scripts.zip.004 to VRED_OpenVR_Scripts.vpb
  • Start VRED 2017 SP1
  • Open VRED_OpenVR_Scripts.vpb
  • Set View - Display - OpenVR HMD

 

How to interact with the scene:

  • Take the controller with the attached menu in your left hand
  • Take the controller without the menu in your right hand
  • Use your right index finger to push the trigger button. You will see a green ray. Shoot this green ray on the menu in your left hand or on the white viewpoints in the scene.
  • Use your right thumb to press the big button on top of the controller. This button is touch-sensitive, so depending on which tool you are using, it might matter where you press it.
  1.  PostIt - Create Positive or Negative PostIts in the scene
  2. Flashlight - Turn Flashlight On and Off
  3. Marker – Keep the button pressed to draw. You can change the accurancy of the lines in the script in line 61 (timer = vrTimer(0.1) A smaller number will give more accurate result, but will result in delays in “heavy data scenes”
  4. Sectioning - Keep the button pressed to slice through every object. Press the button on the bottom to turn clipping off.
  5. Comparison - Keep the button pressed to compare Objects. Depending on where you press the button, you will compare in X,Y and Z. Press the button on the bottom to turn comparison off. Exchange the models (ClipPlane1 and ClipPlane2 )in the scenegraph to compare different models
  6. Ruler - Change the Units from mm to inches 
  • Use the grip button on your right controller to quickly toggle through the tools
  • Use the grip button on your left controller to quickly rotate the menu by 90 degrees
  • Use the left thumb to press the big button on your left controller to rotate and scale the menu.

 

How to add you models to the scene:

  • Navigate in the scenegraph to the node Scale/Clay/ClipPlane1/Model
  • Add your Model below the node Model A. (Hide the Default Model Genesis)
  • If you use more than one Model, add your Model below Model B, Model C and Model D. (Hide all Models below that nodes)

 

How to compare models in the scene:

  • The script will always compare the visible nodes in ClipPlane1 and ClipPlane2.
  • By default MaterialGroup1 will always override the Materials in ClipPlane2
  • If you want to compare Model A and Model B:
  1. Choose Model A in ClipPlane1
  2. Uncheck the node MaterialGroup1 below ClipPlane2
  3. Right Click on the Node Model in ClipPlane2 and choose Edit - Unshare - Unshare
  4. Choose Model B in ClipPlane2
  5. Use the tool Comparision and press the big button with you thumb in your right hand


Was this information helpful?


Need help? Ask the Autodesk Assistant!

The Assistant can help you find answers or contact an agent.


What level of support do you have?

Different subscription plans provide distinct categories of support. Find out the level of support for your plan.

View levels of support