genvvk Posted July 19, 2017 Share Posted July 19, 2017 Hi there, Is there any kind of renderer.sortObjects() or renderer.depthTest() like other frameworks have? I have several transparent objects (alpha < 1.0) on the scene and sometimes renderer behaves glitchy (please see attachment). Theoretically, could write a function for sorting meshes by a distance to camera and set .alphaIndex, but it doesn't solve the problem with self-intersection like frame does c) & b). Babylon.JS 3.01, materials are PBRMaterial() with .disableDepthWrite = false and .alphaMode = 2. Any ideas? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 20, 2017 Share Posted July 20, 2017 As I said on github, why do you need alpha on these meshes? You should only turn alpha on the glasses Quote Link to comment Share on other sites More sharing options...
genvvk Posted July 20, 2017 Author Share Posted July 20, 2017 I need semi-transparent material for frame and temples. Different ones. By the way, these artefacts could be caused by miss-loading OBJ. Quote Link to comment Share on other sites More sharing options...
genvvk Posted July 20, 2017 Author Share Posted July 20, 2017 4 hours ago, genvvk said: By the way, I'm using v3.1-alpha version, maybe it's a good idea to try the latest stable version. 2.5 has the same issue with standard materials Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 20, 2017 Share Posted July 20, 2017 I guess the issue is on the mesh loading then Quote Link to comment Share on other sites More sharing options...
genvvk Posted July 20, 2017 Author Share Posted July 20, 2017 Nope! But I did a simple alpha reindex by a distance to scene camera. This function solved the problem partly because objects still could visually 'intersect' themselves [c) and d) illustrations] And I don't know how to fix it. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 20, 2017 Share Posted July 20, 2017 the thing is that this object is not transparent so I do not get why you need alpha Quote Link to comment Share on other sites More sharing options...
max123 Posted July 20, 2017 Share Posted July 20, 2017 I think @genvvk means "translucent" Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 20, 2017 Share Posted July 20, 2017 I guess I need a repro to better understand how to fix it 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.