> Date: Mon, 10 Jun 2002 07:11:49 -0600 > From: Raul Rios <[EMAIL PROTECTED]> > > Like many other people in this list, I'm working with > terrains and landscapes. My application renders rectangular > areas of several square kilometers. However, it seems > like being a much smaller area when you see the terrain > rendered into the Canvas3D and when you navigate throw it. > > I would like the terrain surface looks like very > much longer than it actually does. In other words: > I need more "amplitude or extension sensation". > > Must I trasform the whole scene with a scale factor in a > TransformGroup node?
That would be one way to do it. > Or is it possible to modify the view in such a way to do this? You can also supply a scale factor in view platform transform -- scaling the view platform smaller will make the virtual world appear larger. Moving closer to your terrain should also work, but you will probably have to adjust your clip planes. There is also the screen scale. The default screen scale policy is SCALE_SCREEN_SIZE, which scales the virtual world by half the physical screen width so that the range [-1.0 .. +1.0] maps to the width of the screen or window. You can set the screen scale policy to SCALE_EXPLICIT and set your own scale factor. Note, however, that the screen scale is applied about the origin of view platform coordinates, which by default is the eyepoint. Adjusting this scale won't affect the rendered size of the image with a perspective view, so you will have to move closer to the terrain. > Which of this two approaches render faster? If you are doing dynamic scale changes, then altering the view scale is faster. Altering model transforms will cause updates to the internal data structures that Java 3D uses for spatial organization. If you're only going to set the scale once then scaling on either the content or view side of the scene graph doesn't matter. -- Mark Hood =========================================================================== 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".
