Dear Jack,

you are right, Java 3D doesn't rescale the coordinates of the
compressed geometry. You have to do this by hand. Notice, that since
Java 3D 1.2 there are two Point3Ds called upperBound and lowerBound in
the CompressedGeometryHeader, which you can use to store the original
scale of your geometry. Nevertheless, I find this very inconvenient
and suggest you try to save your geometry instead as a gzip'ed file,
because somebody on this list pointed out a few weeks ago, that the
compression you can achieve with the conventional gzip algorithm is in
some (most?) cases better than with CompressedGeometry.

Regards,

Ingo

> Content-Type: multipart/alternative;
>               boundary="----=_NextPart_000_0548_01C02717.5B551E90"
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
> Date:         Mon, 25 Sep 2000 17:38:03 -0700
> Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
> Sender: Discussion list for Java 3D API <[EMAIL PROTECTED]>
> From: Jack Pien <[EMAIL PROTECTED]>
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0548_01C02717.5B551E90
> Content-Type: text/plain;
>         charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> hi,
>
> i'm trying to save a J3D scene graph into a number of =
> CompressedGeometryFile's.  i noticed that the CompressedGeometry clamps =
> coordinates between (-1,1) probably as part of the compression =
> algorithm.  but when i try to reconstruct my new scene graph using =
> CompressGeometryFile object, Java3D doesn't seem to unclamp the =
> compressed coordinates - the coordinate data are all still between =
> (-1,1). =20
>
> i'm recreating my scene graph by the following calls:
>
> CompressedGeometry cg =3D cgFile.read(0);
> cgFile.close();
> ...
> Shape3D sh =3D new Shape3D( cg, appearance);
>
> am i making the right calls to create my compressed geometry Shape3D =
> such that it would unclamp the compressed coordinates?  or do i have to =
> know the range which my original coordinates span and store the range =
> and rescale myself when i create my Shape3D with the compressed =
> geometry?
>
> thanks.
>
> jack

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