zhang Posted August 29, 2017 Share Posted August 29, 2017 Hi I would like to watch the skybox in the vr camera, skybox which need to trigger an event to switch skybox. I want to add a mesh in the middle of the screen, he will not move with the deformation, and always in the middle of the screen, it plays the role is equivalent to the mouse trigger click event I hope you give suggestions, or demo thank you very much Quote Link to comment Share on other sites More sharing options...
davrous Posted August 29, 2017 Share Posted August 29, 2017 Hello, Please have a look to my tutorial: https://www.davrous.com/2017/07/07/from-zero-to-hero-creating-webvr-experiences-with-babylon-js-on-all-platforms/ and you'll see how I'm creating a circle attached to the camera to achieve what you'd like to do. Basically, you just need to set the parent of your mesh to the camera and set the z in front of it. David Quote Link to comment Share on other sites More sharing options...
zhang Posted August 29, 2017 Author Share Posted August 29, 2017 Thanks again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.