Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityGML
CityGMLViewer
Commits
d8959f48
Commit
d8959f48
authored
Apr 30, 2024
by
Matthias Betz
Browse files
rotate camera to point to north
parent
ee770fdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/hft/stuttgart/citygml/viewer/CityGMLViewer.java
View file @
d8959f48
...
@@ -403,7 +403,7 @@ public class CityGMLViewer {
...
@@ -403,7 +403,7 @@ public class CityGMLViewer {
double
translateZ
=
-
d
;
double
translateZ
=
-
d
;
camera
.
setDistance
((
float
)
translateZ
);
camera
.
setDistance
((
float
)
translateZ
);
cameraViewDistance
=
(
float
)
longestSide
*
20
f
;
cameraViewDistance
=
(
float
)
longestSide
*
20
f
;
camera
.
rotate
(
0
,
300
);
camera
.
rotate
(
Math
.
PI
/
2
*
50
0
,
300
);
clearColor
=
MemoryUtil
.
memAllocFloat
(
4
);
clearColor
=
MemoryUtil
.
memAllocFloat
(
4
);
clearColor
.
put
(
0
,
0.9411765f
).
put
(
1
,
1
f
).
put
(
2
,
1
f
).
put
(
3
,
1
f
);
clearColor
.
put
(
0
,
0.9411765f
).
put
(
1
,
1
f
).
put
(
2
,
1
f
).
put
(
3
,
1
f
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment