Jump to content

In the VR camera, how to create a point in the center forever


zhang
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...