Support for Seene variation of the same?
neopaf opened this issue · 14 comments
(was referred to this project by Sketchfab support team)
I've tried to import some of my Seene-app (iOS) export format, which Creators claim is same as Google Lens Blur format.
But failed.
Please quick-look is the format is totally broken = unsupportable.
Maybe there is something simple to be changed = fixed?
It seems like they've stripped the GDepth:Data attribute from the file. Other attributes are there, but the actual depth is nowhere to be found.
Here's a snapshot of an hex view of one of the files provided. You'll see there's GDepth:Format/Near/Far but no Data:
Who have you contacted from Seene that told you about compatibility? Could you ask them about this issue?
I will.
I'm a developer myself, but not very deep into .JPEG format or ways to hide XMP there.
But I see some 2 (two!) XMP sections there, and one of them seem to have the data.
Used this tool to extract it: http://www.sno.phy.queensu.ca/~phil/exiftool/
Attached:
35063c38-545a-11e6-9441-b069def5d258-exif.txt
I did try to convert that BASE64 and it seems to have what's needed:
What would you say?
Maybe data got into second XMP and it is still possible to extract & use it?
Hello,
verified with Seene-Toolkit that XMP is there.
You'll find the depthmap in the section GDepth:Data
hope that information is helpful!
cheers,
Mathias
Ah, Ok. Couple of things here...
- I downloaded the file and the preview in github probably strips those headers. If I download the image from githubusercontent.com I can see that GDepth:Data is there.
- The library is correctly loading the depth data. What is failing silently -because I didn't know that could happen- is that there's no GImage:Mime nor GImage:Data in the XMP block. That is, there is no info about the image. I'm going to change it so it can display the color buffer too shortly.
Ok, fixed. The lib is updated -make sure you check index.html on how to load the color buffer now-.
The tool https://www.clicktorelease.com/tools/lens-blur-depth-extractor/
and the player https://www.clicktorelease.com/code/depth-player/
are updated too.
Thanks!
Yes, the mesh size/tessellation is based on the image size. Lens Blur images are usually pretty large, but the seene ones seem to report to be 240x240, so the mesh is much smaller. Use the Quad Side parameter on the viewer, set it to 1, and you'll have more quads. Changing the filter might help, too.
Now I've also realised that 240x240 is the reported size of the Depth Map. Will fix, too.
Fixed.
Great! Thanks for the feedback and the nice photos for testing!
Jaume, thank you very much.
This was fast, and very pleasant.
Thank you very much for your effort and for hosting of this.
We were directed to you by Sketchfab support people.
I've found one more detail, will file as a separate issue.
Jaume, is depth map is (240 × 240) and main image (1936 × 1936)
somehow related to Quad?
Maybe Quad is just "take each N-th point from depthmap?"
1=take every point
2=take one, ignore one point
3=take one, ignore two points
?