BangTao Posted January 20, 2017 Share Posted January 20, 2017 Hello friends~ i have a new questions which is ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ ...Can babylon do the same thing like http://pawlowski.it/octtree/(a small box inside a big box,and can use Octrees to get the the small box's block);;;;; i'm tring to create a Octree like ↓,but i didn't make it... http://www.babylonjs-playground.com/#1CXEKY#0 is there some more detailed information about how to create Octree(use this :var octree = new BABYLON.Octree(...)) and get the blocks(contain mesh)? thank u! Code begin from line 57 Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted January 20, 2017 Share Posted January 20, 2017 @BangTao I've never used octree's but what i can say is that the error tells you that addMesh isn't a function; http://www.babylonjs-playground.com/#1CXEKY#1 Quote Link to comment Share on other sites More sharing options...
BangTao Posted January 20, 2017 Author Share Posted January 20, 2017 @aWeirdohaha.thx,i don't know it's "=" 。 addMesh(entry) → void Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted January 20, 2017 Share Posted January 20, 2017 @BangTao you're right, woops, i took a look at the octree code, and "new BABYLON.Octree" takes a function in the first parameter, not a mesh; http://www.babylonjs-playground.com/#1CXEKY#2 I have no idea what it's for or how it works, but good luck, hopefully someone with a bit more knowledge on the area comes around soon enough Quote Link to comment Share on other sites More sharing options...
davrous Posted January 20, 2017 Share Posted January 20, 2017 Hi, Did you check the doc: http://doc.babylonjs.com/tutorials/Optimizing_Your_Scene_with_Octrees ? David Quote Link to comment Share on other sites More sharing options...
BangTao Posted January 20, 2017 Author Share Posted January 20, 2017 @davrousof course i did,but i still don't know how to use it,i mean how to use octree to manage scene//and there is seldom pg here... Quote Link to comment Share on other sites More sharing options...
adam Posted January 20, 2017 Share Posted January 20, 2017 https://github.com/BabylonJS/Website/tree/master/Demos/Octree http://www.babylonjs.com/Demos/OCTREE/ davrous 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.