[artoolkit-commits] artoolkit/examples/simpleLite simpleLite.c, 1.18, 1.19
Optical marker tracking and overlay for augmented reality.
Brought to you by:
philip_lamb
From: Philip L. <phi...@us...> - 2006-10-04 03:44:54
|
Update of /cvsroot/artoolkit/artoolkit/examples/simpleLite In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv1478 Modified Files: simpleLite.c Log Message: Added RH versions of GL projection and modelview fns in gsub_lite, and switch examples to using these. Index: simpleLite.c =================================================================== RCS file: /cvsroot/artoolkit/artoolkit/examples/simpleLite/simpleLite.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** simpleLite.c 18 Sep 2006 23:39:03 -0000 1.18 --- simpleLite.c 4 Oct 2006 03:44:52 -0000 1.19 *************** *** 383,387 **** if (gPatt_found) { // Projection transformation. ! arglCameraFrustum(&gARTCparam, VIEW_DISTANCE_MIN, VIEW_DISTANCE_MAX, p); glMatrixMode(GL_PROJECTION); glLoadMatrixd(p); --- 383,387 ---- if (gPatt_found) { // Projection transformation. ! arglCameraFrustumRH(&gARTCparam, VIEW_DISTANCE_MIN, VIEW_DISTANCE_MAX, p); glMatrixMode(GL_PROJECTION); glLoadMatrixd(p); *************** *** 395,401 **** // ARToolKit supplied distance in millimetres, but I want OpenGL to work in my units. ! arglCameraView(gPatt_trans, m, VIEW_SCALEFACTOR); glLoadMatrixd(m); ! // All other lighting and geometry goes here. DrawCube(); --- 395,401 ---- // ARToolKit supplied distance in millimetres, but I want OpenGL to work in my units. ! arglCameraViewRH(gPatt_trans, m, VIEW_SCALEFACTOR); glLoadMatrixd(m); ! // All other lighting and geometry goes here. DrawCube(); |