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 prepass的问题

编辑器里说main pass包括z prepass, base pass, transparency。我在源码中(DeferredShadingRenderer.cpp, line 734)也看到了z prepass相关内容。z prepass有什么作用?

我在做ar相关项目,想实现真实物体对虚拟物体的遮挡。用三维重建的方法得到真实物体的模型后,我想把它们渲染到depth buffer,但不对它们着色(它们不可见)。之后渲染虚拟物体,虚拟物体会根据真实物体在depth buffer中留下的信息判断是否被真实物体遮挡。z prepass能否帮到我?我应该如何控制哪些mesh进入z prepass,哪些mesh进入base pass?

另外,我尝试过CustomDepth Pass,但CustomDepth只在透明材质中才可访问。针对透明材质我实现了想要的效果(如下图),针对非透明材质我该怎么做? alt text alt text

Product Version: UE 4.13
Tags:
1.png (78.8 kB)
2.png (74.7 kB)
more ▼

asked Mar 17 '17 at 11:51 AM in Chinese

avatar image

gardenlee_27
11 3 4 5

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

0 answers: sort voted first
Be the first one to answer this question
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