HenryPeng Posted October 12, 2016 Share Posted October 12, 2016 Hey! I want to draw a line with materials as a mesh in scene, like lightning, rope or other things. And it's better that the line can be set start position and end position. I need an idea or an example Kemal UÇAR 1 Quote Link to comment Share on other sites More sharing options...
Kemal UÇAR Posted October 12, 2016 Share Posted October 12, 2016 Hello Henry ; Maybe you can do that with tube meshes; look at this docs n PG samples http://doc.babylonjs.com/tutorials/Mesh_CreateXXX_Methods_With_Options_Parameter#tube http://doc.babylonjs.com/tutorials/Parametric_Shapes#the-tube http://doc.babylonjs.com/tutorials/Discover_Basic_Elements http://www.babylonjs-playground.com/#LG3GS#8 I hope helps you hv nice works with Babylon... V!nc3r 1 Quote Link to comment Share on other sites More sharing options...
HenryPeng Posted October 12, 2016 Author Share Posted October 12, 2016 1 hour ago, KemalUCAR said: Hello Henry ; Maybe you can do that with tube meshes; look at this docs n PG samples http://doc.babylonjs.com/tutorials/Mesh_CreateXXX_Methods_With_Options_Parameter#tube http://doc.babylonjs.com/tutorials/Parametric_Shapes#the-tube http://doc.babylonjs.com/tutorials/Discover_Basic_Elements http://www.babylonjs-playground.com/#LG3GS#8 I hope helps you hv nice works with Babylon... thanks for your idea! But I dot think it work well except object like rope or other entities Kemal UÇAR 1 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 12, 2016 Share Posted October 12, 2016 The lines can not receive textures, just color it seems. the idea of doing it with cylinders / tubes allow add a rope texture for example. Kemal UÇAR 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.