You can manipulate 3D objects in Wonda VR Spaces using Mozilla Spoke.
Importing your 3D Object(s) in Spoke
- Create a new project in Spoke and import our sample project (Go to file > import .spoke - you can update it later)
- Import, position and scale your 3D object (.glb) within the room
- Tag the object name by adding “wvr-interactive” (i.e. 3D-Object-Name-wvr-interactive) in the field highlighted in the screen below
- (optional) Add box-colliders (from assets > elements > box collider), locate and resize them so they cover all surfaces needed (example: floor, wall, table, …). See also below for more information about Box Colliders.
Adding a manipulable car in Spoke - The object name containing wvr-interactive
Exporting your room from Spoke and import it within Wonda VR Spaces
- In Spoke, Go to file > Export to .glb
- In the new window, be sure to uncheck the “combine meshes” option and click on Export Project
- Open Wonda VR Spaces in a new window and import your 3D room (with 3D objects) as a new room within Wonda VR together with a thumbnail image (to be called exactly “thumbnail”) see the full documentation on how to add a new 3D room here.
Previewing your 3D manipulable object within Spaces
Once you have successfully imported the Room, you can now manipulate the 3D object in a solo session or with some other participants during a co-viewing session. Simply open the link to the experience with your device and interact with the 3D object as explained below:
With one or two controllers
- press the “trigger” to hold an object
- press the “grip” to grab, rotate or drop an object
- use the multidirectional stick to bring the object closer or further away
- press the “grip” simultaneously with both your controllers to scale objects
on a PC/Mac
With the mouse
- Right click to select the 3D object
- Keep pressing to keep the object in hand
- Use the wheel mouse to bring the object closer or further away
About Box Colliders:
Manipulable objects are subject to physics. In your 3D room, gravity is defined. All physical items - or 3D objects - will be subject to gravity, they will fall if there is no “physical surface” that stop them. These physical surfaces are the box-colliders that define which surface will collide with the 3D objects and that will apply a force on the 3D object (stopping gravity or making object bounce for example). These box colliders should be added to your 3D room before importing them in Mozilla Spoke. If there are no box colliders in your existing 3D room, you can also create them directly within Spoke.