Re: [osg-users] OPENSCENEGRAPH_MAJOR_VERSION and OSG_MAJOR_VERSION
I did simply #ifnderf OSG_MAJOR_VERSION #define OSG_MAJOR_VERSION OPENSCENEGRAPH_MAJOR_VERSION #endif Builds ok now and should support the ancient osg releases as well Nick On Sun, Jun 30, 2013 at 1:04 AM, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: wops, chrome sent the email too early. to continue. Any suggestions what to do with this check? OSG_MAJOR_VERSION become OPENSCENEGRAPH_MAJOR_VERSION and even it may sound stupid to support a decade old versions, one might find it useful ... Any hints? Thanks Nick On Sun, Jun 30, 2013 at 12:58 AM, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: Hi Robert, seam like this preprocessor define was renamed over the ages. I am revisiting the txp loader and found code that is compatible with older versions of the loader (osg 1.2 from the comment from while back when). The code is comming from Presagis and suppose to be the latest updates (which I don;'t agree since work was done after to support whole earth geocentric archives which is not present in the drop :/ )., Anyway, from my experience with vis-sim some companies know to stuck with acient versions of libraries and my intention here is to keep it compatible. I dont see this check in the trunk. It is for TXPNode::traverse method, there is something like: // In the time of this change Robert mentioned the next // version will be 2.0. If not then change the condition to // mach the right versions. Up to 1.2 the following statment // needs to compile. Nick #if OSG_VERSION_MAJOR = 1 tileMapper-pushModelViewMatrix(cv-getModelViewMatrix()); #else tileMapper-pushReferenceViewPoint(cv-getReferenceViewPoint()); tileMapper-pushModelViewMatrix(cv-getModelViewMatrix(), osg::Transform::RELATIVE_RF); #endif -- trajce nikolov nick -- trajce nikolov nick -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] OPENSCENEGRAPH_MAJOR_VERSION and OSG_MAJOR_VERSION
Hi Robert, seam like this preprocessor define was renamed over the ages. I am revisiting the txp loader and found code that is compatible with older versions of the loader (osg 1.2 from the comment from while back when). The code is comming from Presagis and suppose to be the latest updates (which I don;'t agree since work was done after to support whole earth geocentric archives which is not present in the drop :/ )., Anyway, from my experience with vis-sim some companies know to stuck with acient versions of libraries and my intention here is to keep it compatible. I dont see this check in the trunk. It is for TXPNode::traverse method, there is something like: // In the time of this change Robert mentioned the next // version will be 2.0. If not then change the condition to // mach the right versions. Up to 1.2 the following statment // needs to compile. Nick #if OSG_VERSION_MAJOR = 1 tileMapper-pushModelViewMatrix(cv-getModelViewMatrix()); #else tileMapper-pushReferenceViewPoint(cv-getReferenceViewPoint()); tileMapper-pushModelViewMatrix(cv-getModelViewMatrix(), osg::Transform::RELATIVE_RF); #endif -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OPENSCENEGRAPH_MAJOR_VERSION and OSG_MAJOR_VERSION
wops, chrome sent the email too early. to continue. Any suggestions what to do with this check? OSG_MAJOR_VERSION become OPENSCENEGRAPH_MAJOR_VERSION and even it may sound stupid to support a decade old versions, one might find it useful ... Any hints? Thanks Nick On Sun, Jun 30, 2013 at 12:58 AM, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: Hi Robert, seam like this preprocessor define was renamed over the ages. I am revisiting the txp loader and found code that is compatible with older versions of the loader (osg 1.2 from the comment from while back when). The code is comming from Presagis and suppose to be the latest updates (which I don;'t agree since work was done after to support whole earth geocentric archives which is not present in the drop :/ )., Anyway, from my experience with vis-sim some companies know to stuck with acient versions of libraries and my intention here is to keep it compatible. I dont see this check in the trunk. It is for TXPNode::traverse method, there is something like: // In the time of this change Robert mentioned the next // version will be 2.0. If not then change the condition to // mach the right versions. Up to 1.2 the following statment // needs to compile. Nick #if OSG_VERSION_MAJOR = 1 tileMapper-pushModelViewMatrix(cv-getModelViewMatrix()); #else tileMapper-pushReferenceViewPoint(cv-getReferenceViewPoint()); tileMapper-pushModelViewMatrix(cv-getModelViewMatrix(), osg::Transform::RELATIVE_RF); #endif -- trajce nikolov nick -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org