Hello everybody, here is my problem...

Say I want to display an Area in a Graphics2D and this area is very big.
I scale the area to make it fit in the window  using:

Graphics2D g2 ;
AffineTransform at = new AffineTransform();
at.scale (scale,scale);  // scale = min window dimension / max length of
area
g2.setTransform(at);

And that's work ok.
Now, I convert this area into a 3D object and I want to display it in
Java 3D. How do I scale it? I know the Java 2D and Java3D coordinates
systems are different. And that Java2D uses pixels and java 3D meters. I
have tried with a Transform in the content branch and also in the view
branch, I have tried setting several things in the View. But I never get
the right result, I alwasy get something either too big or too small but
never of the right size for the window.  I dont really understand what
goes on in the ViewPlatform and View nodes.
Can anyone help me? Pointers to examples would be great.

Thanks a lot

Rosa

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