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"

Z-Buffer problems with paper2D sprites using Translucent material

If I set all my sprite materials to MaskedUnlit... then everything is fine; but I don't want to lose the smooth antialiazed borders of my sprites I imported from PNGs.

When I use TranslucentUnlit materials then the sprites rendering order become buggy and unstable. See the images attached. The character is at y=0 while the yellow bar is far away y=-100, anyway the zbuffer problem occurs at random positions.

The black dotes eyes of the character are sprites and I am forced to make them Masked because with Translucent they almost never show up in front :(

How can I fix this if possible?

Thanks

screenshots: alt text alt text alt text alt text

Product Version: Not Selected
Tags:
clipboard02.jpg (11.7 kB)
clipboard03.jpg (14.9 kB)
clipboard04.jpg (12.2 kB)
clipboard05.jpg (13.1 kB)
more ▼

asked Dec 13 '14 at 07:48 PM in Rendering

avatar image

piXelicidio
699 32 37 151

avatar image haruna Mar 24 '16 at 08:47 AM

One thing I like to do is use a certain blueprint snippet in the construction script to manually set the translucent sort priority depending on where you place the transparent object in the level. This will save you TONS of work!

alt text

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

2 answers: sort voted first

Happily, I have found a solution that works perfectly. The magic property is: "Translucency Sort Priority" located at "Rendering" in actor details. Is an integer 0 by default, When you put lower values (-1, -5,...) this translucent actor are rendered first, with higher values they are rendered last. You can think of it as Layers. By default everyone is at layer 0.

This should work only for actors with translucent materials. I think for opaque and masked materials z-buffer technique will rule and Translucency Priority is ignored (My guessing)

This is the answer where I found the solution after a deeper research: https://answers.unrealengine.com/questions/143785/2d-25d-with-mix-of-3d-rendering-transparency-issue.html

more ▼

answered Dec 15 '14 at 02:43 PM

avatar image

piXelicidio
699 32 37 151

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

Hey piXelicidio -

This issue is related to how the engine derives translucent Z order for 3D meshes, but there is actually a simple work around which will allow you to control the Z sort directly. You can go into the details panel of your sprites and under Rendering >> advanced roll out >> Translucent Sort Order. This value is 0 by default setting it to a higher number will make the high number render on top of the lower numbers. So your far background may be 0 while you near background may be 1 and the foreground 2 and the player's sprite 3.

alt text

Thank You

Eric Ketchum

transsort.jpg (47.8 kB)
more ▼

answered Dec 15 '14 at 02:47 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.8k 702 260 736

avatar image piXelicidio Dec 15 '14 at 02:51 PM

Wow I just found an answer from yourself @Eric Ketchum and posted the solution here a minute before! :) Thank you very much, the Translucency Sort Priority property save my life!

avatar image Raptagon Studios Dec 07 '16 at 11:13 PM

Is there a way to set the Sort Priority with particle effects?

(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