[osg-users] NodeVisitor finds the named Node, but NodeCallback doesn't rotate it

2015-08-01 Thread Elias Tarasov
Hi!
I have .ac models. One is a quadrocopter and two others are it's engines. Each 
engine has propeller, which i want to animate by rotation. To do it, i have to 
find propeler's node for the start. What i was able to find that two ways are 
exist.
First is to find a node by it's name.
Second is to find a node by it's unique characteristics.
Here is models: 
https://drive.google.com/file/d/0ByDDImhSolf6cnVIN3JIMzJQTGs/view?usp=sharing

So the 1st question: 
How to determine, the name of the node or it's other characteristics, to be 
able to find it?

I developed simple program that searches a node by it's name. Something, that 
looks like a node's name i found when open .ac file using notepad and search 
for the name tag. But im not sure.

Here is code: 
https://drive.google.com/file/d/0ByDDImhSolf6U3BmTXpjeE1mRDg/view?usp=sharing
The problem: NodeVisitor finds a node( though im not sure this node is a 
propeller), but NodeCallback doesn't rotate it.

So the 2nd question: Why the element, identified by it's name, does not rotate?

The reason, why im sure that these models should be able to rotate anyway, is 
that i took them from another app, based on OSG and it works well.

Thank you!

Cheers,
Elias

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64557#64557





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Visual Studio Community 2015 Build Issues

2015-08-01 Thread sam
Hi All,

I am trying to compile OSG 3.2.1 and running into the below issues:

1-- Build started: Project: osgViewer, Configuration: Debug Win32
--
1  AcrossAllScreens.cpp
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(55):
warning C4589: Constructor of abstract class 'osg::Operation' ignores
initializer for virtual base class 'osg::Referenced'
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(55):
note: virtual base classes are only initialized by the most-derived type
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(81):
warning C4589: Constructor of abstract class 'osg::Operation' ignores
initializer for virtual base class 'osg::Referenced'
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(81):
note: virtual base classes are only initialized by the most-derived type
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(85):
warning C4589: Constructor of abstract class 'osg::Operation' ignores
initializer for virtual base class 'osg::Referenced'
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(85):
note: virtual base classes are only initialized by the most-derived type
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osgUtil/UpdateVisitor(99):
warning C4456: declaration of 'callback' hides previous local declaration
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osgUtil/UpdateVisitor(93):
note: see declaration of 'callback'
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osgViewer/ViewerBase(338):
error C2249: 'osg::Object::operator =': no accessible path to private
member declared in virtual base 'osg::Object'
1  D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/Object(197):
note: see declaration of 'osg::Object::operator ='
1  D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/Object(52):
note: see declaration of 'osg::Object'
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osgViewer/ViewerBase(338):
note: This diagnostic occurred in the compiler generated function
'osgViewer::ViewerBase osgViewer::ViewerBase::operator =(const
osgViewer::ViewerBase )'
1  PanoramicSphericalDisplay.cpp
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(55):
warning C4589: Constructor of abstract class 'osg::Operation' ignores
initializer for virtual base class 'osg::Referenced'
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(55):
note: virtual base classes are only initialized by the most-derived type
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(81):
warning C4589: Constructor of abstract class 'osg::Operation' ignores
initializer for virtual base class 'osg::Referenced'
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(81):
note: virtual base classes are only initialized by the most-derived type
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(85):
warning C4589: Constructor of abstract class 'osg::Operation' ignores
initializer for virtual base class 'osg::Referenced'
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(85):
note: virtual base classes are only initialized by the most-derived type
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osgUtil/UpdateVisitor(99):
warning C4456: declaration of 'callback' hides previous local declaration
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osgUtil/UpdateVisitor(93):
note: see declaration of 'callback'
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osgViewer/ViewerBase(338):
error C2249: 'osg::Object::operator =': no accessible path to private
member declared in virtual base 'osg::Object'
1  D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/Object(197):
note: see declaration of 'osg::Object::operator ='
1  D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/Object(52):
note: see declaration of 'osg::Object'
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osgViewer/ViewerBase(338):
note: This diagnostic occurred in the compiler generated function
'osgViewer::ViewerBase osgViewer::ViewerBase::operator =(const
osgViewer::ViewerBase )'
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\src\osgViewer\config\PanoramicSphericalDisplay.cpp(273):
warning C4456: declaration of 'buffer' hides previous local declaration
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\src\osgViewer\config\PanoramicSphericalDisplay.cpp(227):
note: see declaration of 'buffer'
1  SingleScreen.cpp
1D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(55):
warning C4589: Constructor of abstract class 'osg::Operation' ignores
initializer for virtual base class 'osg::Referenced'
1
D:\Programming\Libraries\OpenSceneGraph-3.2.1\include\osg/OperationThread(55):
note: virtual base classes are only initialized by the most-derived type

Re: [osg-users] [build] Trouble Building Stable 3.0.1 And Conflicting Newer Libraries

2015-08-01 Thread Michael Chapman
Oh, that might be the problem. I'm working on an older computer and only the 
legacy open source AMD drivers are available. The graphics card is a Radeon 
X1650 Pro and it only allows up to OpenGL 2.1. Maybe the cessna file uses some 
modern feature that isn't available with the legacy drivers.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64558#64558





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org