![]() |
#1
|
|||
|
|||
Oculus setZoom
It appears that there are more Oculus related modules in Vizard 5 and I truly appreciate newly added functions. However, I encountered a problem that not to be able to zoom in and out using Xbox controller. It was working with the Vizard 5 beta version, but the code no longer work with the Vizard 5 (the code shown below). I appreciate your help and thank you in advance.
Code:
self.zoom = 1 def setZoom(self): if joy.isButtonDown(6): self.zoom = self.zoom - 0.001 elif joy.isButtonDown(5): self.zoom = self.zoom + 0.001 hmd.setZoom(self.zoom) vizact.ontimer(0, self.setZoom) |
#2
|
|||
|
|||
Can you narrow down the problem to either the joystick code or the zoom command? Does the zoom command work for you on its own?
Code:
import oculus hmd = oculus.Rift() hmd.setZoom(1.5) |
#3
|
|||
|
|||
I found that setZoom is not working... How can I fix the problem? I have Oculus DK1.
|
#4
|
|||
|
|||
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) |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with navigation trough DK2 Oculus | vantsal | Vizard | 2 | 12-11-2014 04:18 AM |
Oculus DK1 and DK2 in Vizard 5 | Jeff | Vizard | 3 | 10-02-2014 12:00 PM |
Oculus Rift Fullscreen | teklab | Vizard | 6 | 05-21-2014 07:11 AM |
oculus rift and inertia cube interaction problems | apboone | Vizard | 4 | 03-13-2014 11:45 AM |
Html and vizlink on Oculus HMD | mshukun | Vizard | 3 | 10-30-2013 10:56 AM |