chicagobob123 Posted July 7, 2016 Share Posted July 7, 2016 I am modifying positions of a tube I created on the fly. When the first point I created the tube with goes out of camera site the tube disappears. It looks like the bounding rect is not getting updated. Created it like this, TraceRibbon=BABYLON.Mesh.CreateTube("TraceLine",TracePath,1.0,12,null,0,scene,true); Update the path and positions of the points like the call this. TraceRibbon=BABYLON.Mesh.CreateTube(null,TracePath,1.0,null,null,null,null,null,null,TraceRibbon); When I pan the camera and the FIRST position point is off the screen the tub disappears. Maybe a bounding box is not updated? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 8, 2016 Share Posted July 8, 2016 Hiya CB! Hey, can you create a playground scene that shows this issue? That would help much, thx. Quote Link to comment Share on other sites More sharing options...
jerome Posted July 8, 2016 Share Posted July 8, 2016 yep, the BBox is not updated I'll add this auto-update soon, you can just call after : TraceRibbon.refreshBoundingInfo() Quote Link to comment Share on other sites More sharing options...
jerome Posted July 8, 2016 Share Posted July 8, 2016 I just PR a fix to update the BBox in the same time the mesh is dynamically morphed for all the ribbon based shapes : ribbons, tubes, extrusions, etc adam 1 Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted July 8, 2016 Author Share Posted July 8, 2016 Thanks Jerome, 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.