Eric McG Posted July 30, 2016 Share Posted July 30, 2016 Hi, When using createTube(...) if the path consists of two Vertex3 objects that form a vertical line (same x and z coords), the mesh is not displayed. Here's a playground example: http://www.babylonjs-playground.com/#O8WDR#13. The first two meshes are not displayed, and the second two are. Thanks, Eric Quote Link to comment Share on other sites More sharing options...
jerome Posted July 30, 2016 Share Posted July 30, 2016 I'll check this Quote Link to comment Share on other sites More sharing options...
jerome Posted July 30, 2016 Share Posted July 30, 2016 something weird : if you go from y = -10 to +10, this works http://www.babylonjs-playground.com/#O8WDR#14 Quote Link to comment Share on other sites More sharing options...
jerome Posted July 30, 2016 Share Posted July 30, 2016 ok, I guess I found the bug here in Path3D : https://github.com/BabylonJS/Babylon.js/blob/master/src/Math/babylon.math.ts#L3581 It should be the comparison of Math.abs(vt.y) with 1 at least instead of vt.y with 1... Math.abs(vt.y / vt.length() ) would be even better, I think, in the case vt is passed not normalized... I'll fix this soon Quote Link to comment Share on other sites More sharing options...
Eric McG Posted July 30, 2016 Author Share Posted July 30, 2016 Thanks Jerome! Quote Link to comment Share on other sites More sharing options...
jerome Posted July 31, 2016 Share Posted July 31, 2016 bug fix submitted 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.