DJousto Posted February 27, 2016 Share Posted February 27, 2016 Hi, I try to display a small sphere, and the scene is inside an other sphere (with backculling) in order to create a background image, the result is : http://boobiz.fr/planetadvisor/babylonbug.html with only one sphere the rendering is ok Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 27, 2016 Share Posted February 27, 2016 Hi DJousto I reduced the sizes of your things a little bit, and made a Babylon playground scene from it. http://www.babylonjs-playground.com/#1AOLYB#1 Maybe this will help you. You can make changes and hit RUN, over and over, to experiment. If you have more questions, please ask. Quote Link to comment Share on other sites More sharing options...
Temechon Posted February 27, 2016 Share Posted February 27, 2016 Hey DJousto, Your spheres are too far from the center (0,0,0) : this is a known problem caused by the depth buffer. You have to either reduce the size of your scene (like Wingy solution), or use logarithmic depth buffer http://doc.babylonjs.com/tutorials/Using_logarithmic_depth_buffer Good luck Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 27, 2016 Share Posted February 27, 2016 I was actually able to get it working without size reductions (in my #1 PG version)... but I forgot to update my post. (which was talking about my #0 version) So, yeah, my PG #1 doesn't reduce size, but it changed to arc and I set some camera speed, and... um... i set background to doubleside instead of backside, and then set background sphere visibility to 50%. The inner sphere was doing something... looked like z-fighting. I don't know if my switch to doubleside fixed that, or what happened there. Might be worth investigating further. Edit: Yeah, it was maxZ, which you guys already figged. But yeah, that puppy is big big big. Rare that we work big numbers like that. I got a little scared. Check out my camera speed - ROCKET powered! Quote Link to comment Share on other sites More sharing options...
DJousto Posted February 27, 2016 Author Share Posted February 27, 2016 works perfectly with "sphere.material.useLogarithmicDepth = true;" Here is the result and yes, objects are big, I tried to represent real scale of earth, I could have divided by 1000 or more but if I manage to make it work in scale why not ? Thanks a lot, bye. Wingnut and jerome 2 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 27, 2016 Share Posted February 27, 2016 Beautiful! Nicely done! Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted February 28, 2016 Share Posted February 28, 2016 have you thought about using a skybox instead? It will give the same effect, and you can get rid of the distortion at the absolute top and bottom. GameMonetize 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.