Re: [osg-users] ECEF Oriented Compass Implementation

2016-11-16 Thread Sebastian Messerschmidt
Hi Robert, On 16 November 2016 at 11:50, Rambabu Repaka wrote: Hi,I got the answer for my question.In the compass node creation sample code two errors are there. First one: replace Compass(); with compass(void) { } second one: Replace virtual ~Compass() with

Re: [osg-users] ECEF Oriented Compass Implementation

2016-11-16 Thread Robert Osfield
On 16 November 2016 at 11:50, Rambabu Repaka wrote: > Hi,I got the answer for my question.In the compass node creation sample code > two errors are there. > > First one: replace Compass(); with > compass(void) > { > } > second one: Replace virtual ~Compass() with >

Re: [osg-users] ECEF Oriented Compass Implementation

2016-11-16 Thread Rambabu Repaka
Hi,I got the answer for my question.In the compass node creation sample code two errors are there. First one: replace Compass(); with compass(void) { } second one: Replace virtual ~Compass() with Compass::~Compass(void) { } ... Thank you! Cheers, Rambabu -- Read this

Re: [osg-users] ECEF Oriented Compass Implementation

2016-11-16 Thread Robert Osfield
On 16 November 2016 at 11:09, Rambabu Repaka wrote: > Hi,In Osg3_Cookbook.pdf implementing a compass node example page number > 74.Problem in compass class linking. Another tiny bit of info. You should have mentioned this info right in your first post - give other

Re: [osg-users] ECEF Oriented Compass Implementation

2016-11-16 Thread Nickolai Medvedev
Hi, all. Source file and header in archive. To use a class a compass: osg::ref_ptr node = osgDB::readNodeFile("arrow.osgb"); // any node looking to the north if(node.valid()) { node->getOrCreateStateSet()->setMode( GL_LIGHTING, osg::StateAttribute::OFF );

Re: [osg-users] ECEF Oriented Compass Implementation

2016-11-16 Thread Rambabu Repaka
Hi,In Osg3_Cookbook.pdf implementing a compass node example page number 74.Problem in compass class linking. ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69392#69392

Re: [osg-users] ECEF Oriented Compass Implementation

2016-11-16 Thread Robert Osfield
On 16 November 2016 at 10:43, Rambabu Repaka wrote: > compass class created but it is showing linker errors due to missing of > library.How can i get that library file in osg. Still not enough information. The code itself isn't likely to be the issue so there little

Re: [osg-users] ECEF Oriented Compass Implementation

2016-11-16 Thread Rambabu Repaka
Hi, class Compass : public osg::Camera { public: Compass(); Compass( const Compass& copy, osg::CopyOp copyop=osg::CopyOp::SHALLOW_COPY ); META_Node( osg, Compass ); void setPlate( osg::MatrixTransform* plate ) {_plateTransform = plate; } void

Re: [osg-users] ECEF Oriented Compass Implementation

2016-11-16 Thread Robert Osfield
HI Rambabu, On 16 November 2016 at 09:57, Rambabu Repaka wrote: > Hi,Iam working with compass creation Linker errors are coming asking the > compass library file.How can i solve this can anyone tell. You really need to put more effort in asking questions in a way that

Re: [osg-users] ECEF Oriented Compass Implementation

2016-11-16 Thread Rambabu Repaka
Hi,Iam working with compass creation Linker errors are coming asking the compass library file.How can i solve this can anyone tell. ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69385#69385

Re: [osg-users] ECEF Oriented Compass Implementation

2012-07-02 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
the z-axis (0,0,1). -Shayne -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of onur akkaya Sent: Thursday, June 28, 2012 1:20 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] ECEF Oriented Compass

[osg-users] ECEF Oriented Compass Implementation

2012-06-29 Thread onur akkaya
Hi, I have an ECEF terrain and I want to implement a compass node to show the true north to the user. I tried the code below but at some angles it does not work correctly. When the camera is vertical (birds eye view) to the terrain, it works perfect but if you rotate the camera (elevation or