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 Compass::~Compass(void) { } Ne

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 > Compass::~Compass(void) > { > }

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 topic

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 people context to what you ar

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 point in posting it. PLEASE

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 setNeed

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 others might have a chance

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-08-01 Thread Shayne Tueller
There are several ways to attack this problem. Working directly with heading, pitch, roll is problematic because of singularities. For me, I chose to use vector math to solve the problem. The vector math for bearing calculation on a spheroid can be had as follows: Let ā€œNā€ be defined as (0,0,R)

Re: [osg-users] ECEF Oriented Compass Implementation

2012-08-01 Thread onur akkaya
Hi S2LR, thank you for your reply I converted camera's rotation matrix (as quat) to local quat then I calculated the yaw, pitch and roll angles from the comverted quat but it did not work. I could not understand your reply exactly, how can I calculate the bearing when the pitch & roll angles ar

Re: [osg-users] ECEF Oriented Compass Implementation

2012-07-02 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
then be calculated by using the bearing angle to rotate around 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-u

[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 r