Pryme8 Posted June 19, 2018 Share Posted June 19, 2018 https://www.babylonjs-playground.com/#MU17PR#8 If you pan the camera up and down, you will notice a juggling/glitch effect of the reflections or refractions (not sure) jumping around when you have a "glass" material with a inside surface and outside surface. *UPDATE* Maybe its not so much PBR thing as a depth fighting thing? the environmental intensity is set to 0 on this and a hemiLight is turned on to make it simpler to see. https://www.babylonjs-playground.com/#MU17PR#17 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted June 19, 2018 Share Posted June 19, 2018 This is due to specular aliasing. You can turn on specular anti aliasing like I did on the metal here: metal.enableSpecularAntiAliasing = true; https://www.babylonjs-playground.com/#MU17PR#28 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted June 19, 2018 Author Share Posted June 19, 2018 that did clean up the metal for sure, but that is not what I was trying to debug (good catch though). If you look at the glass, watch the top of the bulb, and then pan up and down and you will see like face juggling. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted June 20, 2018 Share Posted June 20, 2018 Ohhhh I see, in this case you chould rely on alphaIndex to force the order of the transparent meshes as it is by depth by default so that order can change depending on the viewpoint. https://www.babylonjs-playground.com/#MU17PR#37 Pryme8 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted June 20, 2018 Author Share Posted June 20, 2018 https://www.babylonjs-playground.com/#MU17PR#45 why would the reflection on the shadeTopRing (the weird tube at the bottom) be at an angle? 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.