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

optimize textures with TexturesUV and save as obj file #1277

Open
Jiakui opened this issue Aug 1, 2022 · 3 comments
Open

optimize textures with TexturesUV and save as obj file #1277

Jiakui opened this issue Aug 1, 2022 · 3 comments
Assignees

Comments

@Jiakui
Copy link

Jiakui commented Aug 1, 2022

Dear author,

Can I optimize textures with TexturesUV with given image , geometry, and camera pose, then save the result as obj file so that I can view the textured mesh in the MeshLab software?

Is the TexturesUV rendering process fully differentiable ?

Thanks !

@bottler
Copy link
Contributor

bottler commented Aug 1, 2022

Can I optimize textures with TexturesUV with given image , geometry, and camera pose, then save the result as obj file so that I can view the textured mesh in the MeshLab software?

Yes, but unfortunately you have to use the save_obj function (see here). If you use the generic IO method it won't save the texture data. This should be fixed. Thank you for pointing this out.

Is the TexturesUV rendering process fully differentiable ?

I don't know what you mean by "fully", but yes it is differentiable where it makes sense, so the inputs determine how differentiable this is. You need to understand roughly what the model does, e.g. to make occlusion differentiable. (For example, gamma and sigma matter, and soft blending is needed.)

@bottler bottler self-assigned this Aug 1, 2022
@Jiakui
Copy link
Author

Jiakui commented Aug 2, 2022

Thanks so much for your reply.

I have the mesh and the images , camera pose, in principle I can initialize the texture with xatlas, and then load them into pytorch3d.

For TexturesUV, I need maps, faces_uvs, verts_uvs. As what I understand, I can get faces_uvs, verts_uvs from xatlas, but I need to opitimize maps from pytorch3d. So I need to make maps differentiable .

Is my understanding correct?

@bottler
Copy link
Contributor

bottler commented Aug 5, 2022

I don't know xatlas and I can't help with your modelling question. Rendering is differentiable with respect to maps.

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