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

How to render rgb color with existed texture UV map #83

Open
happy0229 opened this issue Feb 7, 2025 · 1 comment
Open

How to render rgb color with existed texture UV map #83

happy0229 opened this issue Feb 7, 2025 · 1 comment

Comments

@happy0229
Copy link

Hi, thanks for your great work! I'd like to use the raster_texture() to sample texture at given view, but seems like it's not supported in your repo. Then I use the nvdiffrast.torch.texture(tex, uv) from nvdiffrast and output wrong results, could you please tell me how to deal with it? Thanks a lot!
Here are the modifications from your original code:
Image

@Im-fengyin
Copy link
Collaborator

Thank you for your kind words and for reaching out! To use raster_texture() for sampling textures at a given view, you will need to modify a few functions in the code. Specifically, you should update the following functions: raster_rasterize, raster_interpolate, raster_texture, and raster_antialias using nviddifrast.

Additionally, please rewrite the code on lines 445 and 455 using nvdiffrast in your code. This should help you achieve the desired results.

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