Game Development Community

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.

#1
05/07/2007 (12:47 pm)
I would like to have some information on this too. I seem to recall that some tutorial about imagemaps said that TGB packs several images within a single texture by itself but won't split images larger than what your video card can handle. But maybe that information is no longer correct. It would be nice to know.
#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?!