Surely the sensible advice here is to design your application to not rely
on vertex sequence correspondence between VRML and Java3D.  To rely on this
is to invite trouble at the next revision.

-----Original Message-----
From:   Alan Hudson [SMTP:[EMAIL PROTECTED]
Sent:   01 July 2003 17:14
To:     [EMAIL PROTECTED]
Subject:        Re: [JAVA3D] VRML loading problem

Adam Shadbolt wrote:

> Hello all,
>
> I am using the built in loader to load a VRML file.
> My problem is when I access the geometry for the object it is not as it
> is in the .wrl file.
> So in the vrml file there is one shape that is made up of 7000 vertices.
> I want to move specific vertices; e.g. move vertex 121 to point(x,y,z).
> But when I call geomtryArray.getCoordinate(121, p); point 121 doesn't
> refer to vertex 121 in the vrml file. It returns a random vertex.
>
> I believe the problem is to with the loader stripifying the geometry
> array (Maybe?).
>
THe original VRML loader from Sun does stripfiy the data.  So there will
be no relation between the VRML vertex and the J3D one.  The latest Xj3D
loader does not do this.  But I can't promise that in the future.  Most
loaders try and optimize the data into the fastest running content.

> Has anybody had a similar problem or know a work around?
You could grab the source for the original loader and remove the
stripifier call.


--
Alan Hudson
President: Yumetech, Inc.                      http://www.yumetech.com/
Web3D Open Source Chair        http://www.web3d.org/TaskGroups/source/

===========================================================================
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