In 1.2.1, setValidVertexCount() and setInitial{Vertex,Coord,Color,
Normal,TexCoord}Index are used only for GeometryArray. They are ignored for
Strips and Indexed Geometry Array.
setValidVertexCount() is applicable for both by-ref and by-copy geometry
array.
For by-ref geometry, setInitial{Coord,Color,Normal,TexCoord}index() is
used.
For by-copy geometry, setInitialVertexIndex() is used.
For geomety array by copy - Vertices from initialVertexIndex to
(initialVertexIndex + validVertexCount} will be rendered. Thus,
validVertexCount number of vertices will be rendered, initialVertexIndex
determines which vertex to start from in the geometry array.
For geometry array by-ref - since the various components{color,vertex etc}
are specified as independent arrays,
setInitial{Coord,Color,Normal,TexCoord}Index gives the user the flexibility
to specify where to start from for each of the components.
If you specify the validVertexCount to 400(instead of 8000), the
performance should be better. Are you using 1.2.1 FCS? If yes and are still
seeing a degradation, please send us a test program.
-Uma
Java3D Team
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
> Date: Sun, 8 Apr 2001 14:48:41 -0400
> From: David <[EMAIL PROTECTED]>
> Subject: [JAVA3D] setValidVertexCount()
> To: [EMAIL PROTECTED]
>
> Could someone explain setInitialCoordIndex and setValidVertexCount, etc.
I
> tried setting the valid vertex count for my by-ref geometry to less than
the
> total number of vertices in my arrays. But I am taking a performance hit
if
> for example, I have room for 8,000 vertices in my arrays, but set the
valid
> vertex count to 400. Seems to me that it is processing them all or
> something.
>
> Then there is this setInitialCoordIndex, with no corresponding
> setLastCoordIndex. Why use the word "index"? is this only for indexed
> geometries? Also, this is only for by-ref geometry? What if I want to
> change the number of vertices processed in a non-by-ref geometry array?
>
> Thanks in advance.
>
> Dave Yazel
>
>
===========================================================================
> 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".