You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a sprite atlas using TexturePacker.
Now, I want to load a single texture to the GPU (the sprite atlas texture), and use specific frames from the atlas as textures for my different 3D meshes.
I can easily create a Sprite using any of the images from the sprite atlas, but I don't want to have sprites, I want to use that rectangle from the sprite atlas on a 3D mesh - is this possible?
I could have a different texture (or Image) for each 3D mesh, but I don't want that because the GPU needs to load different textures all the time - essentially, I don't want to reload different textures into the GPU for each 3D mesh, all the textures are on a single sprite atlas that is already loaded into the GPU?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have created a sprite atlas using TexturePacker.
Now, I want to load a single texture to the GPU (the sprite atlas texture), and use specific frames from the atlas as textures for my different 3D meshes.
I can easily create a Sprite using any of the images from the sprite atlas, but I don't want to have sprites, I want to use that rectangle from the sprite atlas on a 3D mesh - is this possible?
I could have a different texture (or Image) for each 3D mesh, but I don't want that because the GPU needs to load different textures all the time - essentially, I don't want to reload different textures into the GPU for each 3D mesh, all the textures are on a single sprite atlas that is already loaded into the GPU?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions