Why limit png's to 1024 pixels in TSE but not TGE?
by Stefan Lundmark · in Torque Game Engine Advanced · 06/09/2006 (12:52 pm) · 3 replies
As the title says, why is this?
I tried to port our old GUI from TGE to TSE and the engine spat out this error:
I find it illogical that TGE has no limit but the next-gen engine TSE does.
One would assume this kind of stuff to be the same between the two engines, or at least improved in TSE.
I tried to port our old GUI from TGE to TSE and the engine spat out this error:
Quote:
Error, cannot load pngs taller than 1024 pixels!
I find it illogical that TGE has no limit but the next-gen engine TSE does.
One would assume this kind of stuff to be the same between the two engines, or at least improved in TSE.
About the author
Torque 3D Owner Pat Wilson
Make sure the frame allocator has > 1 meg in it's initialization (Should be 3 megs, in main.cc) and then just change:
(Top of bitmapPng.cpp)
To the size you need and you are golden.
Edit: Just make sure that you have enough space in the frame allocator to allocate the PNG for reads. Remember that other things use the frame allocator, so it should be larger than you need it for PNG loading.