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"

Is a 32-bit Depth Buffer supported?

We require the ability to zoom in on distant objects using an extremely small FOV. With the standard 24-bit depth buffer (8-bit stencil) we get a lot of Z-fighting. However, building the engine with the define “DEPTH_32_BIT_CONVERSION=1” gives us enough extra precision to greatly reduce flickering in the scene. Note: we intend to run only on high end Windows machines with latest graphics hardware.

Is it safe to use this option and what are the ramifications in doing so?

Thanks

JP

Product Version: UE 4.10
Tags:
more ▼

asked Feb 04 '16 at 05:15 PM in Rendering

avatar image

jcossigny
31 2 9 8

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

1 answer: sort voted first

It looks like the engine will use a 64 bit depth-stencil format which has 32bit depth and 8 bit stencil if that is supported on your device as DXGI_FORMAT_D32_FLOAT_S8X24_UINT. This is a DX11 feature. In that case your memory for your depth buffer doubles but you have the same functionality. Everything else would be the same. You would lose stencil support on older cards that don’t support this feature.

Edit: It appears that stencil is not directly accessed by the user. You would have to write your own code to use stencil so it looks like you would not lose any user accessible functionality.

more ▼

answered Feb 12 '16 at 06:51 PM

avatar image

Daktor
6 1 2

avatar image Gampersnaz Sep 03 '18 at 04:37 PM

I am interested in using a 32bit depth buffer as well for my project. Where would the define “DEPTH_32_BIT_CONVERSION=1” go? I have the source downloaded and the project files generated. I just need to know where to put that define in.

avatar image jcossigny Sep 04 '18 at 03:34 PM

We added the line in D3D11RHI.Build.cs to the class constructor D3D11RHI: Definitions.Add("DEPTH_32_BIT_CONVERSION=1");

(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