Alpha with Clipmapping

New Message Reply Date view Thread view Subject view Author view

Vicente Javier Sevilla Peris (jsevilla++at++glup.irobot.uv.es)
Mon, 22 Mar 1999 10:59:58 +0100


Hello

I am trying to put alpha channel in cliptextures, but I can't do it.

I have generated the tiles from rgba textures with alpha channel.
I have transformed the tiles through the to888 tool.
I have used these formats in .ct and .ic files :

    ---- FORMAT 1 -----

ext_format PFTEX_PACK_8
int_format PFTEX_RGBA_8
img_format PFTEX_RGB

  ----- FORMAT 2 -----

ext_format PFTEX_PACK_8
int_format PFTEX_RGB_8
img_format PFTEX_RGB

  ----- FORMAT 3 -----

ext_format PFTEX_PACK_8
int_format PFTEX_RGBA_8
img_format PFTEX_RGBA

With the first and second format the clipmaping works, but without the
alpha channel.
With the last format the clipmapping doesn't work.

In order to set the cliptexture format I use the next :

//----------------------------

  gstate->setMode(PFSTATE_TRANSPARENCY, PFTR_FAST);
  gstate->setMode(PFSTATE_ALPHAFUNC, PFAF_NOTEQUAL);

    if(gstate!=(pfGeoState *)NULL) {
         gstate->setAttr(PFSTATE_TEXTURE, cliptex);
         gstate->setMode(PFSTATE_ENTEXTURE,1);
         gstate->setMode(PFSTATE_ENLIGHTING, PF_ON);
         gstate->setMode(PFSTATE_CULLFACE, PFCF_OFF);

         pfTexEnv *texenv = new pfTexEnv;
         gstate->setAttr(PFSTATE_TEXENV, texenv);
    }

//-----------------------------------

Does anyone know how to put alpha channel in cliptextures ?

Thanks for all.

Javier.

--
_____________________________________________________________________

Javier Sevilla Peris mailto:jsevilla++at++glup.irobot.uv.es _______ / /___\ \ LISITT / / \ \ R T E C

Phone: +34 6 360 4484 Dept. Electr. & Informatics Addr: Poligono de la Coma s/n University of Valencia Valencia (SPAIN)

_____________________________________________________________________

Hello

I am trying to put alpha channel in cliptextures, but I can't do it.

I have generated the tiles from rgba textures with alpha channel.
I have transformed the tiles through the to888 tool.
I have used these formats in .ct and .ic files :

    ---- FORMAT 1 -----

ext_format PFTEX_PACK_8
int_format PFTEX_RGBA_8
img_format PFTEX_RGB

  ----- FORMAT 2 -----

ext_format PFTEX_PACK_8
int_format PFTEX_RGB_8
img_format PFTEX_RGB
 

  ----- FORMAT 3 -----

ext_format PFTEX_PACK_8
int_format PFTEX_RGBA_8
img_format PFTEX_RGBA

With the first and second format the clipmaping works, but without the alpha channel.
With the last format the clipmapping doesn't work.
 

In order to set the cliptexture  format I use the next :

//----------------------------
 
  gstate->setMode(PFSTATE_TRANSPARENCY, PFTR_FAST);
  gstate->setMode(PFSTATE_ALPHAFUNC, PFAF_NOTEQUAL);

 
    if(gstate!=(pfGeoState *)NULL) {
         gstate->setAttr(PFSTATE_TEXTURE, cliptex);
         gstate->setMode(PFSTATE_ENTEXTURE,1);
         gstate->setMode(PFSTATE_ENLIGHTING, PF_ON);
         gstate->setMode(PFSTATE_CULLFACE, PFCF_OFF);
 
         pfTexEnv *texenv = new pfTexEnv;
         gstate->setAttr(PFSTATE_TEXENV, texenv);
    }

//-----------------------------------

Does anyone know how to put alpha channel in cliptextures ?

Thanks for all.

Javier.
 

-- 
_____________________________________________________________________

 Javier Sevilla Peris             mailto:jsevilla++at++glup.irobot.uv.es
            _______
           / /___\ \
 LISITT   / /     \ \ R T E C

 Phone: +34 6 360 4484
 Dept. Electr. & Informatics      Addr: Poligono de la Coma s/n
 University of Valencia           Valencia (SPAIN)

_____________________________________________________________________
 

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed Mar 24 1999 - 03:47:15 PST

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