Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Download Outerra Tech Demo. Unofficial Outerra Discord server, MicroProse Discord server for OWS.

Author Topic: Z-Depth export?  (Read 12474 times)

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Z-Depth export?
« on: February 03, 2013, 09:20:26 pm »

How difficult would be to make a video recorder to output second stream with Z-depth data? (same question for screenshots).
And maybe possibility to output other channels like velocity pass?


Outerra can be a great engine for making shots/backgrounds for films. Especially the LOD system (with some tweaks) makes it perfect for long camera flights.



« Last Edit: February 03, 2013, 09:28:08 pm by deathevor »
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Z-Depth export?
« Reply #1 on: February 04, 2013, 04:27:31 am »

Videos might be problematic because of increased bandwidth and disk speed, but if you have a SSD drive it could be ok. But another question is the format.

For screens it should be considerably easier, once the format is determined.
Logged

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: Z-Depth export?
« Reply #2 on: February 04, 2013, 05:27:25 am »

Using Revodrive for caching. But not very cheap solution.

Will the side-by-side (double width) writes will be any faster or easier to sync?
So 3840x1080 - Left side - complete pass. Right Side - Z-Depth.

Or another idea is to have an option to select different drives for different streams.


It's just if the Frame generation is not so difficult for you, would be nice not lo leave this option behind.

Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: Z-Depth export?
« Reply #3 on: February 04, 2013, 05:34:26 am »

About formats:

Cinema DNG is open format. It's 12bit "raw" File Sequence.
http://en.wikipedia.org/wiki/CinemaDNG

BlackMagic camera records 2.5k DNG file stream on standard SSD.
It's only single stream, so not sure how fast it would do 2.

Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: Z-Depth export?
« Reply #4 on: February 04, 2013, 06:22:54 am »

Outerra screenshots with Z-Depth:


Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Z-Depth export?
« Reply #5 on: February 04, 2013, 06:33:11 am »

Internally the videos capture frame in YUV422 format, but we'll switch to YUV420. One pixel comes with one luminance and one chroma sample. To pack it into the same frame, we could put depth into one of these and have the other for something else. However, the resolution is 8 bits there with compression, what resolution you need for the depth and what distribution? Linear would not be suitable.
Logged

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: Z-Depth export?
« Reply #6 on: February 04, 2013, 10:26:14 am »

Bit-Depth:

The more bit depth is better as it gives better precision for depth.
For PNG's I've used 16bit Grayscale.
However some Kinect scans I had had 8-bit Grayscale - still had quite good result in 3D reconstruction.

Resolution:

The resolution would be nice if it would be the same as RGB pass.

Distribution:

Didn't understand that. But if you talking about Z Min/Max. Distance for black and white. Would be nice to have it customizable (somewhere in recording setup).











Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Z-Depth export?
« Reply #7 on: February 04, 2013, 10:33:35 am »

The question was whether the depth should be written linearly between min/max, or if it should be something that uses the values better, like a logarithmic function.
Anyway, please put a feature request into the tracker so that it's not easily forgotten.
Logged

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: Z-Depth export?
« Reply #8 on: February 04, 2013, 11:04:53 am »

Right got it.
I think most of plugins use linear. In one I use has a curve option.
However standard  3d max Z-Depth uses linear depth calculation. So I stick with it.

But thanks for pointing at it, will pay more attention as currently working with 5k and some kind of exponential distribution could bring better precision.


So why linear doesn't suit you?
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: Z-Depth export?
« Reply #9 on: February 04, 2013, 11:38:15 am »

Cameni, sorry for silly question - where's feature request tracker?
I thought "Ideas & Suggestions & Questions" is the place for feature requests.
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Z-Depth export?
« Reply #10 on: February 04, 2013, 12:28:20 pm »

The forum is for discussion, once something gets worthy of future implementation it should go to the issue tracker, see here. It's because topics in the forum tend to scroll away into oblivion soon, and we easily forget what was where - there's a lot of noise on the forums.

Linear distribution isn't very suitable for depth mapping because it doesn't reflect the changing detail of what you see with distance. If you have a resolution of 10m, it's 10m in front of you, and it's 10m also 1km away. Clearly you'd need the closer objects to have a better resolution, while the distant ones can have less values from the available range. Basically, you want the precision to be tied to the screen size of the objects, since you are doing post-process effects on the screen.

Since the projected screen size of objects is proportional to the reciprocal of geometry depth (1/depth), a function that maps the available range best is the one that has its derivative proportional to 1/depth. That function is the logarithm, and that's what we are using.
Logged

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: Z-Depth export?
« Reply #11 on: February 04, 2013, 06:09:17 pm »

Request Submitted
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

boonitz

  • Newbie
  • Posts: 1
  • newbie
Re: Z-Depth export?
« Reply #12 on: February 05, 2013, 01:18:01 am »

Why not consider openEXR for stills? It's pretty much an industry standard, it allows you to embed unlimited AOVs with different channel definitions, bit depth and compression, plus metadata etc...
It'd allow you to encode additionally pretty much all you want in there (depth, world coordinates, normals, coverage, layers sorted by material, by entity, camera parameters, time of the day, you name it...)
Just my 50 cents ;)
Logged