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

Question: How to draw many instance of plain with same texture but with different uvs. #2024

Open
iomeone opened this issue Jul 9, 2024 · 0 comments
Labels
question Further information is requested

Comments

@iomeone
Copy link

iomeone commented Jul 9, 2024

for example, I want to draw 1000 cards, and every cards shows a number. How to do this with .

the links below implement without being use sdf text.
https://github.com/Oxynt/three-instanced-uv/blob/main/index.html

https://raw.githack.com/Oxynt/three-instanced-uv/main/index.html

I wonder how to draw lots of instance of plain with different text (like different number) . Then key thing is how to get the underline sdf texture and uv for custom text and pass all these information to shader.

the reason why I want to do it with drei text, is because it generate the sdf texture on the fly and I just need to pass it to shader!

Thank you!

@iomeone iomeone added the question Further information is requested label Jul 9, 2024
@iomeone iomeone changed the title How to draw many instance of plain with same texture but with different uvs. Question: How to draw many instance of plain with same texture but with different uvs. Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant