Reticle cursor for Oculus - how do I create it?
Hey all,
I'm back to looking into Vizard and seeing if it might be a better fit for a project than Unity - the reason is a large point cloud, which Openscenegraph probably handles better. Anyway... I'm completely not good at Python, but have managed quite a bit from cutting and pasting bits from the example scripts to get things working. (adding joystick movement to the Rift demo for exanple) However, what I want to do is: - Can I attach the built-in cross hair from the Duck demo, to the Oculus rift, such that it shows where you are 'looking at' - And, similar to many Google Cardboard demos... a wait to click, where the crosshair simulates a mousedown (click) on an object if the person gazes at the object for about 1.5 seconds. I'd appreciate some help on this. Best Regards |
You can set the reference frame of the crosshair to viz.RF_VIEW:
Code:
crosshair = viz.addTexQuad(texture=viz.add('crosshair.png'),pos=[0,0,3],scale=[0.5]*3) |
Thankyou for replying Jeff.
I'll add these two lines of code and see how things go, this evening. An example of picking on gaze would be great to have. Best Regards. |
The following example has the crosshair fixed to the center of the screen. If were using an eye tracker the crosshair should follow the eye movements instead:
Code:
import viz |
All times are GMT -7. The time now is 03:18 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC