Hi Fredrick,
On Wed, 2005-06-01 at 13:55 +0200, Fredrik Andersson wrote:
> Hi!
>
> The default values of the color fields of the MaterialChunk have alpha set
> to 0.0f.
> Is there a reason for this?
>
> I stumbled across weird behavior when I used a MaterialChunk without
> changing its default diffuse color.
> With setZWriteTrans not enabled on the RenderAction, the nodes were rendered
> without proper depth sorting since
> the isTransparent method returns true.
>
> Another unwanted behavior (I think...) is if you add a BlendChunk with
> GL_SRC_ALPHA and GL_ONE_MINUS_SRC_ALPHA the geometry will be completely
> transparent using the default values on MaterialChunk.
You're right. I just hadn't had a case where the diffuse color wasn't
set, so this never occurred to me. ;)
Fixed and committed.
Thanks
Dirk
--
-- Dirk Reiners Assistant Professor Iowa State University
-- Human-Computer Interaction, Computer Science
-- Snail mail: 1620 F Howe Hall; Ames, IA 50011-2274
-- Email: [EMAIL PROTECTED], [EMAIL PROTECTED]
-- The OpenSG Open Source Scenegraph: http://www.opensg.org
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users