Re: Clipgen and alpha channel in clip textures

New Message Reply Date view Thread view Subject view Author view

From: Eric Sokolowsky (esok++at++cosimo.gsfc.nasa.gov)
Date: 12/13/2001 06:38:56


On Thu, 13 Dec 2001, Simon C Mills wrote:

> Hi Performers,
>
> this is not strictly a Performer question but I wouldn't know where else
> to ask.
>
> I'm using Clipgen (version 1.1) to generate clip textures to be used in
> a performer application. I wanted to use an alpha channel in my clip
> texture just like in a normal texture. However, it appears clipgen masks
> the RGB values in the produced clip texture tiles with the alpha channel
> ie. where alpha is 0, RGB values are set to 0,0,0 and are not left at
> their original values as I want. I tried on the Inset tab to set Alpha
> Mask to Feather Edge with 0 pixels and also to give an Alpha Mask image
> that was pure white. Neither of these helped. How can I tell clipgen not
> to do this?

You are probably creating the cliptexture as RGBA 5551, which means 5 bits
for each of R,G,B and one bit for A. With one bit, all you get is on or
off. You can change this on the first screen (the "Define" tab) of clipgen
with the "Int Tex Format" parameter. I'm not sure if you need to change
the "Ext Tex Format" parameter as well. Just select "RGBA 8_8_8_8" instead
of "RGBA 5_5_5_1". Of course, this takes more texture memory to store.

Hope this helps.

-- 
   ____   __    Eric Sokolowsky    (GST)   NASA Goddard Space Flight Center
  / __/__/_/__  Visualization Programmer   Scientific Visualization Studio
 / __/ _/ / _/  esok++at++cosimo.gsfc.nasa.gov  Code 935.0  Bldg 28  Rm S121
/___/_//_/__/   301.286.3751               Greenbelt, MD 20771


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Dec 13 2001 - 06:39:09 PST

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