Re: Textures

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Tue, 02 Feb 1999 16:32:55 -0800


You could check the file extension, otherwise you have to use libimage
to at least load the header information.

Yes the number of components in an image file will be used to determine
the internal format of a pfTexture IF you use it's method to load the
file.

You'll still have to make sure that the transparency state is set
appropriately in the geostate though or transparency won't be enabled
and it'll look just like an RGB (if you have a MODULATE texture
environment).

Cheers,Angus.

Roni Kass wrote:
>
> Some textures questions:
>
> 1) Is there a way to find for an SGI file (Before loading it as texture)
> if it
> is RGB or RGBA
>
> 2) When I load a SGI file, without setting the internal format first,
> wil it
> know to set the internal format for rgb files to RGB and for rgba files
> to RGBA_8 ?
>
> Thanks
>
> Roni Kass
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"Only the mediocre are always at their best." -- Jean Giraudoux

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Feb 02 1999 - 16:33:00 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.