EPFL-VILAB / omnidata

A Scalable Pipeline for Making Steerable Multi-Task Mid-Level Vision Datasets from 3D Scans [ICCV 2021]
Other
418 stars 53 forks source link

Surface normal map output camera direction? #27

Open dxu opened 2 years ago

dxu commented 2 years ago

Hi, I'm testing out the pretrained model output with 3js lights, placing them into a scene andsetting the normal map to object space, but it seems that it's reading the normal map colors at an angle of some sort

I saw https://github.com/EPFL-VILAB/omnidata/issues/13, but even flipping the Y&Z axes still creates a diagonal pattern of the light reflection.

E.g, in this image, I have a point light (exaggerated brightness) at a position of [0, -Y, -Z]. I'd expect the light to hit the image full on, but it seems to render a dark diagonal patch on the left (and it seems to do this consistently across all images).

image

Do you know what might be happening here?