dbs2000 Posted July 31, 2015 Share Posted July 31, 2015 I am facing a strange problem. I am trying to draw tubes between points. The points are determined based on some mathematical logic. Strange thing is that for some combination of coordinated the tubes don't show up. Below is an example. var path = ;path.push(new BABYLON.Vector3(22, -3.1945000000000014, 0)) //point 1A//path.push(new BABYLON.Vector3(22, -3.1944000000000017, 0)) //point 1Bpath.push(new BABYLON.Vector3(22, 24.25, 0)) //point 2var tube = BABYLON.Mesh.CreateTube("tube", path, .15, 16, null, 0, scene, false, BABYLON.Mesh.FRONTSIDE) If I run the above code the tube will NOT show. But if i comment "point 1A" and uncomment "point 1B" then the line will show up. If you notice the difference between "point 1A" & "point 1B" is in value of "y". Its a very small difference. For some combination of points the tube totally disappears. For slightly higher or lower values of "y" it again shows up. Another thing is the sequence.. If I add the "point 2" before "point 1B" then also the tube does not show. Quote Link to comment Share on other sites More sharing options...
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.