Jump to content

Half of the tube disappears


Recommended Posts


I'm trying to draw an angle on XOY plane but it seems something is wrong. Here's a sample to reproduce the issue: http://www.babylonjs-playground.com/#RQ5WYS.

I uses the following points to create the tube, but the result is obviously not my expectation.

var myPath = [
            new BABYLON.Vector3(0, 0, 0),
            new BABYLON.Vector3(10, 0, 0),
            new BABYLON.Vector3(0, 10, 0)
But when I change the 3rd point from (0,10,0) to (0,0,10), i.e. to draw the angle on XOZ plane, the graph looks ok.
In addition, the angle also appears if changing the 3rd point from (0,10,0) to (0.0001, 10, 0), but the tube line tapers along x-axis.
Link to comment
Share on other sites

The internal path of the tube builds a Path3D object http://doc.babylonjs.com/how_to/how_to_use_path3d

When built with not enough points and at some limits for the normal/binormal computations (like 90° angles) it can leads to some weird expected results. Just add more points to your path (more than only 3) and it should work.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...