JDK-8102438 : Specify parallel camera position in world
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-05-03
  • Updated: 2015-06-16
  • Resolved: 2013-10-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Blocks :  
Blocks :  
Blocks :  
Blocks :  
Description
Specify parallel camera position in world. Right now its position is [0, 0, -1] which is the same as that of perspective camera with fixed eye position. However, parallel camera now renders and picks even nodes behind camera.

If we just fix the near/far clip planes for it, it stops to render anything above Z=-1. Consider moving the fixedEyePosition to Camera, although I'm not sure how to define the non-fixed position for parallel camera as there is no field of view. Perhaps it could have a double zPosition property, by default set somewhere farther than -1.

Feel free to assign to me for coding when the specification is cleared.

Comments
It has been agreed that parallel camera will have the same position as perspective camera in the default case - in the middle of the scene with Z distance such that a 30-degrees vertical field of view results in the XY plane being equal to projection plane.
31-10-2013

I see your point. Maybe we should consider moving clip to PerspectiveCamera for FX 8 (since it is new in FX 8) and only promote it to the base Camera class when we are ready to specify it.
27-08-2013

By the way, why are we introducing API that we can't even specify? The near/far clip could have been added to perspective camera only, couldn't it? Anyway, I guess we can document everywhere (clip planes, picking distance) that the behavior for parallel camera is undefined in this version and subject to change..
27-08-2013

But this affects also parallel camera with 2D scene, because in this case we still have near/far clip and report picked distance.
27-08-2013

Hi Pavel, we understand the concern. There are 2 reasons, we decided to push back on this issue. (1) We have more tweaks and bugs for FX 8 than we can complete. (2) ParallelCamera simply doesn't work well for 3D scene in FX 8. Moreover we have past the time frame for major tweaks.
27-08-2013

Also please note there are other issues dependent on this one.
27-08-2013

Chien, it doesn't make much sense to defer this to Van Ness. We either need to define it right now or stick with the current (not properly discussed) state for backward compatibility reasons.
27-08-2013