aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-04-10 19:58:33 -0400
committerPaul Gilbert2017-04-10 19:58:33 -0400
commit2c9dffc502e3f4a8daaf20869b11e38397951a14 (patch)
tree991e78754a650250114ff2735ed040d1a756b7b3 /engines
parent9877daad890c20ca12ef5066acfe909cd9d4f8c3 (diff)
downloadscummvm-rg350-2c9dffc502e3f4a8daaf20869b11e38397951a14.tar.gz
scummvm-rg350-2c9dffc502e3f4a8daaf20869b11e38397951a14.tar.bz2
scummvm-rg350-2c9dffc502e3f4a8daaf20869b11e38397951a14.zip
TITANIC: Temporarily lock camera for testing star closeup rendering
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/star_control/base_stars.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/titanic/star_control/base_stars.cpp b/engines/titanic/star_control/base_stars.cpp
index d1ead70a1e..a88c86fc34 100644
--- a/engines/titanic/star_control/base_stars.cpp
+++ b/engines/titanic/star_control/base_stars.cpp
@@ -440,6 +440,12 @@ void CBaseStars::draw4(CSurfaceArea *surfaceArea, CStarCamera *camera, CStarClos
FPose pose = camera->getPose();
camera->proc36(&_value1, &_value2, &_value3, &_value4);
+ //**DEBUG** Testing star closeup
+ pose._row1 = FVector(-0.309339792, 0.777301192, -0.547824562);
+ pose._row2 = FVector(0.796925128, -0.102426603, -0.595331132);
+ pose._row3 = FVector(-0.518863380, -0.620734751, -0.587766230);
+ pose._vector = FVector(28068592.0, 5345916.50, -116580624.0);
+
const double MAX_VAL = 1.0e9 * 1.0e9;
FPoint centroid = surfaceArea->_centroid - FPoint(0.5, 0.5);
double threshold = camera->getThreshold();
@@ -465,6 +471,7 @@ void CBaseStars::draw4(CSurfaceArea *surfaceArea, CStarCamera *camera, CStarClos
total2 = tempY * tempY + tempX * tempX + tempZ * tempZ;
if (total2 < 1.0e12) {
+ // We're in close proximity to the given star, so draw a closeup of it
closeup->draw(pose, vector, FVector(centroid._x, centroid._y, total2),
surfaceArea, camera);
continue;