From b01816fe862b6b2fc7f53e6ada0d1544927d9d87 Mon Sep 17 00:00:00 2001 From: Patrick Meehan Date: Tue, 18 Dec 2018 15:32:33 -0800 Subject: [PATCH] fixed default camera and viewport projection regression --- samples/transform-pin/moai.png | Bin 16140 -> 0 bytes samples/transform-pin/run.bat | 24 ------------------------ samples/transform-pin/run.sh | 20 -------------------- src/moai-sim/MOAICamera.cpp | 2 +- src/moai-sim/MOAIViewport.cpp | 2 +- 5 files changed, 2 insertions(+), 46 deletions(-) delete mode 100644 samples/transform-pin/moai.png delete mode 100644 samples/transform-pin/run.bat delete mode 100755 samples/transform-pin/run.sh diff --git a/samples/transform-pin/moai.png b/samples/transform-pin/moai.png deleted file mode 100644 index 8a9974bd65b372adeb15cd69fc8e910d3364d894..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16140 zcmXAw1z1#F*M`r)(B0igcXvyPfV8wAEh*9+f;7?~Eg}ulDIL<%A>BwQAPxV1zkjYv zL1E6B*?aA^p66a`K4_{dVWE?wLlA_eqO70=K``(w3_?W!U#4)SdBGPn7v-04A&86N zzdtaqB54l@Lf5d9m)F#^b#`}tYwPSnt0FH?>*D5YZTH3sg1i>9wQY2?_lYGhSI*_0 zMFu55bJik4rPY#)4kAosVxvRDRgI*}Um$wXh4=I+oMJF95-~0=D2C_-2WAxdJjxbb zL0o8IWYmw_b>BjV*|y7_(TDmusonCk?AmdZPE^cPW&Rg}L6{|S)Oc&51HJw0TU;{1 z=!`B9E^6&-y0`ZXFz6~kLV}&X6Qu)!c}-!ULY>dEI(aA~9&rxjGK^tCVX#j3M3HBx zL4=TuPn_HrNJbGBl%39`4duZh^I=PiO-PdyGG`9lnSz3{uQGgLkWn%n5iBneq9w43 zRDf*7q4IIPsHczt4@7AFtXCA8=Y)7v^sSYl>PDz@3>V`Ygo+9Ayod~Eh2XxB`5*&> z7ZjEO5i0)Gm-xe8iMz`NRx0D0L^Gr4(_kZ1PFECteJ*O2F%=SaLZMd(uQFx0y1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JS=fNS}!geix zhWdwpSJ_7kgs)HzPw1<8Ij$sGSKh&G4I2-6#LB3ASfnA&LAW_Ih?G8r*>C1>tsPqN z9gMi|x|I+bl8%bTdEv@nAYjVq2F*S%u%aYRMZu;a zDsa89eG}w5r6HaK(erI0bF3NYNg(G|ESST&fY5`qf`pg~5E0Lmm`TK%{b_>xVLJTT zy`64!Z-WZfdA`c-(p03^iXvj5bR$^hPG(g6_X(QouWv0;JI$fO(HuG`6c)q8{2szY z=J|1}mSNvVO3PF2C-F0zTMdcrP&QOXU(ppAlLHkUN7D;3TjHO?qkMdX8eXxQo?2DE R0UtMlRGz9URLYr${2%Axn1%oV diff --git a/samples/transform-pin/run.bat b/samples/transform-pin/run.bat deleted file mode 100644 index d5fad5e750..0000000000 --- a/samples/transform-pin/run.bat +++ /dev/null @@ -1,24 +0,0 @@ -::----------------------------------------------------------------:: -:: Copyright (c) 2010-2017 Zipline Games, Inc. -:: All Rights Reserved. -:: http://getmoai.com -::----------------------------------------------------------------:: - -@echo off - -:: verify paths -if not exist "%MOAI_BIN%\moai.exe" ( - echo. - echo -------------------------------------------------------------------------------- - echo ERROR: The MOAI_BIN environment variable either doesn't exist or it's pointing - echo to an invalid path. Please point it at a folder containing moai.exe. - echo -------------------------------------------------------------------------------- - echo. - goto end -) - -:: run moai -"%MOAI_BIN%\moai" "main.lua" - -:end -pause \ No newline at end of file diff --git a/samples/transform-pin/run.sh b/samples/transform-pin/run.sh deleted file mode 100755 index 612def2f86..0000000000 --- a/samples/transform-pin/run.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -#-------------------------------------------------------------------------------------- -# Copyright (c) 2010-2013 Zipline Games, Inc. -# All Rights Reserved. -# http://getmoai.com -#-------------------------------------------------------------------------------------- - -cd `dirname $0` - -# Verify paths -if [ ! -f "$MOAI_BIN/moai" ]; then - echo "---------------------------------------------------------------------------" - echo "Error: The MOAI_BIN environment variable doesn't exist or its pointing to an" - echo "invalid path. Please point it at a folder containing moai executable" - echo "---------------------------------------------------------------------------" - exit 1 -fi - -# Run moai -$MOAI_BIN/moai main.lua diff --git a/src/moai-sim/MOAICamera.cpp b/src/moai-sim/MOAICamera.cpp index 2b6545c04a..728b51d55e 100644 --- a/src/moai-sim/MOAICamera.cpp +++ b/src/moai-sim/MOAICamera.cpp @@ -415,7 +415,7 @@ ZLMatrix4x4 MOAICamera::GetProjMtx ( const MOAIViewport& viewport ) const { float xScale = ( 2.0f / viewport.Width ()) * viewScale.mX; float yScale = ( 2.0f / viewport.Height ()) * viewScale.mY; - mtx.Scale ( xScale, yScale, 0.0 ); + mtx.Scale ( xScale, yScale, -1.0 ); // Z must be non-zero to produce invertible projection matrix } } } diff --git a/src/moai-sim/MOAIViewport.cpp b/src/moai-sim/MOAIViewport.cpp index 27d2faad40..841ae76a38 100644 --- a/src/moai-sim/MOAIViewport.cpp +++ b/src/moai-sim/MOAIViewport.cpp @@ -200,7 +200,7 @@ ZLMatrix4x4 MOAIViewport::GetProjMtx () const { float xScale = ( 2.0f / rect.Width ()) * viewScale.mX; float yScale = ( 2.0f / rect.Height ()) * viewScale.mY; - mtx.Scale ( xScale, yScale, -1.0f ); + mtx.Scale ( xScale, yScale, -1.0f ); // Z must be non-zero to produce invertible projection matrix proj.Append ( mtx ); // offset