rohan1231 Posted January 30, 2016 Share Posted January 30, 2016 Hello, I want to create a box with 3 rows and 3 columns on each face. I got a tiledGround working but I want to apply this feature to each of the face of a box. Can anyone guide me in doing it ? Thanks. Quote Link to comment Share on other sites More sharing options...
jerome Posted January 30, 2016 Share Posted January 30, 2016 Maybe this will help : http://doc.babylonjs.com/tutorials/CreateBox_Per_Face_Textures_And_Colors Quote Link to comment Share on other sites More sharing options...
rohan1231 Posted January 30, 2016 Author Share Posted January 30, 2016 Hi Jerome, Thank you for the reply. But I already went through it. The thing is only a view is not enough. I have to access the indices on each face - like how tiledGround works when pickResult.subMeshId is used. Quote Link to comment Share on other sites More sharing options...
jerome Posted January 30, 2016 Share Posted January 30, 2016 Actually you want a box built with 9 quads per face ? The standard BJS box has only 1 quad per face. I guess you have to build your own dedicated box then. Maybe could you build 6 tiled grounds (sized 3 X 3 tiles), rotate them and join them to figure a box, then merge them to get your final tiled box. Quote Link to comment Share on other sites More sharing options...
rohan1231 Posted January 30, 2016 Author Share Posted January 30, 2016 Ok. If that's the thing, I will work on it. Thanks !! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 2, 2016 Share Posted February 2, 2016 Jerome is right, you need to build a box based on 6 tiled grounds OR update the createBox to add a subdivision parameter (I like this one:)) Quote Link to comment Share on other sites More sharing options...
rohan1231 Posted February 2, 2016 Author Share Posted February 2, 2016 (edited) Ok. Thank You Edited February 2, 2016 by rohan1231 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.