I am developing on a Win2000 system using a 32mb ATI Radeon and the Java3D 1.3beta1
OpenGL implementation.
My application extends a Canvas3D object, which has been placed in a JPanel, which is
in a JFrame. In my Canvas3D class, I have subclassed the postRender() method as
follows:
public void postRender()
{
J3DGraphics2D vGraphics = super.getGraphics2D();
vGraphics.setFont(new Font("sans-serif", Font.PLAIN, 16));
vGraphics.setPaint(mColor);
vGraphics.drawRect(10, 10, 100, 100);
vGraphics.drawString(mText, 50, 50);
vGraphics.flush(false);
}
The rectangle and string are displayed in the correct location to begin. However, if I
resize the window (in particular, only if I increase the width of the application
window), I am finding that the objects onscreen, the rectangle and string, are scaled
by a factor of about 1.5 in the horizontal direction.
Has anyone else come upon this behavior?
Sean
==========================================================================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".