masterdon Posted August 3, 2017 Share Posted August 3, 2017 Hi Team, I am creating arrows using ribbon http://www.babylonjs-playground.com/#I22AB#4 Using material, I am trying to set the color to the arrows. however i am failing here. what am i missing? Quote Link to comment Share on other sites More sharing options...
jerome Posted August 3, 2017 Share Posted August 3, 2017 http://doc.babylonjs.com/tutorials/parametric_shapes#the-ribbon The ribbon geometry requires an array of paths at construction time. If you pass only one path in the array, you need to create at least four points and set the offset value. http://doc.babylonjs.com/tutorials/ribbon_tutorial Quote Link to comment Share on other sites More sharing options...
masterdon Posted August 3, 2017 Author Share Posted August 3, 2017 Thanks a lot for quick reply jerome. i can add the 4 points instead of three here. What other shape should be a good option for 3 points? Quote Link to comment Share on other sites More sharing options...
jerome Posted August 3, 2017 Share Posted August 3, 2017 The real question is : what do you intend to do ? Usually, the best and easiest way to deal with ribbon is to set an array of paths (at least 2, each containing 2 or more points) Quote Link to comment Share on other sites More sharing options...
JohnK Posted August 3, 2017 Share Posted August 3, 2017 For 3 points perhaps either of these is a better option http://doc.babylonjs.com/tutorials/polygonmeshbuilder http://doc.babylonjs.com/tutorials/mesh_createxxx_methods_with_options_parameter#disc 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.