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"

How to make depthbuffer, scenedepth buffer visible to CPU

Hey Guys,

We are working on a VR project with RGBD camera. In order to calibrate our depth camera with unreal scene virtual camera, we need to read out the depthbuffer (the calibration process is done by aligning depth image from our depth camera with depth buffer (or GBuffer depth channel) from unreal virtual camera, since the virtual environment has same geometry info as in real world).

Long words in short: we need to pass scene depth buffer to openCV for calibration.

However, we can't find a way to make depth information visible to CPU. So any suggestion will be greatly appreciated.

Thanks

Product Version: UE 4.10
Tags:
more ▼

asked Jun 07 '16 at 06:29 AM in Rendering

avatar image

pengliu916
6 1 1

avatar image Sipty-sama Jan 06 '17 at 03:32 PM

Been looking into a similar question myself. Thus far the biggest clue has been the ReadPixels functions in UnrealClient.cpp. Thinking about this further: the capture hdr screenshot function should have exactly what you need, as it strips every component off the gbuffer, throws it in CPU and writes it to disk.

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

2 answers: sort voted first

Hi, I am the developer of UnrealCV http://unrealcv.org/, its code is hosted in github.

It might be helpful for your purpose.

more ▼

answered Jan 12 '17 at 08:17 AM

avatar image

qiuwch
61 4 5

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

answered Sep 06 '17 at 04:24 PM

avatar image

frostyden
0 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