summaryrefslogtreecommitdiffstats
path: root/src/net/java/joglutils/msg/nodes/PerspectiveCamera.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2007-04-08 21:10:19 +0000
committerKenneth Russel <[email protected]>2007-04-08 21:10:19 +0000
commitd7b486ec441c492cb006ec73ab628dfb2b44488a (patch)
treea668409ef7a953f16a327b4535bb6bde5a94654c /src/net/java/joglutils/msg/nodes/PerspectiveCamera.java
parent557d7cb15514800ffd91d88eca0a79bd15a6bee6 (diff)
Added OrthographicCamera class and factored out computation of start
point for ray picking into abstract Camera.getRayStartPoint(). Tested by temporarily modifying DisplayShelf demo to use an orthographic camera -- appears to be working. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/joglutils/trunk@63 83d24430-9974-4f80-8418-2cc3294053b9
Diffstat (limited to 'src/net/java/joglutils/msg/nodes/PerspectiveCamera.java')
-rw-r--r--src/net/java/joglutils/msg/nodes/PerspectiveCamera.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/java/joglutils/msg/nodes/PerspectiveCamera.java b/src/net/java/joglutils/msg/nodes/PerspectiveCamera.java
index 0bffd88..d2eb082 100644
--- a/src/net/java/joglutils/msg/nodes/PerspectiveCamera.java
+++ b/src/net/java/joglutils/msg/nodes/PerspectiveCamera.java
@@ -105,6 +105,10 @@ public class PerspectiveCamera extends Camera {
return getWidthAngle(getAspectRatio());
}
+ protected Vec3f getRayStartPoint(Vec2f point, Vec3f unprojectedPoint) {
+ return getPosition();
+ }
+
public void render(GLRenderAction action) {
// FIXME: unclear whether we should be doing this, or whether we
// should have a mechanism which doesn't require mutation of the