Hello,
I had the same exact problem when i started working with J3D..
After loosing alot of time and pacience looking for the j3d API solution for
this problem, which i never found, i gave up and come up with the following
solution:
When i�m building my objects( QuadArrays, TriangleArrays, etc) i keep track
of the maximum value that appears in the object i�m going to draw. For
example if i�m going to draw a triangle whose vertices are:
(1,1,1)
(1,1,1)
(1000,1000,1000)
i keep track of the value max=1000 and then i use it to scale the
object...
what u have to do, like i did, is come up with a mathematical formula to
apply to the max value to find the correct scale value....
Hope it helps.
Good luck and good work
----- Original Message -----
From: Rajamiyer Ravichandran <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 25, 2000 9:17 PM
Subject: [JAVA3D] How to determine correct scale factor
> Hi All,
> I have difficulty in setting the correct scale factor
> for the top level TransformGroup of my scene graph. My
> 3D models have different sizes and shapes. Knowing the
> current size of the model, how can determine the scale
> factor so that, the model will just fit in the
> canvas3d. I believe there must be some relationship
> between the model extents and the screen size so that
> the scale factor can be computed. I am using
> PARALLEL_PROJECTION.
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
>
===========================================================================
> 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".