I want to set up the view so that a resize of the window does not resize the
objects - simple, right?

Per the docs, I use:

         u.getViewer().getView().setWindowResizePolicy(View.VIRTUAL_WORLD);

(where 'u' is a SimpleUniverse)

However, this doesn't seem to actually work - when I enlarge the window the
objects in it enlarge also.  What else needs to be done?

For demo purposes, I'm attaching a modified version of the HelloUniverse
which has been posted up here (thanks are due to Scott Decker and Phelim
Kelly for that piece of code...).  (I also modified that code to show a grid
'floor', which makes it easier to show their example of moving the view
rather than the objects.)  Originally I was going to remove the rotation and
substitute some key or mouse behavior to move the viewpoint, but now I'm
puzzled about the resizing issue.  The additions I made to the "communal"
code are marked as such....

Any hints or clues? I'm open for suggestions.

Thanks,
Neil Daniels

Note: docs read: "A value of VIRTUAL_WORLD implies that the original image
remains the same size on the screen but the user sees more or less of the
virtual world depending on whether the window grew or shrank in size"

HelloUniverse.java

Reply via email to