Dieterich Posted October 16, 2018 Share Posted October 16, 2018 Hi babylonsss! What's the better way to create pyramid trunk, and cut top surface? I create one cylinder and set tesselattion 4 sides, this work, but.. only improvisation I figured in updating the mesh, but I do not know which vector to remove the surface.. This my initial example: http://www.babylonjs-playground.com/#SMRU59#1 Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Dieterich Posted October 17, 2018 Author Share Posted October 17, 2018 Hi! I finally found what I was needing, but I have a small problem with 'sideOrientation = BABYLON.Mesh.DOUBLESIDE' because it is not displaying the interior texture .. why? http://www.babylonjs-playground.com/#SMRU59#4 @Wingnut @JohnK @Deltakosh @jerome @Pryme8 @Sebavan any? Thanks. Quote Link to comment Share on other sites More sharing options...
JohnK Posted October 17, 2018 Share Posted October 17, 2018 Just need to add one line pyramid.material.backFaceCulling = false; http://www.babylonjs-playground.com/#SMRU59#7 Dieterich 1 Quote Link to comment Share on other sites More sharing options...
Dieterich Posted October 17, 2018 Author Share Posted October 17, 2018 Wow, I don't forget more this. That's solved. Thanks @JohnK Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted October 17, 2018 Share Posted October 17, 2018 @Dieterich hi wait a 10 min plz Dieterich 1 Quote Link to comment Share on other sites More sharing options...
Dieterich Posted October 17, 2018 Author Share Posted October 17, 2018 Hi @NasimiAsl, no problem..I wait.. Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted October 17, 2018 Share Posted October 17, 2018 https://www.babylonjs-playground.com/#QPTGM2 https://www.babylonjs-playground.com/#QPTGM2#1 that is flat level of sides if you interested i can make rounded sides too ping @Dieterich Wingnut, Dieterich, jerome and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted October 17, 2018 Share Posted October 17, 2018 @Dieterich actually side orientation is about triangle order not culling ? as @JohnK mentioned you need to rely on backfaceCulling here. DoubleSide is mainly use during mesh creation and will duplicate the triangles to be visible from both sides. Dieterich, NasimiAsl and Wingnut 3 Quote Link to comment Share on other sites More sharing options...
Dieterich Posted October 17, 2018 Author Share Posted October 17, 2018 @NasimiAsl ? very well, you have dedicated with several examples. congratulations. You are very good at what you do. I thank everyone. @JohnK @Sebavan NasimiAsl 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.