Skip to content

Conversation

@RobinsAviary
Copy link
Contributor

textures_sprite_stacking A technique from GameMaker, decided to make an example of it for Raylib! I hope this is useful :) Model is not mine but is provided under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

@RobinsAviary
Copy link
Contributor Author

Idk why that link isn't formatting properly lol

https://creativecommons.org/licenses/by/4.0/

@raysan5
Copy link
Owner

raysan5 commented Nov 9, 2025

@RobinsAviary The example is cool but the image exceeds the supported texture size of some platforms, would it be possible to convert it into a square POT image?

@RobinsAviary
Copy link
Contributor Author

@RobinsAviary The example is cool but the image exceeds the supported texture size of some platforms, would it be possible to convert it into a square POT image?
I could convert it to an array of textures (or images) of each layer, if you think that would help overcome the issue, since that's what MagicaVoxel natively supports for export.

@RobinsAviary
Copy link
Contributor Author

shoot i put my comment in the quote part lol. here's what i said:
I could convert it to an array of textures (or images) of each layer, if you think that would help overcome the issue, since that's what MagicaVoxel natively supports for export. @raysan5

@raysan5
Copy link
Owner

raysan5 commented Nov 9, 2025

I could convert it to an array of textures (or images) of each layer, if you think that would help overcome the issue

I don't understand, do you mean multiple separate images? I'm afraid that's a worse solution...

Are those the only 2 export options provided by MagicaVoxel?

@RobinsAviary
Copy link
Contributor Author

I could convert it to an array of textures (or images) of each layer, if you think that would help overcome the issue

I don't understand, do you mean multiple separate images? I'm afraid that's a worse solution...

Are those the only 2 export options provided by MagicaVoxel?

Just to clarify what you were referring to, was your idea closer to packing the texture in a POT image and then indexing it from that? I may be able to generate that using your texture packing tools but as far as MagicaVoxel is concerned, I believe those are the only image export options, sadly.

@raysan5 raysan5 merged commit d860112 into raysan5:master Nov 9, 2025
17 checks passed
@raysan5
Copy link
Owner

raysan5 commented Nov 9, 2025

@RobinsAviary Ok, no worries, I'll merge as provided by MagikaVoxel but it could not work on web for now...

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

Successfully merging this pull request may close these issues.

2 participants