#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) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with navigation trough DK2 Oculus | vantsal | Vizard | 2 | 12-11-2014 03:18 AM |
Oculus DK1 and DK2 in Vizard 5 | Jeff | Vizard | 3 | 10-02-2014 11:00 AM |
Oculus Rift Fullscreen | teklab | Vizard | 6 | 05-21-2014 06:11 AM |
oculus rift and inertia cube interaction problems | apboone | Vizard | 4 | 03-13-2014 10:45 AM |
Html and vizlink on Oculus HMD | mshukun | Vizard | 3 | 10-30-2013 09:56 AM |