genvvk

Visual artefacts with semi-transparent objects

Recommended Posts

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!

artefacts2 copy.jpg

Share this post


Link to post
Share on other sites

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. :angry:

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.