HoloLite Posted April 18, 2018 Share Posted April 18, 2018 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) => { c.mesh.unfreezeWorldMatrix(); ... Quote Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2018 Share Posted April 18, 2018 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 HoloLite 1 Quote Link to comment Share on other sites More sharing options...
HoloLite Posted April 19, 2018 Author Share Posted April 19, 2018 Ah yes that worked! thanks much! 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.