Jump to content

multiple size and color in a single extrusion


syue87
 Share

Recommended Posts

I'm trying to achieve the following effect with babylon.js in 3d for a visualizer for 3d printing. I need to be able to gradually change the color and the size(or shape) of the extrusion along a single extruded path. It is possible?

zKWKaRJjybNEDzGS9kGa9C8JcTxaRRqIUZwz3-iuHyo.jpg.f082126a71b96ded757e096640543782.jpg

Link to comment
Share on other sites

Try looking at tube meshes http://playground.babylonjs.com/#Z1SIC#1 . See http://www.babylonjs-playground.com/#1A4DON#19 to see how to smoothly change size using the radiusFunction parameter. As for changing color you could try to use the gradient Material like in the previous playground but it's not properly aligned to the tube so it might be better to manually create your own gradient textures to map properly to the tubes shape.

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