From 459b350eb96d8685ca93a346c34892f84efef7e6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 6 Apr 2004 20:15:11 +0000 Subject: [PATCH] Fixed comments on the OBJ coords system --- src/osgPlugins/obj/ReaderWriterOBJ.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/osgPlugins/obj/ReaderWriterOBJ.cpp b/src/osgPlugins/obj/ReaderWriterOBJ.cpp index bf53b5445..d3f5016c8 100644 --- a/src/osgPlugins/obj/ReaderWriterOBJ.cpp +++ b/src/osgPlugins/obj/ReaderWriterOBJ.cpp @@ -445,8 +445,7 @@ osg::Drawable* ReaderWriterOBJ::makeDrawable_duplicateCoords(GLMmodel* obj, GLMg { int ci = tri->vindices[corner]*3; - // note flip the y,z axis to convert the OBJ left hand coord system, y up to the OSG's - // right hand coords system z up. + // note rotate about the x axis to place the OBJ y up to OSG z up. coords->set(obj->vertices[ci],-obj->vertices[ci+2],obj->vertices[ci+1]); ++coords; @@ -460,8 +459,7 @@ osg::Drawable* ReaderWriterOBJ::makeDrawable_duplicateCoords(GLMmodel* obj, GLMg { int ni = tri->nindices[corner]*3; - // note flip the y,z axis to convert the OBJ left hand coord system, y up to the OSG's - // right hand coords system z up. + // note rotate about the x axis to place the OBJ y up to OSG z up. normals->set(obj->normals[ni],-obj->normals[ni+2],obj->normals[ni+1]); ++normals; }