Texture/Image size
by Christian Rousselle · in Torque Game Builder · 05/07/2007 (5:14 am) · 3 replies
Does TGB split images to fit the hardware's texture size internally?
Let's say I have a background image that is 1024x3840. Will TGB split that into 2,3,whatever images automatically and fit the hardwares max texture size so that I do not have to care about the texture size and different video cards? From the documentation I understand that $pref::T2D::imageMapFixedMaxTextureSize can be used to set a maximum size for textures (even if the hardware was capable of larger sizes) - is that correct?
Thank you.
Let's say I have a background image that is 1024x3840. Will TGB split that into 2,3,whatever images automatically and fit the hardwares max texture size so that I do not have to care about the texture size and different video cards? From the documentation I understand that $pref::T2D::imageMapFixedMaxTextureSize can be used to set a maximum size for textures (even if the hardware was capable of larger sizes) - is that correct?
Thank you.
#2
05/07/2007 (1:38 pm)
TGB texture chunking system will split it to 4+ textures depending on what your card features as maximum size.
#3
05/07/2007 (2:31 pm)
Thank you Marc. What Nicolas mentions means in my opinion that it does not make sense to put much effort in grouping sprites into textures by hand but better let Torque take care of that?!
Torque Owner Nicolas Olhaberry