How to use a texture atlas. #5718
Unanswered
RylanYancey
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Duplicate of #5716, right? |
Beta Was this translation helpful? Give feedback.
1 reply
-
It is probably possible to use it the way you describe, but it would involve iterating over A more typical 3d workflow would involve authoring the UVs in e.g. Blender. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've read the texture atlas example, but it is confusing and does not help me for my purposes.
Here, I've loaded the texture atlas from my file system:
What I want to do is split this texture atlas up by sprite size, in this case each sprite is 16x16, and be able to use UVs to index for mesh creation with a PrimitiveTopology. How do I do this?
Also, how do I tell the mesh to use the texture atlas?
TL;DR - How do I extract uvs from a TextureAtlas for mesh creation.
I'm still new to bevy, and trying to understand this practically undocumented engine. I've created a PrimitiveTopology cube before using an RGB value, but not with a texture.
Thank you very much for your time.
Beta Was this translation helpful? Give feedback.
All reactions