I’ve been messing around with View and ViewPlatform to try to see a flat XY view (viewing straight down the XY plane’s normal in the negative z direction). I think that Parallel Projection is supposed to do this, and that you can do it with
canvas3D.getView().setProjectionPolicy(View.PARALLEL_PROJECTION);
When I try that, it seems to work, but it makes my view zoom all the way in. So I try the following to make my camera zoom out a bit (vpTG is the universe’s ViewingPlatform’s ViewPlatformTransform):
Transform3D T3D = new Transform3D();
Vector3f translate = new Vector3f();
translate.set(10.0f, 10.0f, 60.0f);
T3D.setTranslation(translate);
vpTG.setTransform(T3D);
This seems to have no effect however. Any suggestions on what I might be doing wrong? Or perhaps a better way to zoom out (move my camera more toward the +z direction while still facing the XY plane)?
Thanks,
DAT