reggie Posted August 24, 2018 Share Posted August 24, 2018 Hey guys, Can anyone please help me to create one hollow box with one side open using babylon js.The box should have subdivisions inside.Thanking you guys in advance. Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted August 24, 2018 Share Posted August 24, 2018 Can't you modelise this box inside a 3D modeler? Or do you absolutely need this box to be dynamically generated? Quote Link to comment Share on other sites More sharing options...
reggie Posted August 24, 2018 Author Share Posted August 24, 2018 I was trying to generate it dynamically.Is it possible? Quote Link to comment Share on other sites More sharing options...
JohnK Posted August 24, 2018 Share Posted August 24, 2018 Hi @reggie and a warm welcome to the forum from me. Easiest way is using a tube http://www.babylonjs-playground.com/#165IV6#453 reggie, Pryme8, GameMonetize and 1 other 3 1 Quote Link to comment Share on other sites More sharing options...
QuintusHegie Posted August 26, 2018 Share Posted August 26, 2018 On 8/24/2018 at 2:31 PM, JohnK said: Hi @reggie and a warm welcome to the forum from me. Easiest way is using a tube http://www.babylonjs-playground.com/#165IV6#453 Excellent! I was looking for a simple dynamic way to do this too. Don't forget to rotate the mesh 45 degrees around the Y-axis to get the corners aligned with a regular box from BabylonJS. Quote Link to comment Share on other sites More sharing options...
reggie Posted August 27, 2018 Author Share Posted August 27, 2018 thanks @JohnK ..I was wondering how to add 2 subdivisions inside this squared structure,so that it gets equally divided into 3 parts. Quote Link to comment Share on other sites More sharing options...
JohnK Posted August 27, 2018 Share Posted August 27, 2018 Create a couple of planes, position correctly and merge box and plane. By the way if you want a rectangular open box the I suggest you use extrusion rather than tube to create the box. Just define the shape for the extrusion as a rectangle http://doc.babylonjs.com/how_to/parametric_shapes#extruded-shapes GameMonetize 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.