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

uv_texture_map #33

Open
victoriapoghosyan opened this issue Feb 27, 2019 · 2 comments
Open

uv_texture_map #33

victoriapoghosyan opened this issue Feb 27, 2019 · 2 comments

Comments

@victoriapoghosyan
Copy link

victoriapoghosyan commented Feb 27, 2019

I want to use render_texture() function as in 5_render.py script. My question is how to create uv_texture_map.jpg given .obj file with uv coordinates and .jpg file associated to .obj file ?
Is the map_Kd in .mtl file what i need to apply as texture during render_texture?

@liguohao96
Copy link

All you need is vertex, triangle, texture_image, texture_coordinate(uv coordinate), texture_triangle.
I think you should see if your .ojb file contains texture_triangle.
BTW, there is little buggy in 5_render.py and cython/mesh_core.cpp, I have already send a PR. #34

@yujingxin
Copy link

All you need is vertex, triangle, texture_image, texture_coordinate(uv coordinate), texture_triangle.
I think you should see if your .ojb file contains texture_triangle.
BTW, there is little buggy in 5_render.py and cython/mesh_core.cpp, I have already send a PR. #34

How could I get texture_triangle from texture_image? I use triangle instead of texture_triangle, and get right result. So is texture_triangle same as triangle?

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

3 participants