From: Vincent Pasqualato (vincent.pasqualato++at++oktal.fr)
Date: 06/23/2004 06:30:37
The problem will be the same with OpenGL 1.2 : You simply can't, if you
don't use things like combiners or shaders, because none of these modes
permits such interpolation with a variable parameter : DECAL will
interpolate using alpha component of second texture, and BLEND interpolate
between first texture and texture environment color, using second texture as
parameter.
With OpenGL, you now have multiple solutions, like the combiners extension
(I think they are integrated in OpenGL since version 1.4). With them you
have access to the mode ... INTERPOLATE (you can consult OpenGL reference
manual for more infos).
With Performer, I don't know of solutions other than fragment programs
(which seems to be currently more or less buggy).
----- Original Message -----
From: "NeBuR I" <neburuv++at++hotmail.com>
To: <info-performer++at++sgi.com>
Sent: Friday, June 18, 2004 9:54 AM
Subject: [info-performer] Texture interpolation
> 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
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
This archive was generated by hypermail 2b29 : Wed Jun 23 2004 - 06:32:44 PDT