RE: Fade Out without artifacts

New Message Reply Date view Thread view Subject view Author view

From: Juan R. Sáenz-Diez (Yuri) (jrsdm++at++acm.org)
Date: 06/14/2000 21:35:25


Hi Devrim,

You could attach a pre draw callback to the node where you could enable
blending (blend to constant alpha, which is your fade level) and then
disable it in a post draw callback. This will fade the whole model, but you
may see some artifacts if some parts of it blend on top of the others.

If you have an Onyx, you can enable LOD fading, and play around with ranges
and fade transitions. This will surely give you an image-space artifact-free
fade effect.

Sorry for the lack of detail -- not an sgi laptop ;-) Hope that helped,
Regards,
Yuri.

----- Original Message -----
From: Devrim Erdem <devrim++at++infotron.com.tr>
To: <info-performer++at++sgi.com>
Sent: Wednesday, June 14, 2000 6:59 PM
Subject: Fade Out without artifacts

> Hi,
>
> In my effor to fade out some models, I have been using
> pfMaterial::setColorMode with pfMaterial::setAlpha. After my first call
> to setColorMode and setAlpha, there is a change in the colors of the
> materials. I believe that this is because of the PFMTL_CMODE_OFF, as
> this setting will ignore the original color of the geometry. This ends
> up that I will not be able to keep the original color of the geometry
> and set the alpha only.
>
> Remembering that adjusting the A value of each vertex didn't work well (
> some polygons were left unchanged ), I wonder if there is another way to
> fade out the model without artifacts.
>
> Thanks.
>
> /*===============================================
> M. Devrim Erdem devrim++at++infotron.com.tr
> Software Engineering
>
> info(+)TRON, Turkey
> Tel: +90 216 4921002, Ext 138
> Fax: +90 216 3432132
> http://www.infotron-tr.com
> http://abone.turk.net/mderdem
> ===============================================*/
>
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/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 2b29 : Wed Jun 14 2000 - 21:38:48 PDT

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