Finally committing support for compressed textures on the GPU (DDS+DXT). This patch...
authorMitchell Stokes <mogurijin@gmail.com>
Sat, 30 Jun 2012 04:34:34 +0000 (04:34 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Sat, 30 Jun 2012 04:34:34 +0000 (04:34 +0000)
commit436f02ab9cdf58d8b68f124be0d974a5de0d9308
tree55394116b8e2a7c84899e389acda1e725c61a744
parent2d7efed014539e5b7193f9a73ccfa61ea3ed0838
Finally committing support for compressed textures on the GPU (DDS+DXT). This patch started out as a patch by me, then cleaned up by Kupoman during his work on Cucumber.

One important thing to keep in mind when using this feature is that you'll need to flip your textures vertically (both the GIMP and Photoshop DDS tools I've seen have support for this on export). This is a quirk in using a texture format originally made for DirectX/DirectDraw, and flipping the compressed data is a real headache. Another quick fix for this issue is to change the Y value for the Size in the Mapping panel in the Texture properties to -1 (default is 1).
12 files changed:
source/blender/gpu/CMakeLists.txt
source/blender/gpu/GPU_draw.h
source/blender/gpu/SConscript
source/blender/gpu/intern/gpu_draw.c
source/blender/imbuf/IMB_imbuf_types.h
source/blender/imbuf/intern/allocimbuf.c
source/blender/imbuf/intern/dds/DirectDrawSurface.cpp
source/blender/imbuf/intern/dds/DirectDrawSurface.h
source/blender/imbuf/intern/dds/dds_api.cpp
source/gameengine/Ketsji/BL_Texture.cpp
source/gameengine/Ketsji/BL_Texture.h
source/gameengine/Ketsji/CMakeLists.txt