Dad72 Posted July 10, 2014 Share Posted July 10, 2014 Hi, The character disappears without that I understand why.I made you a demo, but to really see the problem, you need to follow the path towards you until the wall, of ways to see what vas not. Test Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 10, 2014 Share Posted July 10, 2014 Hello,; Is it a minZ of the camera badly set ? I have no other ideas Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 10, 2014 Author Share Posted July 10, 2014 May be, I'll look, but I do not think, because the camera is always has the same distance as the character and if watch you the demo, it does not disappear a every time. [edite] I add minZ and that doesn't change. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 10, 2014 Share Posted July 10, 2014 You are using an Octree but you didn't define your player as dynamic:octree.dynamicContent.push(mesh) https://github.com/BabylonJS/Babylon.js/wiki/Optimizing-performances-with-octrees Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 10, 2014 Author Share Posted July 10, 2014 Ah, ok, thanks. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 10, 2014 Author Share Posted July 10, 2014 This does not change. I try to do without octree and the character does not disappear, so it's because of octree, yes. but if add this:octree = scene.createOrUpdateSelectionOctree();octree.dynamicContent.push(meshPlayer);And I have the same problem of the character who disappears, but not everywhere on the ground, just has some spot depending on the orientation of the camera. I have updated the scene. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 10, 2014 Share Posted July 10, 2014 This is because you have to also add all children of meshPlayer Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 10, 2014 Author Share Posted July 10, 2014 Thanks, DK, I would have learned to use octree thanks to you. Thank you. 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.