ggg Posted March 1, 2017 Share Posted March 1, 2017 Is there anyway, we can add grid lines to show the path of the object on the webpage using babylonjs library? Quote Link to comment Share on other sites More sharing options...
BangTao Posted March 1, 2017 Share Posted March 1, 2017 i'm tring to help.not sure grid lines menas? var customMaterial = new BABYLON.StandardMaterial("cusMaterial", scene); material.wireFrame = true; mesh.material = customMaterial ; Quote Link to comment Share on other sites More sharing options...
ggg Posted March 1, 2017 Author Share Posted March 1, 2017 18 hours ago, BangTao said: i'm tring to help.not sure grid lines menas? var customMaterial = new BABYLON.StandardMaterial("cusMaterial", scene); material.wireFrame = true; mesh.material = customMaterial ; Thanks for being so kind.The grid I mean to is, Actually I'm working on 3D line drawing using babylonjs library. I could draw lines in 3D. But I would like to show grid in the canvas so that, the direction will be identified when drawn. Quote Link to comment Share on other sites More sharing options...
BangTao Posted March 1, 2017 Share Posted March 1, 2017 3 hours ago, ggg said: Thanks for being so kind.The gird I mean to is, Actually I'm working on 3D line drawing using babylonjs library. I could draw lines in 3D. But I would like to show grid in the canvas so that, the direction will be identified when drawn. Any PG?this will help a lot ` Quote Link to comment Share on other sites More sharing options...
ggg Posted March 2, 2017 Author Share Posted March 2, 2017 14 hours ago, BangTao said: Any PG?this will help a lot ` PG link: http://www.babylonjs-playground.com/#TA6A7 If you see the scene, it creates line in 3D. you can see that by rotating the object. This seems to be so blank without grid lines to show to user about in which direction the line moving. If gridlines are there, it will look complete. Quote Link to comment Share on other sites More sharing options...
BangTao Posted March 2, 2017 Share Posted March 2, 2017 try this... http://www.babylonjs-playground.com/#TA6A7#2 Quote Link to comment Share on other sites More sharing options...
ggg Posted March 2, 2017 Author Share Posted March 2, 2017 2 minutes ago, BangTao said: try this... http://www.babylonjs-playground.com/#TA6A7#2 Thanks a lot BangTao. It is really great help you did to me. Quote Link to comment Share on other sites More sharing options...
BangTao Posted March 2, 2017 Share Posted March 2, 2017 line 213 to 215 ,delete them。 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.