![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
#10
|
|||
|
|||
![]()
Hi all,
![]() Hope this would be useful. I've just go through Vizard5/python/oculus.py. Line 195: left,right,bottom,top,near,far = camera.getFrustum() The field of view could be computed from these "left, right, bottom, top" parameters. Line 190 - 194 showed the "camera" could come from self.getCameraList(), and self.getCameraList() came from self._sensor.getCameraList(), defined after Line 340. Similarly I found the following path of variable creation: self._sensor <-- allSensors <-- getSensors() <-- getExtension().getHMDList() <-- getExtension() <--viz.addExtension('oculus.dle') 'oculus.dle' should be a plugin of vizard, similar to the vrpn plugin, which help getting data from other apps. It looks like that oculus app did pass some info about the screen's real size and fov to vizard. Thus if you wanna get that "real fov", you just need to back compute it from the Frustum parameters returned by camera.getFrustum(). p.s. maybe in oculus app you could modify this parameter, or not ![]() Quote:
|
Tags |
field of view, oculus rift |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Render to Oculus DK2 desktop mirror only ? | performlabrit | Vizard | 1 | 07-17-2015 01:44 PM |
Oculus runtime disrupts clustering to mirror DK2 display | performlabrit | Vizard | 1 | 01-23-2015 07:00 AM |