Game Development Community

[BUG T3D 1.0] GuiInspectorTypeImageFileName don`t get DDS as image file for load

by Luis Anton Rebollo · in Torque 3D Professional · 10/03/2009 (6:05 am) · 2 replies

Somes gui controls define their bitmap field as GuiInspectorTypeImageFileName, and then file inspector not get dds as a valid image file.

#1
10/03/2009 (10:33 am)
I think that this has been an issue for some time, there are a whole host of non-game world objects such as GUI that don't like dds and require png.
#2
10/03/2009 (11:51 am)

Good catch. Will make the inspector add .dds to the list.

The codebase still has a very unfortunate split between GBitmap (which can load PNG, JPG, etc) and DDSFile (which loads dds files). These are two separate and incompatible classes so any code that wants to allow dds files to be used needs to explicitly provide a separate codepath for DDSFile. There should really be an abstract baseclass here so that code can transparently work with the two classes.

So far, GuiInspectorTypeImageFileName exclusively queries GBitmap for file extensions. However, a quick scan over the codebase shows that all users of TypeImageFilename appear to use them as texture files which works with both GBitmap and DDSFile.