ancientholiday Posted March 25, 2016 Share Posted March 25, 2016 I am trying to perform a Boolean subtraction operation on an imported Mesh (skull.babylon). I have downloaded the demo from Babylon CSG. Demo: http://www.babylonjs-playground.com/#NZPX4 The operation seems to work on native meshes, but not on imported meshes. Has anyone tried this before? I used the loader to bring in the mesh, and then tried to reference it in the subtraction operation. So far, no luck Thanks indexCSG.html Quote Link to comment Share on other sites More sharing options...
adam Posted March 25, 2016 Share Posted March 25, 2016 I couldn't get it to work either: http://www.babylonjs-playground.com/#XA6F3#1 It doesn't make it through: var aCSG = BABYLON.CSG.FromMesh(a); http://www.babylonjs-playground.com/#XA6F3#4 Quote Link to comment Share on other sites More sharing options...
dbawel Posted March 25, 2016 Share Posted March 25, 2016 Booleen operations are geometry dependant, of course. I have discovered many booleens that either don't subtract, or produce unusable results. The more complex and edge vertices, the more computation is required - and will often reach a point where the result cannot rectify. Booleens are quite tempormental operations, and I generally avoid them until there is no other option left to produce a desired result. Perhaps this is old school carefulnes, but they are definately computationally heavy and quite often produce undesired artifacts. Quote Link to comment Share on other sites More sharing options...
ancientholiday Posted March 25, 2016 Author Share Posted March 25, 2016 If the boolean does not work then I would like another way to do a cross-section of a group of meshes. Can this be achieved by making something transparent beyond a plane? Quote Link to comment Share on other sites More sharing options...
Gijs Posted October 16, 2017 Share Posted October 16, 2017 Better late than never: turns out the problem here is that the skull doesn't have its UVs set: http://www.babylonjs-playground.com/#XA6F3#10 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.