I have a very similar question. I'm loading a set of wavefront objects.
Normally, I'd just use the "RESIZE" flag to scale and position an object.
Now I have a group of objects and I'd like to scale and position all of them
correctly. I've tried aiming the view at the scenegroup and positioning the
group at 0,0,0. Even when I set the backclip distance to Double.MAX_VALUE, I
have to zoom the entire assembly forward from behind the background to see
it.
What am I doing wrong? This shouldn't be difficult at all!
I've attached my source code. Any help at all would be greatly appreciated!
Thanks!
~John

-----Original Message-----
From: Rajamiyer Ravichandran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 25, 2000 1:17 PM
To: [EMAIL PROTECTED]
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".

ObjLoad.java

Reply via email to