PDA

View Full Version : Problem with navigation trough DK2 Oculus


vantsal
10-06-2014, 10:24 AM
Hi everybody,

I'm a beginner and I founded a script who link Vizard & Sketchup.

When I load the script with the Oculus, it's not possible to use the mouse/keyboard for the navigation "vizcam.WalkNavigate()". I can only view the scene but no moving. But when I disable the HMD in the script, I can navigate without problem on my 2 monitors.

Someone can explain me why I lost the navigation trough the HMD and how I can I resolve this problem?

Thanks in advance at everybody who can try to help me! ;)

SCRIPT :

import viz
import oculus
import vizcam
import vizfx

viz.go(viz.FULLSCREEN)

#add Oculus as HMD
hmd = oculus.Rift()
viz.link(hmd.getSensor(), viz.MainView)

#add keyboard navigation
vizcam.WalkNavigate()

#add model
vizfx.addChild('Grenier Version chouke.osgb')

#add environment
viz.addChild('sky_day.osgb')

#create a sunlight
sun = vizfx.addDirectionalLight()
sun.color(1.0,1.0,0.8275)
sun.setEuler(90,90,0)
viz.go()

Jeff
10-06-2014, 04:02 PM
When you link the viewpoint to the tracker the link overrides any other commands applied to the viewpoint.

Take a look at vizconnect and the Oculus desktop option in the preset configurations menu. You can also create your own configuration from the advanced menu using oculus for head tracking and a transport to move around with desktop controls. The vizconnect tutorials (http://docs.worldviz.com/vizard/#vizconnect_tutorial_displays_and_trackers.htm) will show you how to use vizconnect.

vantsal
12-11-2014, 03:18 AM
Indeed, it's a very simple way to do that. Thanks a lot again... ;)