Re: Applying textures

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Tue, 12 Dec 1995 20:58:26 +0100


On Dec 12, 10:42pm, Martin Quire wrote:
> Subject: Applying textures
> I have a problem and need immediate assistance...please!
>
> One of my vendors developed a set of .FLT files each containing a "billboard" model.
> Separately, they supplied some .RGBA files for applying to the billboards. They say the R, G,
> & B values are always zero, and the A values apparently hold the pattern.
>
> When I try loading one of the .FLT files into my Perfly derivative VisSim application, the object
> seems to be loaded OK and is viewable, but it has no pattern on its surface. My questions go
> something like this:
>
> - Would it be normal for the .FLT file to have an internal reference to one of the .RGBA files to
> use as a texture or decal?

Depends what you mean by internal. The texture file should exist separately
from the .flt file but is referenced by it.

> - If so, should the FLT loader take care of loading the texture and applying it to the object?

Yes, and if it isn't found you would expect an error report.

> - If not, how do I explicitly load the RGBA file, associate its image data to a texture, and apply
> it to the object?
> - Does the use of zero (0) for the RGBs and the use of the image data in the A values, imply a
> certain type of texturing (e.g. DECAL) and associated modes and attributes which need to be
> set to successfully display the object with that type of image applied to its surface?

No, what you describe should work as any other texturing, information
like this is held in the .attr file associated with the texture.

> - If so, how do I go about setting up the appropriate GeoStates and assocaited tokens?
>
> Any and all help will be greatly appreciated. Please E-mail responses to the following E-mail
> adresses:
>
> mquire++at++cftnet.com (subscribes to this mail list)
> lokuta++at++reflectone.com
>
>
>-- End of excerpt from Martin Quire

Make sure you have transparency on & texturing enabled.
The loader should set this in the geostates but you may have overridden them.

Rgds,
Angus.

-- 
Angus Dorbie,
Silicon Graphics Ltd, UK
dorbie++at++reading.sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:08 PDT

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