Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Texture Scaling
10-28-2005, 02:15 PM,
#7
Texture Scaling
Phase 2 is done...Now in data/textures/ there is a large, medium and small subdir. In data/textures/medium/ no texture exceeds 256x256 and in data/textures/small/ there are none bigger than 128x128. The only exception is newfontt3.png which is 512x512 in textures/medium/ and 256x256 in textures/small/ because otherwise, the text is illegible at small texture size. You can switch between these texture sets by chaning your options in the menu, but you must restart to reload the textures.Left to do:* create SDLTexLoad() wrapper for IMG_Load like UTILITY::TexLoad, that is aware of the data path and the texture size settings, replace IMG_Load()s throughout code with wrapper function* rename TexLoad() GLTexLoad() for clarity, replace throughout code* figure out some way to make texture size setting work for tracks which have hard paths to images in the track files... - right now these are hard-coded to "large" in the track files.* something else I thought of: make the TexLoad function fall back to the next-lower texture size level for a texture that doesn't exist. this way we can delete most of the really small textures from textures/medium/ and textures/large/ and avoid redundant files.
Reply


Messages In This Thread
Texture Scaling - by thelusiv - 10-25-2005, 02:13 AM
Texture Scaling - by joevenzon_phpbb2_import3 - 10-25-2005, 09:25 AM
Texture Scaling - by thelusiv - 10-25-2005, 10:55 PM
Texture Scaling - by joevenzon_phpbb2_import3 - 10-26-2005, 09:38 AM
Texture Scaling - by thelusiv - 10-27-2005, 12:33 PM
Texture Scaling - by thelusiv - 10-28-2005, 03:41 AM
Texture Scaling - by thelusiv - 10-28-2005, 02:15 PM
Texture Scaling - by thelusiv - 10-30-2005, 02:22 AM
Texture Scaling - by thelusiv - 11-01-2005, 12:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)