[info-performer] Texture interpolation

Date view Thread view Subject view Author view

From: NeBuR I (neburuv++at++hotmail.com)
Date: 06/18/2004 00:54:16


Greetings.

In a pfGeoState, I can define up to four textures (pfTexture) with their
respective texture enviroments (pfTexEnv). I have two of them defined, and I
want to linearly interpolate between they two, given an interpolation
parameter, as showed:

T = [T1 * (1 - t)] + [T2 * t] = T1 + [(T2 - T1) * t]

It is required for the interpolation parameter (wich establishes the
relative weight of both textures) to be modified at run time. I've tried
combinations of PFTE_REPLACE, PFTE_MODULATE, PFTE_BLEND, PFTE_DECAL,
PFTE_ADD and PFTE_ALPHA for both texture enviroments, but without success.

Thank you.

_________________________________________________________________
Acepta el reto MSN Premium: Correos más divertidos con fotos y textos
increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis.
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Jun 18 2004 - 00:56:51 PDT