Good idea, I find those User Docs extremely helpful. And thanks DanK the code worked a treat.
One more question, as going from perspective to parallel appeared to zoom out slightly, I adjusted the left, right, top, and bottom distances (from the central point) to zoom back in. Is this the desired way of zooming with this type of camera?
adamgp: Glad to be of help, of course… it really all comes from renanse, cep21, and mojomonkey when it comes down to it (and a few others too), they made the engine, and if they weren't the ones who told me how to do it, they were probably the ones who told the person who told me how to do it… or so it goes.
Can't help with ortho, I haven't had any luck with it when I tried to use it for something, I've been around a long time but my 3d skills pretty much don't exist… but now and then I'm stumbling across some realizations on how to work jME better… one of these days, I'll want to do something and it won't be a struggle, I look forward to the day when programming in jME is "tedious" (I know how to do everything, it's just a matter of putting in the work) vs frustrating (I don't know how to do anything, when I attempt to put in the work, it's actually spending time trying to figure out how to do the work). This isn't a fault in jME so much as my brain just not grasping 3D concepts like it should, I'm broken.
That works fine, but when i switch to this camera i must resize the window, doen't show nothing till I resize the window, next times i switch between the perspective camera and that parallel camera works fine, but the first time i need to resize.
I assume when you say resize this means you are doing it embedded in Swing? (If I'm wrong, ignore the next paragraph… :))
The resize code in JMECanvasImplementor calls reinit on the Renderer, which in turn calls it on the camera and forces a viewport change. I would suggest calling onViewPortChange() on your camera. (And perhaps call apply() on it as well.)