aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-09-23 03:01:39 +0200
committerSven Gothel <[email protected]>2023-09-23 03:01:39 +0200
commitcbb0035b5c5df6eada04e38a3478091cca0fe9c5 (patch)
treef4fb4f6ce3d9364d3a775b4776ae7409af06dccd
parente9e68d786716e743c7c8e93bf3a882cc6ef2f979 (diff)
Bug 1452: GraphUI Scene DefaultPMVMatrixSetup.set(): Fix regression of commit 5d6e8a367c03644740187e500c6de5d3ac039d5e
- pmv.glMatrixMode(GLMatrixFunc.GL_PROJECTION); - pmv.glLoadIdentity(); - pmv.gluPerspective(angle, ratio, zNear, zFar); - pmv.glTranslatef(0f, 0f, scene_dist); + pmv.loadPIdentity(); + pmv.perspectiveP(angle, ratio, zNear, zFar); + pmv.translateMv(0f, 0f, scene_dist); ^^ Was projection matrix. Fixed. Note: resolved via TraceGL and comparing output -> P matrix differed, here translation.
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/Scene.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Scene.java b/src/graphui/classes/com/jogamp/graph/ui/Scene.java
index 370c51dc7..9e9925481 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/Scene.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/Scene.java
@@ -1283,7 +1283,7 @@ public final class Scene implements Container, GLEventListener {
final float ratio = (float) viewport.width() / (float) viewport.height();
pmv.loadPIdentity();
pmv.perspectiveP(angle, ratio, zNear, zFar);
- pmv.translateMv(0f, 0f, scene_dist);
+ pmv.translateP(0f, 0f, scene_dist);
pmv.loadMvIdentity();
}