Eric,
Thanks for following up, I hate it when I don't get the same mileage as
everyone else. ;-)
I'm forwarding it to the group since it looks like you didn't and I know
others are interested.
Thanks!
-Gary
---------------------- Forwarded by Gary Moss/arl on 01/15/99 03:20 PM
---------------------------
"Eric Price" <[EMAIL PROTECTED]> on 01/15/99 12:06:15 PM
To: Gary Moss/arl@arl, [EMAIL PROTECTED]
cc:
Subject: RE: [java3d] View.setWindowResizePolicy implemented?
O.K. I tried my examples again on this issue. I use a PARALLEL projection,
and in this case, the VIRTUAL_WORLD and PHYSICAL_WORLD do in fact work. The
default PERSPECTIVE projection does have the problem you are speaking about.
A workaround would be to trap the resize of the underlying window, and
recalculate the overall scale. This doesn't sound too hard, but I can't
offer you code right now.
Eric
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 15, 1999 8:28 AM
To: Eric Price
Cc: [EMAIL PROTECTED]
Subject: RE: [java3d] View.setWindowResizePolicy implemented?
So, when you resize the window, everything remains the same size WRT the
screen? Well I rearranged code so that I call setWindowResizePolicy as
early
on as possible, before creating the Locale node and it still doesn't have
any
effect. I have a class called OurUniverse which extends VirtualUniverse
and I
call the method in question from the constructor as follows:
private class OurUniverse extends VirtualUniverse
{
private Canvas3D canvas; // the canvas
private Locale locale;
private Viewer viewer;
private ViewingPlatform viewingPlatform;
public OurUniverse()
{
super();
// Create the 3D Canvas, Viewer, and View.
canvas = new Canvas3D( null );
viewer = new Viewer( canvas, null );
View view = viewer.getView();
view.setBackClipDistance( backclipdist );
view.setFrontClipPolicy( view.VIRTUAL_EYE );
view.setFrontClipDistance( frontclipdist );
view.setWindowResizePolicy( view.VIRTUAL_WORLD ); // XXX no effect!
// XXX - scene anti-aliasing not implemented!!!
//view.setSceneAntialiasingEnable( true );
// Create the ViewingPlatform and add it to the Viewer.
viewingPlatform = new ViewingPlatform( 1 );
viewer.setViewingPlatform( viewingPlatform );
locale = new Locale( this );
}
...
}
Go figure,
-Gary
"Eric Price" <[EMAIL PROTECTED]> on 01/14/99 07:44:42 PM
To: Gary Moss/arl@arl, [EMAIL PROTECTED]
cc:
Subject: RE: [java3d] View.setWindowResizePolicy implemented?
For what it's worth, the command works for me (i.e. does what the manual
says it will do.) I do it before I attach the view branch to the locale, and
before I attach the locale to the universe.
Eric
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 14, 1999 8:55 AM
To: [EMAIL PROTECTED]
Subject: [java3d] View.setWindowResizePolicy implemented?
Hello Everyone,
I am trying to use View.setWindowResizePolicy( View.VIRTUAL_WORLD) and it
doesn't seem to have any effect. This is under Windows NT/OpenGL. I want
the
size of the scene, view platform geometry, etc. to stay the same when the
window is enlarged so that more or less of the virtual world is revealed.
I've tried setting it to both VIRTUAL_WORLD and PHYSICAL_WORLD and discern
any
difference between the two. Does anyone know if this currently implemented
for my platform?
Thanks,
-Gary
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/