Kenneth:
Your interpretation is correct. In Java3D 1.2 there was bug that
prevented it from working correctly. This bug is fixed in the soon to be
released 1.2.1 beta1. For your reference, here is the bugid and description.
4338910 - change in valid vertex count not reflected in rendering when dlist is
used.
-Uma
Java3D Team
> MIME-version: 1.0
> Content-transfer-encoding: 7BIT
> X-Accept-Language: en
> Date: Thu, 2 Nov 2000 11:08:57 -0500
> From: Kenneth Gordon <[EMAIL PROTECTED]>
> Subject: [JAVA3D] setValidVertexCount
> Comments: cc: "Duffy, Roy T" <[EMAIL PROTECTED]>, "Montana, Mark"
<[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
>
> I'm a little confused about the setValidVertexCount() function inside
> GeometryArray objects. What it says in the documentation is:
>
> "This count specifies the number of vertices actually used in
> rendering or other operations such as picking and collision."
>
> I understood this to mean that if you have an array of 5 vertices but
> you call setValidVertexCount(2), it will only render the first 2
> vertices. Am I incorrect in my interpretation of this? I have written
> several different test programs, and in all variations it renders all
> the vertices in the array, not just the subset I want. If this is not
> the correct way to do render a portion of a vertex array, can someone
> please let me know how this can be done?
>
> Basically, my application needs to draw a line following behind a moving
> object, showing a history of where it has been. Obviously when the
> application starts, it needs to be of length 0. Then, each time the
> object moves (basically every frame), an additional point will be added
> to the history. What I intended to do was create one array of size 1000
> (the maximum number of points that this history can have). Then, each
> time it moves I update the proper point in the array and tell Java3D
> that the number of points in the array that it needs to render has
> increased by one.
>
> Anyway, if I am using setValidVertexCount incorrectly, or if there is
> another way I can do the same thing, please let me know.
>
> Thanks, in advance!
>
> -- Ken
>
> ===========================================================================
> 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".