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

Add an example with UVs #5

Closed
Shaun-Fong opened this issue Aug 31, 2020 · 5 comments
Closed

Add an example with UVs #5

Shaun-Fong opened this issue Aug 31, 2020 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@Shaun-Fong
Copy link

Shaun-Fong commented Aug 31, 2020

apply a material with texture , it didn't show correctly

@eliemichel
Copy link
Owner

Hi @qtghost, could you show the snippet of code that you've used and an image of the result?

@Shaun-Fong
Copy link
Author

Hi @qtghost, could you show the snippet of code that you've used and an image of the result?

oh , just nothing . I'm using the example code .

@eliemichel
Copy link
Owner

Ah ok the example code doesn't setup UVs, in order to remain simple and didactic. But indeed I should add an example that includes UVs at the end to show how to set them up, thanks for suggesting! You can try and do it btw, using AddVertexAttribute with name "uv" and then access it using v.attributes["uv"].

@eliemichel eliemichel added the documentation Improvements or additions to documentation label Sep 4, 2020
@eliemichel eliemichel changed the title UV Issues Add an example with UVs Sep 4, 2020
@Shaun-Fong
Copy link
Author

Ah ok the example code doesn't setup UVs, in order to remain simple and didactic. But indeed I should add an example that includes UVs at the end to show how to set them up, thanks for suggesting! You can try and do it btw, using AddVertexAttribute with name "uv" and then access it using v.attributes["uv"].

that's cool , I'll try

@eliemichel
Copy link
Owner

eliemichel commented Feb 3, 2021

6 months later, fixed ^^

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

No branches or pull requests

2 participants