View Single Post
  #1  
Old 10-06-2014, 10:24 AM
vantsal vantsal is offline
Member
 
Join Date: Sep 2014
Posts: 3
Problem with navigation trough DK2 Oculus

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()
Reply With Quote