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
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)
> {
> }
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
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
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 );
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
___
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
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
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
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
___
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)
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
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
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
14 matches
Mail list logo