Thread: Oculus setZoom
View Single Post
  #4  
Old 10-24-2014, 08:04 AM
mshukun mshukun is offline
Member
 
Join Date: Jan 2013
Posts: 32
I would very much appreciate any of your inputs regarding the Oculus setZoom function. I tested <hmd>.setZoom() for both 360 panorama and the 'piazza.osgb', but I wasn't able to make the function work. I didn't have any problems with Oculus setZoom() using Vizard 4 and Vizard 5 Beta so I am wondering if I need to do something extra or different approach for Vizard 5.

Thank you in advance.


Code:
import viz
import oculus

viz.setMultiSample(4)
viz.fov(60)
viz.go(viz.FULLSCREEN)

hmd = oculus.Rift()
viz.link(hmd.getSensor(), viz.MainView)

# I tested various numbers for hmd.setZoom(), but it is not working... 
hmd.setZoom = (1.5)

env = viz.addEnvironmentMap('C:/Program Files/WorldViz/Vizard5/resources/townhall_L.jpg')
sky = viz.addCustomNode('skydome.dlc')
sky.texture(env)
Reply With Quote