x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Translucency sorting issue.

Hello! I have an issue with my translucent crystals. As you can see on screenshots below, slightly to the left or slightly to the right, and weird sorting bugs appear.

alt text alt text

I've tried to change sort priority type in project settings, see if it will improve anything. It fixes some bugs, but makes another appear under different angles. Changing sorting priority on meshes does not help in this case. It only makes some crystals pop-out above all other.

One good solution that I found is to use Masked instead of Translucent in Blend Mode of the material. And then applying DitherTemporalAA node to the alpha texture. But unfortunately, this blend mode does not support refraction. And crystals without refraction are lame :(

Is there anything that could be done here?

Product Version: UE 4.20
Tags:
2.png (616.3 kB)
1.png (624.1 kB)
more ▼

asked Oct 06 '18 at 03:02 AM in Rendering

avatar image

Kligan
56 12 15 23

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Any sorting happens on per component basis, so if your crystals are one mesh, the order in which surfaces will appear solely depends on the order they were created in your content creation package and/or exported from it. Even if each crystal is a separate mesh(which you should not be doing anyway), the sorting will only grantee clean result if the meshes are spread out sufficiently.

What you can do, is render your mesh into custom depth pass and in its material, check if pixel depth roughly equals custom depth. If so, set opacity to 1, otherwise 0.

more ▼

answered Oct 07 '18 at 10:04 AM

avatar image

Deathrey
7.9k 130 31 293

avatar image Kligan Oct 07 '18 at 12:54 PM

Hi! Thank you for your reply!

Crystals are separate meshes, combined in a blueprint, to make different formations.

I'll check out custom depth pass, thanks you for the advice!

Right now I just fixed this by placing a small stone in-between those crystals, just to make a "cosmetic cover up" :D alt text

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question