Thanks Michael!  For some reason it never registered with me that
GeometryArrays were node components!  But that makes things quite nice.

I can't wait to try this out and see how it looks/performs.

Dave Yazel

-----Original Message-----
From: Michael Nischt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 8:24 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Re-using geometry for decals


Hi David,

> Is there any legal way to use the the same GeometryArray in multi-pass
> rendering (ala decal group)?  Is it legal to assign the same GeometryArray
> to multiple shapes?

Why shouldn't it be legal ? Geometry, Appearance, .. are NodeComponents,
therefore the scenegraph only has references to them. there should be no
problem to use two or more Shape3D's with one Geometry,  Appearance, ..


> Even with by-ref geometry my fear would be that Java3d
> would have seperate display lists for each geometry array, even though it
> is identical.

First, I thought OpenGL implemetation is using VertexArrays when BY_REFERNCE

is set ? Therefore the vertexData (not the vetexIndices) should be shared,
if
all vertex-arrays are set with the same data. Asuming that BY_COPYING
indicates to use DisplayLists, I believe that each GeometryArray has a
seperate DisplayList, but using the same Geometry in different Shape3Ds
should be the same as drawing the same DisplayList more than one times..


regards
-Michael Nischt

==========================================================================To
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to