jessepmason Posted April 9, 2016 Share Posted April 9, 2016 Hey! I am wondering what I am doing wrong here. ( Pan camera from left to right in the playground to see the line mesh disapearing) http://www.babylonjs-playground.com/#24PQRQ#2 Basically I want to create a line mesh then alter the points positions later on First I created the line mesh with all points at Zero then I modified the path using this: mesh = BABYLON.Mesh.CreateLines(null, path, null, null, mesh); which works successfully but the problem is whenever the original line mesh is not in view of the camera( At point Zero) the line mesh is disappearing. thanks! Quote Link to comment Share on other sites More sharing options...
jessepmason Posted April 9, 2016 Author Share Posted April 9, 2016 this also happens with other meshes I took a playground from the docs https://doc.babylonjs.com/tutorials/How_to_dynamically_morph_a_mesh and just changed the camera to a free camera. if you pan up and down you will see the mesh disappear http://www.babylonjs-playground.com/#1MSEBT#28 Quote Link to comment Share on other sites More sharing options...
adam Posted April 9, 2016 Share Posted April 9, 2016 It looks like you have to refresh the bounding info. http://www.babylonjs-playground.com/#24PQRQ#3 http://www.babylonjs-playground.com/#1MSEBT#29 jerome 1 Quote Link to comment Share on other sites More sharing options...
jessepmason Posted April 9, 2016 Author Share Posted April 9, 2016 Nicely done! thanks! 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.