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

Can i get an exist mesh texture with texrecon #32

Open
yang1hu opened this issue May 7, 2024 · 2 comments
Open

Can i get an exist mesh texture with texrecon #32

yang1hu opened this issue May 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@yang1hu
Copy link

yang1hu commented May 7, 2024

Hi!Thank for your great project ! I wanna know,If i already have a mesh ! for example ,the mesh come from sugar.if I can get the texture with texrecon command and what i should do

@hugoycj
Copy link
Collaborator

hugoycj commented May 7, 2024

Yes, you could modify the render_mesh.py script (https://github.com/GAP-LAB-CUHK-SZ/gaustudio/blob/master/gaustudio/scripts/render_mesh.py) to save the camera pose in the format required by texrecon for texturing. To save the pose correctly, you can follow the approach used in the extract_mesh.py script (https://github.com/GAP-LAB-CUHK-SZ/gaustudio/blob/master/gaustudio/scripts/extract_mesh.py#L115).

For using render_mesh.py scripts, you need the original colmap data folder and running in this way:

gs-render-mesh -m <mesh path> -s <colmap dir> -o <output dir>

@hugoycj hugoycj added the enhancement New feature or request label May 7, 2024
@yang1hu
Copy link
Author

yang1hu commented May 7, 2024

Yes, you could modify the render_mesh.py script (https://github.com/GAP-LAB-CUHK-SZ/gaustudio/blob/master/gaustudio/scripts/render_mesh.py) to save the camera pose in the format required by texrecon for texturing. To save the pose correctly, you can follow the approach used in the extract_mesh.py script (https://github.com/GAP-LAB-CUHK-SZ/gaustudio/blob/master/gaustudio/scripts/extract_mesh.py#L115).

For using render_mesh.py scripts, you need the original colmap data folder and running in this way:

gs-render-mesh -m <mesh path> -s <colmap dir> -o <output dir>

ok!I will try, thank you very mush

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

No branches or pull requests

2 participants