syue87 Posted April 23, 2018 Share Posted April 23, 2018 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? Quote Link to comment Share on other sites More sharing options...
trevordev Posted April 24, 2018 Share Posted April 24, 2018 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. Sebavan 1 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.