![]() |
|
#1
|
|||
|
|||
Dear Jeff,
Perhaps it is useful if i provide some more background. I am trying to get some items i render with parent=viz.SCREEN or parent=viz.ORTHO to show up on the Vive. Since my last post, i have found this: http://forum.worldviz.com/showthread.php?t=5573. So I am trying a canvas. But i'd like the vizshapes i parent to this canvas to be rendered with orthographic projection. If i set Code:
canvas = viz.addGUICanvas() canvas.setPosition([0,0,0]) canvas.alignment(viz.ALIGN_CENTER) canvas.setRenderScreenOrtho() canvas.setReferenceFrame(viz.RF_VIEW) # with or without doesn't make a difference Using Code:
canvas.setRenderWorldOverlay() Could you let me know how i can get things rendered orthographically to show up on the Vive? |
#2
|
|||
|
|||
And i have a related question. In an overlay, the sizes I should specify my objects in are in pixels, after setting the overlay to the correct resolution. I am having difficulty getting the size of the HMD's screen.
With the vive, I open a window with the default vizconnect setup for the Vive. I then try to get screen resolution: print viz.MainWindow.getSize(mode=viz.WINDOW_PIXELS) What is returned is [3840.0, 1080.0], which is the resolution of my desktop (two 1920x1080 screens, side by side) and not the Vive's resolution of 1080x1200 per eye. Similarly, the returned aspect ratio is 1.77777777778, which is the aspect ratio of one of my 1920x1080 screens. Would you know how i can get the size of the Vive (or other HMD's) screen, instead of of those automatically opened desktop windows? And specifically, how to get the size of a single eye's screen, which is what I (think I) need? Thanks! |
#3
|
|||
|
|||
Sorry to keep adding. to the last message:
specifically, i am trying to get the following info: Code:
w,h = viz.MainWindow.getSize() params.resolution = (w,h) params.refreshRate= viz.getOption('viz.monitor.refresh_rate',type=int) params.FOVy = viz.MainWindow.getVerticalFOV() params.aspectr = viz.MainWindow.getAspectRatio() print (params.resolution,params.refreshRate,params.FOVy,params.aspectr) ((3840, 1080), 60, 40.0, 1.7777777777777775) which is not the Vive, but my desktop. How to get each of these from the Vive? This is what i get after calling vizconnect.go(), with the vive setup file as argument (which works fine, 3D world looks good) |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Regarding Viconnect viewpoint | rajnishv | Precision Position Tracker (PPT) | 3 | 03-20-2017 11:03 PM |
Regarding viewpoint with vizconfig,addFloatRangeItem&Storing viewpoint in PREFERENCES | rajnishv | Vizard | 0 | 06-27-2016 03:57 AM |
Projection Matrix (onto oblique near plane) | andrewjworz | Vizard | 1 | 07-13-2012 09:10 AM |
projection matrix control & child window | kwkim | Vizard | 0 | 08-31-2011 12:53 AM |