> From: Heiko Gottschling <[EMAIL PROTECTED]>
>
> I'd like to know what's the basic unit of measurement for Java3D.
> In the Java3D tutorial there are some hints that it might be m (meter),
> but it seems like the API doesn't say anything about it.

The spec says in section 3.4: "The default units are meters".

> Or doesn't it matter, as long as I only create my objects with the right
> proportions?

For the most part, yes. Using some of the advanced viewing capabilities of J3D,
you'll want to make sure that your distances are correct (for example, in
setting up a VR cave system), but otherwise you can treat the units as an
arbitrary size.

> I want to process some real-world data, which is specified in the unit of
> mm (millimeter), would it be wise to convert everything to m?

A simple way to handle this would be to put your mm data into a transform group
with a transform which scales from mm to m (a uniform scale of 0.001).  That way
your definitions are in mm, but the Vworld sizes will be in meters.

Using either mm or m, you'll have to set up your view display your object
correctly.  The examples are generally set up to display objects in the -1 -> 1
range around the origin.

Doug Gehringer
Sun Microsystems

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