Depthmap of current scene

Need help, or want to share a macro? Post here!
User avatar
JMG
Posts: 278
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Depthmap of current scene

Postby JMG » Sun Jan 13, 2019 9:45 pm

Hello!

Is there a way to render depth maps to a file (.png or alike) of the active 3D view?

The functionality must be hidden somewhere as FreeCAD can render stereo images in several ways. I have checked the python API and found nothing, and I did have a look to the Inventor Mentor book, but nothing shows up in a quick search.

I am surely missing something, where should I look?


Thank you!
Javier.
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
User avatar
JMG
Posts: 278
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Re: Depthmap of current scene

Postby JMG » Tue Jan 15, 2019 2:31 pm

Thanks!
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
User avatar
saso
Posts: 1495
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Depthmap of current scene

Postby saso » Tue Jan 15, 2019 2:43 pm

Is it useful? :)
User avatar
Kunda1
Posts: 7512
Joined: Thu Jan 05, 2017 9:03 pm

Re: Depthmap of current scene

Postby Kunda1 » Tue Jan 15, 2019 7:45 pm

I remember microelly2 did something with calculating shadow depth of contored terrain for solar panels or something. I wonder if it relates to this in any way? Can't seem to find the thread though! :roll:
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features