Image size incorrect
by Aaron Chapin · in Torque Game Builder · 09/12/2011 (7:42 pm) · 2 replies
I'm trying to import an image that is 1800x91 (30 60x91 wide frames) to use as an animation. TGB is listing the image as 1859x91. Since this extra bit is on the end of the image, it doesn't slice up nicely into 30x91 cells, and the animation is unusable. The image used to have that extra bit, but I edited the image, and it is now 1800px wide. What could be causing this to happen?
#2
09/20/2011 (8:58 pm)
Oddly, I was able to get around it by resizing the image in my image editor, and re-saving it with a new name. Doesn't explain why this happened (photo information cached, maybe?), but at least I got around it.
Torque 3D Owner Simon Jensen
SwiftThought Games
I'd try snipping it into multiple rows and seeing if that helps.
as it is, the memory allocated is always going to be to a power of two so right now you're allocating a 2048x128 texture in memory which could be a problem for older video cards.
Other than that, check the alpha channel (assuming its a png) and make sure it doesnt contain stuff outside of the visible layers.
here's a couple links to old threads about sprite sizes http://www.garagegames.com/community/forums/viewthread/67998
and https://www.garagegames.com/community/forums/viewthread/72559/1