issue on showing large image
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
issue on showing large image
this animation sheet is at size of 969*19680.Love can not show the image correctly as following:
This is an error or it reaches the limit of the system? Any one can help me ? thank you!
-
- Party member
- Posts: 234
- Joined: Mon Aug 29, 2016 8:51 am
Re: issue on showing large image
That's a lot of whitespace.
Anyways, try making it more like a square page.
Your system may be trying to round it to the nearest page size, which, after 16k x 16k is 32k x 32k and you may not support that.
You can do https://love2d.org/wiki/GraphicsLimit to get the max texture size of your system.
Anyways, try making it more like a square page.
Your system may be trying to round it to the nearest page size, which, after 16k x 16k is 32k x 32k and you may not support that.
You can do https://love2d.org/wiki/GraphicsLimit to get the max texture size of your system.
- zorg
- Party member
- Posts: 3441
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: issue on showing large image
Also, not everyone's graphics cards may even support 16k sizes either; i'd either pack those more smartly, or separate these into multiple atlases. i'd say that a 4096x4096 should be fine.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: issue on showing large image
I've fixed the spritesheet for you - 2k x 2k is all you need, separating the shadow form the sprite will probably reduce to about half of that.
- Attachments
-
- sprites_test_00.lua
- (49.14 KiB) Downloaded 51 times
- zorg
- Party member
- Posts: 3441
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: issue on showing large image
One more thing; i might be wrong about this, but to my eyes, it looks as if there are quite some duplicate frames in the sheet; usually if you want an animation to take more time than one frame, you just delay moving the "current frame" pointer to the next frame, effectively also storing a delay value with the frame position data. (the gif formats can do this, for example)
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
-
- Party member
- Posts: 126
- Joined: Sat May 09, 2015 9:15 pm
Re: issue on showing large image
Just to say the graphics look great though!
Flicking down the screen was almost like doing one of those old flip books where the pages come to life as you use your thumb
Flicking down the screen was almost like doing one of those old flip books where the pages come to life as you use your thumb
Re: issue on showing large image
I think your problem is that your GPU doesn't support textures of that size. Try generating texture atlases in runtime using maximum available texture size.
Who is online
Users browsing this forum: No registered users and 79 guests