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"

Render occluded actor in Custom Depth

I need to render my character into custom depth regardless of occlusion culling. Right now the character disappears a few seconds after it moves behind a wall.

I have found no way of doing this in the editor or properties.

Product Version: Not Selected
Tags:
more ▼

asked Jun 09 '14 at 03:23 PM in Rendering

avatar image

Tom Looman
469 35 88 55

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

3 answers: sort voted first

This will be fixed in 4.8. Simply add this to CanBeOccluded. Same needs to be done for other mesh types, for instance skeletal meshes.

 bool FStaticMeshSceneProxy::CanBeOccluded() const
 {
     return !MaterialRelevance.bDisableDepthTest && !ShouldRenderCustomDepth();
 }
more ▼

answered Apr 27 '15 at 06:37 PM

avatar image

zeroprey0 STAFF
231 5 4 15

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

This should work and I think I've seen code for the static mesh:

             if(ViewRelevance.bDrawRelevance && !StaticMesh.bShadowOnly && (ViewRelevance.bRenderInMainPass || ViewRelevance.bRenderCustomDepth))

it might be missing for non static meshes. Please try with a static mesh - if that works for you we know more and can fix the right thing.

             {
more ▼

answered Jun 09 '14 at 07:03 PM

avatar image Tom Looman Jun 09 '14 at 07:23 PM

This does not work for Static Mesh either. They dissapear quickly after moving the camera behind another mesh.

avatar image Thor Mar 18 '15 at 09:00 PM

This is occurring for me as well. I've been unable to find a good fix or workaround for it.

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

I created TTP 338104 to investigate this. It should work or there is another flag to enable this behavior.

more ▼

answered Jun 09 '14 at 07:42 PM

avatar image csharp1024 Apr 25 '15 at 07:18 PM

Has this been investigated? I'm also trying to render objects in custom depth even if they are occluded.

(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