nuclearfallout Posted March 29, 2016 Share Posted March 29, 2016 Hi everybody, I am new the babylonjs and I want do draw a frustum, something like that: Can someone help me? King regards Quote Link to comment Share on other sites More sharing options...
JohnK Posted March 29, 2016 Share Posted March 29, 2016 Hi and welcome. Alas I am away for a couple of weeks so only have access to a mobile so cannot show you with a playground. Have a look at this tutorial http://doc.babylonjs.com/tutorials/Mesh_CreateXXX_Methods_With_Options_Parameter#cylinder-or-cone Once you have a pyramid mesh (tessallation:4) then you can use constructive solid geometry CSG to remove the top https://github.com/CraigFeldspar/BabylonCSG nuclearfallout 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted March 29, 2016 Share Posted March 29, 2016 or check if the wanted polyhedron is in the list : http://doc.babylonjs.com/tutorials/Mesh_CreateXXX_Methods_With_Options_Parameter#polyhedron http://www.babylonjs-playground.com/#21QRSK#1 nuclearfallout and RaananW 2 Quote Link to comment Share on other sites More sharing options...
nuclearfallout Posted April 7, 2016 Author Share Posted April 7, 2016 Hi,thank you, this works fine for me:http://www.babylonjs-playground.com/#1IDZCU#2Now I want to draw some colored edges like this: http://doc.babylonjs.com/tutorials/How_to_use_EdgesRendererBut its not working... If I use "enableEdgesRendering" in line 34 I got an error warning Kind regards Quote Link to comment Share on other sites More sharing options...
adam Posted April 7, 2016 Share Posted April 7, 2016 MeshBuilder.CreateCylinder http://www.babylonjs-playground.com/#PZNRC JohnK, GameMonetize and nuclearfallout 3 Quote Link to comment Share on other sites More sharing options...
nuclearfallout Posted April 7, 2016 Author Share Posted April 7, 2016 Wow, thank you <3 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.