PNGs with a height > 2048 crash TGB
by Christian Rousselle · in Torque Game Builder · 05/20/2007 (6:09 am) · 4 replies
When I try to load PNG with a height larger than 2048 I can an error message but TGB crashes afterwards. JPGs > 2048 work.
#2
05/20/2007 (2:51 pm)
I think that all (semi) modern video cards support at least 4096 Textures but this was not my point. My point is that the reader seems to not support PNG sizes > 2048. The JPG loader does and an image that is bigger than 2048 is displayed properly when loaded as JPG.
#3
05/21/2007 (3:41 am)
I seem to recall a hard coded limit/check for max 2048 in the png code.
#4
05/21/2007 (12:39 pm)
The Frame Allocator is used in bitmapPng.cc for temporary memory. Try increasing the size of the frame allocator (I think it's 3mb, by default) to allow larger PNGs to be loaded and processed.
Torque Owner Sam M