Jump to content
The Dark Mod Forums

Which game allows scenedepth export?


STiFU

Recommended Posts

For my research I need RGBZ-images i.e. a regular RGB-images plus depth and they should preferably be in stereo 3d. The depth needs to be perfectly conditioned rather than those faulty estimates that are usually used, which is why virtual scenes are the only way to go.

 

So I was wondering whether there are any games that more or less easily allow exporting a screenshot along with the pixelwise scene depth? Any ideas would be appreciated.

Link to comment
Share on other sites

For the depth normally three color chanells are used to get them right.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

Yeah, high bitdepth depthmaps would be preferred over an 8 bit grayscale, obviously.

 

Maybe there is a game where you can at least visualize the depthbuffer. Then you could use scripts and an external application to take the screenshots.

 

I also found this article, which explains how to visualize the depthbuffer using GLSL. Could that possibly be plugged in to some game as a shader?

 

We have already setup a Workflow for blender to export stereo 3d imagery along with the appropriate depthmaps, but lack in decent render content. Most free blender source files are missing some ressource files or are not compatible with stereo 3d rendering. In Big Bug Bunny for example the rendering of grass seems to be somewhat viewport dependent, which makes it useless for stereo 3d.

Link to comment
Share on other sites

TheDarMod can visualize the depthbuffer (r_showDepth 1 or so).

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

Oh nice. However, the results look kind of weird. I tried stacking the components on top of each other (in all possible permutations) like this: 255*255*R + 255*G + B. But still no dice. I also tried it in original Doom 3, just to make sure this feature wasn't broken in TDM.

post-684-0-90949100-1401368869_thumb.jpg

Link to comment
Share on other sites

Doom 3's depth buffer is a little strange because of the infinite far z hack. That's why Sikkpin hasn't been able to solve some of his SSAO issues for and left his post process method in place as I recall. If someone could figure out how to exclude skybox data from the z buffer that would be aces.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

I just had a talk to the guy who wrote that article and together we found out as follows: The 32 bit floating point depth buffer is simply output as RGBA without any casting operations whatsoever, which is why the above image looks so wonky. He retrieved the correct depthbuffer image using gDEBugger, but it should also be possible to correctly display it within D3 by proper casting.

 

I am gonna try and fix the depthmap display and implement a new function into tdm that lets you export depthmap in full 32 bit floating point format.

Link to comment
Share on other sites

It is, actually. See here.

  • Like 1

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • The Black Arrow

      Hey @nbohr1morehow come the zombies in The Dark Mod don't have a "resurrection" mechanic to it, similar to how Thief has it?
      They're quite a weak creature as of right now, it's merely a walking corpse that slashes you, making attacking them to kill them an actual strategy.
      Would be better if they had some cool mechanism to it that truly makes them a danger, such as the resurrection idea itself.
      · 2 replies
    • Ansome

      Query: when was the last time a zombie in a video game was unnerving or scary to you? I'm chipping away at my anniversary submission and I've been trying to gather opinions on the subject. I'm perfectly capable of lighting them well, changing their sfx, and creating effective ambience, but I'm worried that zombies at their core are just too overdone to be an effective payoff to the tension I'm creating.
      · 4 replies
    • nbohr1more

      The Lieutenant 3 is out! Congrats Frost_Salamander! ( raising awareness )
      · 2 replies
    • OrbWeaver

      Has anyone had any luck with textures from Polyhaven? Their OpenEXR normal maps seem too washed out and give incorrect shading in the engine.
      · 5 replies
    • datiswous

      I tried to upscale the TDM logo video. First try:

      briefing_video.mp4 You can test it ingame by making a copy of the core tdm_gui.mtr and place it in your-tdm-root/materials/ , then edit line 249 of that file into the location where you placed the new briefing.mp4 file.
      What I did was I extracted all the image files, then used Upscayl to upscale the images using General photo (Real-Esrgan) upscale setting and then turn it back into a video.
      I might have to crop it a bit, the logo looks smaller on screen (or maybe it's actually better this way?). My video editor turned it into a 16:9 video, which I think overal looks better than 1:1 video of original.
      · 1 reply
×
×
  • Create New...