Jump to content

Behavior change for parametric Tube between v3.2 and v3.3


blondegeek
 Share

Recommended Posts

Hello,

I am using a cylinder (created with CreateTube) to visualize a SpringJoint. The cylinder is updated in scene.registerBeforeRender. The following code works with BabylonJS v3.2 but breaks for v3.3.

https://gist.github.com/blondegeek/d47355372f8cad3b373a10cb0879ba5c

If you want the specific babylon libraries I'm using please see the babylon.custom.3.*.js files in:

https://gist.github.com/blondegeek/f6e5ca0fb42765a073de831b8808729f

Any idea what is causing this change in behavior between versions?

Thanks!

Link to comment
Share on other sites

Mmmh really weird indeed.

I just checked in the Github PR history : the latest changes in the Tube or Ribbon code (the tube is a ribbon-based shape) are at least one year old.  Moreover the bug happens only on the tube update.

So I guess this issue doesn't come from the tube geometry itself but rather from the vertex buffer update : how or when it's updated ?

Can someone here remember about a recent change in the ribbon update ? I can see this about some _creationDataStorage that I don't really know :

 
Not sure it's the reason though, but the rest of the existing looks still familiar to me
 
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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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