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"

Problem about z prepass

I know the 'main pass' in UE4 contains z prepass, base pass, and transparency. What does the z prepass do?

I want to render several meshes in z prepass but not in base pass, i.e. they are in depth buffer for occlusion but not drawed in fact. Other meshes in base pass will access the same depth buffer. Is it possible?

(I've tried Custom Depth but it is accessable only for translucent material, which may be not what I need.)

Product Version: UE 4.13
Tags:
more ▼

asked Mar 17 '17 at 11:18 AM in Rendering

avatar image

gardenlee_27
11 3 4 5

avatar image Dustums Jul 25 '17 at 10:58 PM

Did you ever find the answer to this? I need to know as well.

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

2 answers: sort voted first

Z pre-pass quickly and cheaply renders depth of this scene. This information is used during base pass to decide which fragments are actually visible, and skip calculation of hidden ones. You can't render it per-object. You have presets to choose from in project's rendering settings. Commonly, you want to set it to masked objects only.

more ▼

answered Jul 26 '17 at 05:30 AM

avatar image

Deathrey
7.9k 130 31 293

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

why not render your mesh on special buffer? I have similar issue, then I render them on my special buffer instead of.

more ▼

answered Jul 26 '17 at 06:04 AM

avatar image

Baesky
187 11 8 15

(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