Forum Discussion
hyperlogin
12 years agoHonored Guest
Drawing crosshair at the point my razer hydra is pointing
Hi, im making a first person shooter game with oculus and razer hydra, i wan to make a crosshair to aid the player instead of using laser pointers with his razer hydra that controls the gun. So, th...
owenwp
12 years agoExpert Protege
The best thing to do is use a custom shader. Set its render queue to "Overlay" instead of Transparent and disable depth testing with "ZTest Always". This will make it render on top of everything.
Drawing your crosshair directly to the screen in 2D also works though, and will look sharper that way. You just have to make sure to draw it once for each eye, using each camera's method for transforming from world to screen space.
Drawing your crosshair directly to the screen in 2D also works though, and will look sharper that way. You just have to make sure to draw it once for each eye, using each camera's method for transforming from world to screen space.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 12 years ago