Re: transparent textures

New Message Reply Date view Thread view Subject view Author view

Dirk Luesebrink (crux++at++artcom.de)
Thu, 17 Jul 1997 07:51:47 -0400


in man pfTexture you find:

          PFTEX_RGBA_4 16-bit texels. The default 4
                                        component internal format.

means even when your original texture is a 32 bit image it gets
scrambled into 16 bit texels on default by performer. to my knowledge
the pfiv loader doesnt touch that format bit at all. so two choices:
1. manipulate the loader to explicitly set the internal textures format.
or
2. after loading the scene, traverse the performer scene graph, collect
all pfTextures from all pfGeoStates on all pfGeodes and overwrite the
internal format setting on them.

the default setting is to save precious tex mem resources, so when
possible you should change to RGBA_8 selectivly, not in general.

dirk.

look for PFTEX_INTERNAL_FORMAT in the man page.

Anita Kishore wrote:
>
> Hello:
>
> I am trying to map an image of a neon sign (created in Photoshop)
> with alpha onto a geometry. The image has the sign in the middle with neon
> like light emanating from it which slowly merges with the blackness around
> the sign. This image with its geometry is in an Inventor file which gets
> loaded into my application through pfiv (BTW : the version of pfiv that I have
> didn't have transparency enabled, so I added the lines :
>
> if ( numComponents == 4 )
> {
> cbd->dummyGState->setMode(PFSTATE_TRANSPARENCY, PFTR_ON);
> }
>
> in the routine 'getTexture').
>
> Anyway, the problem is that when this texture gets loaded, the neon light
> around the sign appears completely banded with each band having a single
> level of colour. The change in colour from the neon light colour to black
> (completely transparent) is not smooth at all. What else should I set to make
> it smooth?
>
> I have already tried recreating a fresh image of very large size and mapping
> that, but to no avail.
>
> I am using OpenGL, RE2, 5.3, pf 2.0.1. I do not have glxinfo to find out the
> visual that pf window might actually be using. Doesn't RE2 come with
> glxinfo? Is it possible to install it from somewhere?
>
> Thanks for any help.
>
> -anita
>
> kishore++at++triavest.com
>
> --
> Anita Kishore
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++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:55:37 PDT

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