Marco Crocetta (onyx++at++datamat.it)
Wed, 15 Mar 95 10:07:45 MET
Hi,
page 198 of IRIS Performer Reference Pages says:
1)"pfMtlAlpha specifies the alpha om mtl in the range 0.0 through 1.0. If
trasparency is enabled (see pfTransparency), a material whose alpha is < 1.0
and whose color mode is PFMTL_CMODE_COLOR will be transparent with alpha of
1.0 being completely opaque and 0.0 being completely transparent. The
default
alpha value is 1.0, or completely opaque. "
But this mode disable the original primitive color (not only the 4th
component).
Later in the same page about pfMtlColorMode:
2) "...Specifically, this settings allows color specified by pfGeoSets to have
effect. When lighting is disabled, the colorproperty of the current
material. Alpha, the fourth color mode is set to PFMTL_CMODE_COLOR."
And finally in my (old) GL Programming guide a read
(page 9-20; 9.6.5 Transparency):
3) " The use of LMC_DIFFUSE or LMC_AD mode overrides the ALPHA material
property
with the alpha of the current color."
And this is in agreenment with point 1.
And finally I read on the man pages lmcolor(3G) this last thing that
seems to be in contrast with point 3.
4) "LMC_AD, .... Alpha, the fourth color component specified by RGB color
commands will set the ALPHA property of the current material."
I hope this will help you to fix the problem (if any).
Please let me know your point of view about changing only the material
alpha.
Thanks in advance
-- ---------------------------- MARCO CROCETTA DATAMAT SpA, Rome e-mail: onyx++at++datamat.it ----------------------------
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:04 PDT