Don Burns set these up (perhaps even just today); I'm sure this is where
you'll find the most help...

http://andesengineering.com/mailman/listinfo/osg-ephemeris

...however, I can tell just from looking that the code isn't valid; it's
attempting to construct a new Matrixf object locally using a pointer,
and there are no methods to support this in the Matrixf class.

On Tue, 2007-05-29 at 23:13 +0200, Pieter du Plooy wrote:
> Hi list
> 
> I have followed the instructions provided by various people to hack
> osgEphemeris, and it worked.  I have just compiled openscenegraph
> 1.9.6, and now am trying to recompile osgEphemeris.
> 
> Now I get the following error: 
> 
> Entering directory
> `/tmp3/osgEphemeris/src/osgEphemerisLib/Linux32.Opt'
> g++  -I../../..//include  -Wall  -O2  -c ../StarField.cpp
> ../StarField.cpp: In member function 'virtual void
> UPCB::operator()(osg::Node*, osg::NodeVisitor*)': 
> ../StarField.cpp:135: error: conversion from 'osg::RefMatrix*' to
> non-scalar type 'osg::Matrixf' requested
> make[1]: *** [StarField.o] Error 1
> make[1]: Leaving directory
> `/tmp3/osgEphemeris/src/osgEphemerisLib/Linux32.Opt' 
> make: *** [libosgEphemeris.so.opt] Error 2
> 
> Relevant code is :
> 
> class UPCB : public osg::NodeCallback
> {
>     public:
>         UPCB( osg::Uniform *MVi ): _MVi(MVi), a(0.0) {}
> 
>         virtual void operator()(osg::Node* node, osg::NodeVisitor*
> nv) 
>         {
>             osgUtil::CullVisitor *cv =
> dynamic_cast<osgUtil::CullVisitor *>(nv);
>             if( cv != 0L )
>             {
>                 osg::Matrixf m = cv->getModelViewMatrix();  (THIS IS
> LINE 135!!!) 
>                 osg::Matrixf mi;
>                 mi.invert(m);
> 
>                 //a += osg::PI/180.0;
>                 //mi = osg::Matrix::rotate( a, 1, 0, 0 );
> 
>                 mi(3,0) = mi(3,1) = mi(3,2) = 0.0;
> 
>                 _MVi->set( mi );
>             }
>             traverse(node,nv);
>         }
>     private:
>         osg::ref_ptr<osg::Uniform>_MVi;
>         double a;
> };
> 
> 
> 
> Any help on this one? 
> 
> Regards
> 
> Pieter
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to