Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using *.TGA and *.DDS files with OpenGL?

102 views
Skip to first unread message

Jonathan Wilson

unread,
Apr 29, 2004, 8:08:31 AM4/29/04
to
Is there a library out there (preferably Open Source) that will allow me to
use *.TGA and *.DDS files (including the compression and any transparency
info contained in them) as textures in OpenGL?

The app is running on Win32 but may be ported to other things later on. The
library should only use calls from OpenGL, GLUT and C RTL (i.e. no Win32
API calls)

Jonathan Wilson

unread,
Apr 29, 2004, 8:13:40 AM4/29/04
to
PS, the reason I am wanting to use *.DDS (a DirectX format) with OpenGL is
because I am writing a viewer for a 3D format that uses *.DDS as textures.

If it is not directly possible to use *.DDS files, is there some other way
to use them? For example, decompressing them, converting them into another
format (in ram only) and feeding that RAM data to OpenGL?

Jan Eickmann

unread,
Apr 29, 2004, 8:51:20 AM4/29/04
to
I think, there's free dds loader code at developer.nvidia.com

Jan

Theo

unread,
Apr 29, 2004, 11:34:42 AM4/29/04
to
Jan Eickmann <j...@framesys.de> wrote in news:c6qtoc$fc3ks$1@ID-
228870.news.uni-berlin.de:

> I think, there's free dds loader code at developer.nvidia.com

also, the SDL_image extention that goes with SDL will load TGA files.
Havent seen one for DDS files tho.

marcus

unread,
Apr 30, 2004, 7:13:59 AM4/30/04
to
Theo <inv...@noemail.com> wrote in message news:<Xns94DA5798EE...@216.168.3.44>...

> also, the SDL_image extention that goes with SDL will load TGA files.
> Havent seen one for DDS files tho.

or try DevIL which loads both tga and dds (and lots of other formats).

Jonathan Wilson

unread,
Apr 30, 2004, 8:23:30 PM4/30/04
to
> or try DevIL which loads both tga and dds (and lots of other formats).
Thankyou, that looks like just what I need :)
0 new messages