Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render OBJ files #23

Open
harora opened this issue Oct 31, 2021 · 2 comments
Open

Render OBJ files #23

harora opened this issue Oct 31, 2021 · 2 comments

Comments

@harora
Copy link

harora commented Oct 31, 2021

Hi

I'm looking to evaluate the work using image-based metrics. Can you share mistsuba2 scene xml file for rendering mesh objects?

@joeylitalien
Copy link
Collaborator

joeylitalien commented Nov 3, 2021

Hi @harora,

Mitsuba 2 was only used to compute surface normal consistency. Therefore, it's just a regular Mitsuba XML file with the mesh centered at zero with the aov integrator for the surface normals:

<integrator type="aov">
    <string name="aovs" value="sh_normal:sh_normal"/>
    <integrator type="direct" name="my_image"/>
</integrator>

Last time I checked, Mitsuba 2 did not have two-sided normals for AOVs so faces with flipped/inward normals will appear black. You can either hack the AOV integrator and recompile or make a new integrator that uses the absolute shading normals.

Best,
Joey

@harora
Copy link
Author

harora commented Nov 14, 2021

The problem is i'm getting different result for same field-of-view(fov) parameter which is why i could know if there's any other parameter i need to set to get exact same results. Can you share 'sensor' settings in xml?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants