Jump to content

Call to scene.freezeActiveMeshes causes vr controllers not to show up


Recommended Posts

I noticed that the call to scene.freezeActiveMeshes is causing the vr controllers not to show up at all.
Turning off and on the controllers does not help.

I wonder if this is the expected behavior as all meshes are supposed to be frozen ? If this is so, what is the workaround to make the controllers show up and still keeping the rest of the meshes frozen?

I tried to do the following which is to unfroze the world matrix of the controller mesh, but this does not help.

           this._vrHelper.onControllerMeshLoadedObservable.add((c: BABYLON.WebVRController, eventState: BABYLON.EventState) => {


Link to comment
Share on other sites

This function will freeze the list of active meshes (this is different from freezing mesh worldMatrix). So even if you add more meshes in the scene they will not be displayed

To make sure you have the controllers in the list, just call the scene.freezeActiveMeshes in the onControllerMeshLoadedObservable observable

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.

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.


  • Recently Browsing   0 members

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