LDraw still uses inverted y-scale... I always used symmetrical objects for testing so I never noticed I had this wrong.

Thu, 21 Mar 2013 13:00:44 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Thu, 21 Mar 2013 13:00:44 +0200
changeset 59
21eae5342dc6
parent 58
4db04d4857c0
child 60
961663d05463

LDraw still uses inverted y-scale... I always used symmetrical objects for testing so I never noticed I had this wrong.

gldraw.cpp file | annotate | diff | comparison | revisions
--- a/gldraw.cpp	Thu Mar 21 12:57:06 2013 +0200
+++ b/gldraw.cpp	Thu Mar 21 13:00:44 2013 +0200
@@ -26,7 +26,7 @@
 #include "colors.h"
 
 #define GL_VERTEX(V) glVertex3d (V.x + g_faObjectOffset[0], \
-	V.y + g_faObjectOffset[1], V.z + g_faObjectOffset[2]);
+	-(V.y + g_faObjectOffset[1]), V.z + g_faObjectOffset[2]);
 
 double g_faObjectOffset[3];
 

mercurial