Re: [osg-users] Idea to implement a kind of 'rubber mode'

2018-09-11 Thread Tony Vasile
Hi Chris
  Actually in non US English the words rubber and eraser are interchangeable.

Tony


Tony V

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





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


[osg-users] [build] Messages when trying to cmake of OSX 10.13.4

2018-04-21 Thread Tony Vasile
Thought I tried to compile OpenSceneGraph 3.6.0 on OS X 10.13.4 and got the 
following error messages: 

Make Warning (dev):
   Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
   --help-policy CMP0042" for policy details.  Use the cmake_policy command to
   set the policy and suppress this warning.

   MACOSX_RPATH is not specified for the following targets:

OpenThreads
osg
osgAnimation
osgDB
osgFX
osgGA
osgManipulator
osgParticle
osgPresentation
osgShadow
osgSim
osgTerrain
osgText

Messages during last pass   
  

   CMake Version 3.4.1

Not sure what they mean but it appears something is missing. I also got a 
warning about QuickTime not being supported.

Thank you!

Cheers,


Tony V

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





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


Re: [osg-users] Copy a region of an image x,y,w,h / s,t,r

2018-03-03 Thread Tony Vasile
Hi,
 Does the code in the osghud.cpp examples help? 



Cheers,
Tony


Tony V

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





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


Re: [osg-users] Deadlock after attemp

2017-05-19 Thread Tony Vasile
Hi Robert,
We are running on Centos 6 with a 3.5.0 kernel. The OpenSceneGraph release is 
3.4.0 with osgEarth with some changes in it for us. Our version GLSL is 4.40 
and we are running the NVIDIA driver, which appears to be 340.96 on a NVIDIA 
GTX 660. The OpenSceneGraph version appears to have some patches in it based on 
what was in the RPM Spec file the we retrieved from the web.

The only error messages we have in our log file are:

Code:

Warning: detected OpenGL error 'stack underflow' at end of SceneView::draw()
[osgEarth]* [TileModelCompiler] Z-value not set for mask constraint vertex
[osgEarth]* [TileModelCompiler] Z-value not set for mask constraint vertex
[osgEarth]* [TileModelCompiler] Z-value not set for mask constraint vertex
[osgEarth]* [TileModelCompiler] Z-value not set for mask constraint vertex




Not sure what that means but my understanding is that this is the first time 
our application has died like this.

I haven't tried running osgViewer but I expect it will work as it has in the 
past on the same system with the same libraries.

... 

Thank you!

Cheers,
[/code]


Tony V

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





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


[osg-users] Deadlock after attemp

2017-05-18 Thread Tony Vasile
Hi,

After starting our applications which use OpenSceneGraph 3.4.0. It appears that 
the program has deadlocked after calling osgViewer::CompositeViewer::frame().


Does anyone have any ideas what went wrong? Attached is a stack trace of all 
the threads.

... 

Thank you!

Cheers,
Tony


Tony V

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




Thread 4 (Thread 0x7f9de7a56700 (LWP 6107)):
#0  0x003791e0b43c in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#1  0x003a17404efd in OpenThreads::Condition::wait (
this=, mutex=)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/OpenThreads/pthreads/PThreadCondition.cpp:137
#2  0x003a17085a3b in osgViewer::Renderer::ThreadSafeQueue::takeFront (
this=0x3455670)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgViewer/Renderer.cpp:336
#3  0x003a17085d66 in osgViewer::Renderer::draw (this=0x34555f0)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgViewer/Renderer.cpp:689
#4  0x003a16b70149 in osg::GraphicsContext::runOperations (this=0x3231e90)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osg/GraphicsContext.cpp:773
#5  0x003a16bcf264 in osg::OperationThread::run (this=0x346b870)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osg/OperationThread.cpp:432
#6  0x003a16b746b8 in osg::GraphicsThread::run (this=0x346b870)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osg/GraphicsThread.cpp:38
#7  0x003a1740486d in OpenThreads::ThreadPrivateActions::StartThread (
data=0x346b888)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/OpenThreads/pthreads/PThread.cpp:204
#8  0x003791e077e1 in start_thread () from /lib64/libpthread.so.0
#9  0x0037916e18ed in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f9ddba90700 (LWP 6110)):
#0  0x003791e0b43c in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#1  0x003a17404efd in OpenThreads::Condition::wait (
this=, mutex=)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/OpenThreads/pthreads/PThreadCondition.cpp:137
#2  0x003a13cad49a in block (this=0x3454a30)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/include/OpenThreads/Block:42
#3  block (this=0x3454a30)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/include/osgDB/DatabasePager:394
#4  osgDB::DatabasePager::DatabaseThread::run (this=0x3454a30)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgDB/DatabasePager.cpp:722
#5  0x003a1740486d in OpenThreads::ThreadPrivateActions::StartThread (
data=0x3454a48)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/OpenThreads/pthreads/PThread.cpp:204
#6  0x003791e077e1 in start_thread () from /lib64/libpthread.so.0
#7  0x0037916e18ed in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f9dd3fff700 (LWP 6111)):
#0  0x003791e0b43c in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#1  0x003a17404efd in OpenThreads::Condition::wait (
this=, mutex=)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/OpenThreads/pthreads/PThreadCondition.cpp:137
#2  0x003a13cad49a in block (this=0x3454b90)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/include/OpenThreads/Block:42
#3  block (this=0x3454b90)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/include/osgDB/DatabasePager:394
#4  osgDB::DatabasePager::DatabaseThread::run (this=0x3454b90)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgDB/DatabasePager.cpp:722
#5  0x003a1740486d in OpenThreads::ThreadPrivateActions::StartThread (
data=0x3454ba8)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/OpenThreads/pthreads/PThread.cpp:204
#6  0x003791e077e1 in start_thread () from /lib64/libpthread.so.0
#7  0x0037916e18ed in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f9de848d840 (LWP 6106)):
#0  0x003791e0b43c in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
#1  0x003a17404efd in OpenThreads::Condition::wait (
this=, mutex=)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/OpenThreads/pthreads/PThreadCondition.cpp:137
#2  0x003a170c5f76 in block (this=0x20d5890)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/include/OpenThreads/Block:133
#3  osgViewer::ViewerBase::renderingTraversals (this=0x20d5890)
at 
/usr/src/debug/OpenSceneGraph-3.4.0/OpenSceneGraph-3.4.0/src/osgViewer/ViewerBase.cpp:868
#4  0x004f50bc in ccExecutionControl::run (this=0x20d5770)
at ccExecutionControl.C:710
#5  0x004ecc84 in main (argc=1, argv=0x7fffa92aa158) at gbcMain.C:59
___
osg-users mailing list

Re: [osg-users] glsl version 130 not supported (and related problems)

2016-10-24 Thread Tony Vasile
This may also help: 
http://stackoverflow.com/questions/19865463/opengl-4-1-under-mavericks . It 
seems the Apple have truly crippled their OpenGL support  or they want everyone 
to write Objective C under XCode.


Tony V

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





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


[osg-users] Example of osgPartilcle::ExplosionOperator

2016-10-17 Thread Tony Vasile
Does anyone have an example on how to use the osgPartilcle::ExplosionOperator 
class?  I have tried to modify the osgshaderparticle example to include this 
but I can't work out how all the parameters are used.

I have tried to look at http://www.particlesystems.org but it appears to be no 
longer a site about particle  systems.

Any help would be most appreciated.


Tony V

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





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


Re: [osg-users] OSG SIGGRAPH was a TOTALLY Massively Success

2016-08-02 Thread Tony Vasile
Thanks for that. Even novices like me will get something out of them.


Tony V

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





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


Re: [osg-users] Problems with Alpha blending

2016-08-01 Thread Tony Vasile
Found the problem:

Code:

quad->setDataVariance(osg::Object::DYNAMIC);
quad->setUseDisplayList(false);



needed to be added before the quad was allowed to change its alpha value.


Tony V

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





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


Re: [osg-users] OSG SIGGRAPH was a TOTALLY Massively Success

2016-08-01 Thread Tony Vasile
Are Robert's slides available somewhere for those of us who couldn't make it?


Tony V

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





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


[osg-users] Problems with Alpha blending

2016-08-01 Thread Tony Vasile
I'm playing around with alpha blending of an image and I am changing the alpha 
value of the colour array and the image isn't becoming invisible. The program I 
have is a modified example. So what am I doing wrong?


Code:

#include 
#include 
#include 
#include 
#include 
#include 
#include 

osg::ref_ptr colors;
unsigned int g_width = 800, g_height = 600;

class TechniqueEventHandler : public osgGA::GUIEventHandler
{
public:

TechniqueEventHandler() { _alpha=(*colors)[0][3];}

virtual bool handle(const osgGA::GUIEventAdapter& 
ea,osgGA::GUIActionAdapter&);

protected:

~TechniqueEventHandler() {}

TechniqueEventHandler(const TechniqueEventHandler&,const osg::CopyOp&) {}

float _alpha;
};




bool TechniqueEventHandler::handle(const osgGA::GUIEventAdapter& 
ea,osgGA::GUIActionAdapter&)
{
switch(ea.getEventType())
{
case(osgGA::GUIEventAdapter::KEYDOWN):
{
if (ea.getKey()==osgGA::GUIEventAdapter::KEY_Right ||
ea.getKey()==osgGA::GUIEventAdapter::KEY_KP_Right)
{
_alpha += 0.1;
if (_alpha > 1.0) _alpha = 1.0;
(*colors)[0][3] = _alpha;
std::cout << "Alpha value is " << _alpha << std::endl;
return true;
}
else if (ea.getKey()==osgGA::GUIEventAdapter::KEY_Left ||
 ea.getKey()==osgGA::GUIEventAdapter::KEY_KP_Left)
{
_alpha -= 0.1;
if (_alpha < 0.0) _alpha = 0.0;
(*colors)[0][3] = _alpha;
std::cout << "Alpha value is " << _alpha << std::endl;
return true;
}
return false;
}

default:
return false;
}
}

int main( int argc, char** argv )
{
osg::ref_ptr vertices = new osg::Vec3Array;
vertices->push_back( osg::Vec3(-0.5f, 0.0f,-0.5f) );
vertices->push_back( osg::Vec3( 0.5f, 0.0f,-0.5f) );
vertices->push_back( osg::Vec3( 0.5f, 0.0f, 0.5f) );
vertices->push_back( osg::Vec3(-0.5f, 0.0f, 0.5f) );

osg::ref_ptr normals = new osg::Vec3Array;
normals->push_back( osg::Vec3(0.0f,-1.0f, 0.0f) );

osg::ref_ptr texcoords = new osg::Vec2Array;
texcoords->push_back( osg::Vec2(0.0f, 0.0f) );
texcoords->push_back( osg::Vec2(0.0f, 1.0f) );
texcoords->push_back( osg::Vec2(1.0f, 1.0f) );
texcoords->push_back( osg::Vec2(1.0f, 0.0f) );

colors = new osg::Vec4Array;
colors->push_back( osg::Vec4(1.0f, 1.0f, 1.0f, 0.5f) );
osg::ref_ptr quad = new osg::Geometry;
quad->setVertexArray( vertices.get() );
quad->setNormalArray( normals.get() );
quad->setNormalBinding( osg::Geometry::BIND_OVERALL );
quad->setColorArray( colors.get() );
quad->setColorBinding( osg::Geometry::BIND_OVERALL );
quad->setTexCoordArray( 0, texcoords.get() );
quad->addPrimitiveSet( new osg::DrawArrays(GL_QUADS, 0, 4) );

osg::ref_ptr geode = new osg::Geode;
geode->addDrawable( quad.get() );

osg::ref_ptr texture = new osg::Texture2D;
osg::ref_ptr image = osgDB::readImageFile( "lz.rgb" );
texture->setImage( image.get() );

osg::StateSet* stateset = geode->getOrCreateStateSet();
stateset->setTextureAttributeAndModes( 0, texture.get() );
stateset->setRenderingHint( osg::StateSet::TRANSPARENT_BIN );
   // stateset->setMode(GL_BLEND,osg::StateAttribute::ON);
osg::AlphaFunc* alphaFunc = new osg::AlphaFunc;
alphaFunc->setFunction(osg::AlphaFunc::GREATER,0.2f);


osg::ref_ptr blendFunc = new osg::BlendFunc;
//blendFunc->setFunction( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
stateset->setAttributeAndModes( blendFunc );

osg::ref_ptr root = new osg::Group;
root->addChild( geode.get() );

osgViewer::Viewer viewer;
viewer.setSceneData( root.get() );
viewer.addEventHandler(new TechniqueEventHandler());
 viewer.setUpViewInWindow( 50, 50, g_width, g_height );
return viewer.run();
}






Tony V

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





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


Re: [osg-users] CompositeViewer and FBO

2016-07-27 Thread Tony Vasile
Found my problem, I forgot to set the GraphicsContext for the RTT camera.

On another note, why do some examples add the RTT Camera and the Texture Camera 
as slave cameras to the viewer and other examples add the two cameras to the 
scene graph?


Tony V

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





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


[osg-users] CompositeViewer and FBO

2016-07-25 Thread Tony Vasile
Basically my setup is similar to osgfpdepth but instead of a simple 
osgViewer::Viewer object I have a osgViewer::CompositeViewer on the top.
Currently I only have one view in my CompositeViewer. 

After I add the rttCamera as a slave to the View returned by viewer.getView(0) 
and then add the texCamera to the same view,   the cameras that are processed 
by osgUtil::RenderStage::runCameraSetup are the main camera created in the view 
and the texCamera. If I debug the osgfpdepth program with its simple 
osgViewer::Viewer and its rttCamera and its texCamera, I see both the rttCamera 
and the texCamera processed by osgUtil::RenderStage::runCameraSetup. 

Does anyone have any suggestions as to were to look? I want the behaviour as 
the osgfpdepth example. Thanks in advance.


Tony V

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





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


Re: [osg-users] Dividing a window into smaller areas

2016-07-14 Thread Tony Vasile
Basically we are representing a panorama of 48 panels. We have a requirement to 
render one of the panels and then send the pixels over an ethernet connections.

I have got the moving around working but it appears that when glClear happens 
it happens after each viewport is rendered, so there is a lot flickering. Is 
there a way to set a clear mask so that the clearing only happens at the end of 
the processing?


Tony V

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





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


[osg-users] Dividing a window into smaller areas

2016-07-06 Thread Tony Vasile
I'm porting a Performer application to OpenSceneGraph and it is drawing the 
simulated view into a series of smaller regions on the screen. The way the 
application works is that it starts at the first position set the viewport to 
the desired position draws the piece of the panorama moves to the next region 
and updates the viewport to this new piece of the window and draws that section.

Basically I have window that is big enough to hold 3 rows of 16 regions which 
represents a 360 degree panorama, i.e the 360 degrees is divided into 48 panes. 

When I move the viewport around the window the panes are jumbled and aren't in 
the  correct order. Does the method of updating the window make sense in 
OpenSceneGraph? I have looked at the locations of the panes and the numbers are 
correct for  where the pane is supposed to be located but when I look at the 
image it is just not what is expected. And suggestions?


Tony V

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





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


Re: [osg-users] Osgb to collada

2016-07-04 Thread Tony Vasile
You need a plugin for the Collada conversion. If your OpenSceneGraph build has 
the plugin built for it, then it is as simple as Nickolai points out. If you 
don't have the plugin built you will need to built it and possibly the 
appropriate Collada library.


Tony V

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





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


Re: [osg-users] OSG Training

2016-06-22 Thread Tony Vasile
Hi Robert,
   I tried the obvious Google searches but can't find anything. I have also 
looked at the list on support people on OpenSceneGraph site but the people are 
either in the US or Europe. Can you suggest a way to find someone in Asia?

Thanks in advance.


Tony V

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





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


Re: [osg-users] OSG Training

2016-06-22 Thread Tony Vasile
The problem with this repository and the examples are that they are small 
examples, not necessarily on how to be a big program. We are part way through 
the port of a largish application and we have some new people working on it. It 
would be nice to have some training rather than bumbling in the dark trying to 
find the right example.


Tony V

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





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


[osg-users] OSG Training

2016-06-21 Thread Tony Vasile
Does anyone know of people or companies offering OpenSceneGraph training in 
Australia, preferably in Sydney. There was one training company offering 
something but looking at their web site, the course has been removed.

Tony V


Tony V

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





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


Re: [osg-users] Meteor falling

2016-04-15 Thread Tony Vasile
Hi Sebastian,
  In my case I am trying to simulate an illumination shell dropping from a 
height and lighting the scene below for a given duration so I don't have a 
model. Is it just a case of creating a node at the desired position and add a 
lightsource to it as per the osglightsource example? The shell is a ball of 
light. Can I specify the size of the light? And how do I make it self 
illuminating?


Tony V

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





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


[osg-users] Meteor falling

2016-04-14 Thread Tony Vasile
I looking for an example of a meteor or an illumination source slowly falling 
to the ground. It would have to cast light as it falls. Does one exist or is 
this something I would have to create.


Tony V

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





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


[osg-users] [3rdparty] Meteor falling

2016-04-14 Thread Tony Vasile
I looking for an example of a meteor or an illumination source slowly falling 
to the ground. It would have to cast light as it falls. Does one exist or is 
this something I would have to create.


Tony V

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





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


Re: [osg-users] Creating fixed size X11 window.

2016-03-31 Thread Tony Vasile
That worked but it also made the window stay on top. Is there a way to allow 
the window to be the size I want and have the other window controls available? 
Or are they mutually exclusive?


Tony V

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





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


Re: [osg-users] Creating fixed size X11 window.

2016-03-31 Thread Tony Vasile
Thanks for that Robert.

 I realised too late that New Topic creates an entry in the current forum area, 
that is when I hit Submit. I tried to delete but I guess I don't have the 
permissions to do this.


Tony V

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





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


[osg-users] Creating fixed size X11 window.

2016-03-30 Thread Tony Vasile
I have specified the geometry 

Code:

osg::GraphicsContext::Traits *traits = new osg::GraphicsContext::Traits;
traits->windowDecoration = false;
traits->supportsResize = false;
traits->sharedContext = NULL;
traits->doubleBuffer = true;
traits->red = 8;
traits->blue = 8;
traits->green = 8;
traits->alpha = 8;
traits->depth = 24;
traits->stencil = 8;
traits->stencil = 8;
traits->x = 100;
traits->y = 0;
traits->width = 1024;
traits->height = 1024;
 osg::GraphicsContext * gc = 
osg::GraphicsContext::createGraphicsContext(traits);



What I am expecting is a window that is positioned at (100, 0) with size (1024, 
1024). What I am getting a window that is size (1024, 996). Is there anyway to 
force that size to my desired size?

I am running on Centos 6 on 64 bit kernel.


Tony V

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





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


Re: [osg-users] Get all vertices of an OSG Group

2016-03-29 Thread Tony Vasile
The colours may also be in a material. Which is in a  osg::StateSet object.


Tony V

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





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


Re: [osg-users] Get all vertices of an OSG Group

2016-03-25 Thread Tony Vasile
Hi Clement,
  This is rather easy to do. All you need is to define a NodeVisitor and run it 
on the group. Using this way you only need to have an accept call for the Geode 
and process the drawables under the Geode.

Code:

class InfoVisitor : public osg::NodeVisitor
{
public:
InfoVisitor() 
{
setTraversalMode( osg::NodeVisitor::TRAVERSE_ALL_CHILDREN );
}

void apply( osg::Geode& geode )
{
for ( unsigned int i=0; iaccept(visitor);

// After it completes you can retrieve your data structure.


 

Hope this helps.


Tony V

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





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


Re: [osg-users] Single channel image

2016-03-13 Thread Tony Vasile
Got this to work. It required to set the following attributes on the osg::Image 
object:


Code:

   image->setInternalTextureFormat(GL_ALPHA);
   image->setPixelFormat(GL_ALPHA);
   image->setDataType(GL_UNSIGNED_BYTE);





Tony V

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





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


[osg-users] Single channel image

2016-03-04 Thread Tony Vasile
I trying to render a single channel image on a Billboard but I am having no 
much luck. I'm expecting to see the black parts of the image to be transparent 
but I am just seeing black. The white parts of the image are as expected. I 
have tried using 
Code:
setInternalFormat(GL_ALPHA_8)

, but all I get is the colour of the Billboard that the image is rendered on. 
Does anyone have any ideas on how I get this image to render properly.


Tony V

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



Ú€@ÿ*CJPTLMJF?=+
 
6DGE?!$>GMZfr|„‡‡‡}rmf^VTPC=;.
 $,IOTR?-LWZ]cdfjkflrmghls{ƒŠ—  
££—ˆƒyslih_XQIFD3#)#ýýþýýýüýüýüüýüüûüûüüüûüüûüüüûüüúúúûúùùùøùùø÷÷÷ööôôôñññîîîêìèéèäáàÝÜÛÚ×ÐÌÊÆÂÀ¾¼¶°¬¨–•‰‚ypihf]I5ýýþýýüýýüýüüýýüüüûüûûüüûúúûúúùùøúúøööõõòñòðîïêìèèçäááÞÝÜÚØÔÐÌËÆÁ½º¶±­ª
 
—–“Œƒ€zrkfc`XB"ûýýýüýýýüýüüýýýüüû

Re: [osg-users] Convert to OSG without file path

2016-02-24 Thread Tony Vasile
It would be good to add this functionality to all the Exporters that support 
the texture names.


Tony V

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





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


Re: [osg-users] Convert to OSG without file path

2016-02-23 Thread Tony Vasile
Hi Alexandre,
  Your right, but you could use osgconv to strip the paths in a temporary flt 
file and then convert the temporary flt file to osg.


Tony V

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





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


Re: [osg-users] [forum] "Request received" emails

2016-02-23 Thread Tony Vasile
It seems that you get one every time you post something of the forum. I posted 
two things tonight and got two of these.


Tony V

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





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


Re: [osg-users] Convert to OSG without file path

2016-02-23 Thread Tony Vasile
Hi Alexandre,
There is an export option for the OpenFlight plugin "stripTextureFilePath". 
This should would do what you want.


Tony V

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





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


[osg-users] PFFLT_GSTATE_TABLES equivalence.

2016-02-23 Thread Tony Vasile
Is there an equivalent of this Performer call to the following: 


> 
> The function, pfdConverterMode_flt, is provided for affecting the
> behavior of the loader.  
> 
>   void pfdConverterMode_flt ( int mode, int val );
> 
> PFFLT_GSTATE_TABLES - Selects the number of "indexed pfGeoState"
>   tables to handle/create while loading databases. Values greater
>   than zero cause the loader to call pfGSetGStateIndex(3) instead
>   of pfGSetGState(3). A value of zero or one is otherwise the
>   same in terms a storage behavior. The default value is zero,
>   meaning the loader will call pfGSetGState(3) to bind pfGeoState's
>   to pfGetSet's.
> 



Code:

// The Shared Palette must be accessed in the app process.
  fltSharedPalette* plt = fltGetCurSharedPalette();
 pfList* rnd = (pfList*)plt->rendMap->renditions;

  // If we do not have multiple renditions (geostate tables) then
  // do not attempt to get the ir channel.
  if (rnd->getNum() > 1)
  {
// Tell Performer to use the IR GeoState table for rendering the models,
// for the channel.
pipe->getChan(0)->setGStateTable((pfList*)rnd->get(1));

// Also force the table to be used in the app process, so that any app
// processing which needs to parse the geoStates will have valid data.
pfGeoState::applyTable((pfList*)rnd->get(1));

// reference table, so that other processes (eg DBASE) can set it
// for there use.
_irGStateTable = (pfList*)rnd->get(1);
  }






Tony V

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





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


Re: [osg-users] LineOfSight intersection returning geometry

2016-02-15 Thread Tony Vasile
Thanks for the info. 

By the way does OpenSceneGraph have a separate mask for intersection as well as 
rendering? I have some geometry that I don't want to intersect but do want to 
be rendered.


Tony V

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





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


Re: [osg-users] LineOfSight intersection returning geometry

2016-02-03 Thread Tony Vasile
So if you have a large piece of geometry like terrain or ocean is simply a case 
of setting the right mask on the root node of this large geometry to avoid or 
allow intersections? Or do you have set the mask on all the pieces of said 
large geometry?


Tony V

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





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


Re: [osg-users] LineOfSight intersection returning geometry

2016-01-21 Thread Tony Vasile
Thanks for that. I found my answer about an hour after posting this one.

By the way what are the following fields in 
osgUtil::LineSegmentIntersector::Intersection :

double  ratio;
osg::NodePath   nodePath;
osg::ref_ptr drawable;
osg::ref_ptrmatrix;
osg::Vec3d  localIntersectionPoint;
osg::Vec3   localIntersectionNormal;
IndexList   indexList;
RatioList   ratioList;
unsigned intprimitiveIndex;

Things like the nodePath, drawable, localIntersectionPoint, and  the 
localIntersectionNormal, I can work out what the are. But what are the ratio, 
ratioList, primitiveIndex, and the matrix? Is the matrix a transformation 
matrix?


Tony V

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





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


Re: [osg-users] LineOfSight intersection returning geometry

2016-01-20 Thread Tony Vasile
Okay so I found this code:


Code:

osg::ref_ptr intersectorGroup = new 
osgUtil::IntersectorGroup();

for(unsigned int r=0; r intersector = new 
osgUtil::LineSegmentIntersector(s, e);
intersectorGroup->addIntersector( intersector.get() );
}
}


osgUtil::IntersectionVisitor intersectVisitor( intersectorGroup.get(), 
new MyReadCallback );
scene->accept(intersectVisitor);


 in the osgintersections.cpp example. One thing that I can't find is how do I 
set a traversal mask?

Tony


Tony V

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





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


[osg-users] LineOfSight intersection returning geometry

2016-01-20 Thread Tony Vasile
Looking at the osgintersection.cpp example I notice that it uses 
osgSim::LineOfSight to set up a series of lines to intersect the model that is 
loaded. The intersections that are returned retrieves a series of intersection 
points. I was wondering if it is possible to get the geometry that the 
intersection point contains?

Tony V


Tony V

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





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


Re: [osg-users] Problem reading Openflight file switch node

2016-01-02 Thread Tony Vasile
So I debugged this and realised that before the second elements where added to 
the ValueList the lists were cleared and reset to empty lists. So when the next 
element is added the list is set to the default value which is true. It appears 
in subsequent rounds of adding new children to the list they are again cleared. 

I have added a debug trace to show where the list is cleared and on the next 
iteration where the lists are all set to true. I'm not sure how to fix this as 
the code makes a call to  osgSim::MultiSwitch::removeChild which clears the 
list. Not sure why the code is calling removeChild.

Some of the line numbers may not align with current OpenSceneGraph 3.4.0 
version as I have added some logging into it.


Tony V

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





MultiSwitch.cpp
Description: Binary data
(gdb) n
77  if (_children.size()>values.size())
(gdb) n
72  for(SwitchSetList::iterator itr=_values.begin();
(gdb) n
89  }
(gdb) p _values
$63 = std::vector of length 2, capacity 2 = {
  std::vector of length 1, capacity 32 = {1}, 
  std::vector of length 1, capacity 32 = {0}}
(gdb) n
flt::Switch::addChild (this=0x806ccc8, child=...)
at 
/home/avasile/src/OpenSceneGraph-3.4.0/src/osgPlugins/OpenFlight/PrimaryRecords.cpp:619
619 }
(gdb) n
flt::Group::readRecord (this=0x806d388, in=..., document=...)
at 
/home/avasile/src/OpenSceneGraph-3.4.0/src/osgPlugins/OpenFlight/PrimaryRecords.cpp:239
239 _parent->addChild(*_group);
(gdb) c
Continuing.

Breakpoint 4, osgSim::MultiSwitch::addChild (this=0x8071ea0, child=0x80815b0)
at /home/avasile/src/OpenSceneGraph-3.4.0/src/osgSim/MultiSwitch.cpp:69
69  dump("addChild " + getName(), _values);
(gdb) p _values
$64 = std::vector of length 2, capacity 2 = {
  std::vector of length 0, capacity 32, 
  std::vector of length 0, capacity 32}
(gdb) p -r _values
No symbol "r" in current context.
(gdb) p /r _values
$65 = { >, 
std::allocator > > >> = {
_M_impl = { > >> = 
{<__gnu_cxx::new_allocator > >> = {}, }, _M_start = 0x8071f58, _M_finish = 0x8071f80, 
  _M_end_of_storage = 0x8071f80}}, }
(gdb) p _values._M_impl._M_start
$66 = (std::vector > *) 0x8071f58
(gdb) p *_values._M_impl._M_start
$67 = std::vector of length 0, capacity 32
(gdb) p /r *_values._M_impl._M_start
$68 = { >> = {
_M_impl = {> = 
{<__gnu_cxx::new_allocator> = {}, }, 
  _M_start = { = 
{> = 
{}, 
  _M_p = 0x8072028, _M_offset = 0}, }, 
  _M_finish = { = 
{> = 
{}, 
  _M_p = 0x8072028, _M_offset = 0}, }, 
  _M_end_of_storage = 0x807202c}}, }
(gdb) p /r *_values._M_impl._M_start._M_impl
No symbol "operator*" in current context.
(gdb) p /r _values._M_impl._M_start._M_impl
$69 = {> = {<__gnu_cxx::new_allocator> = {}, }, 
  _M_start = { = 
{> = 
{}, _M_p = 0x8072028, 
  _M_offset = 0}, }, 
  _M_finish = { = 
{> = 
{}, _M_p = 0x8072028, 
  _M_offset = 0}, }, _M_end_of_storage = 0x807202c}
(gdb) p /r _values._M_impl._M_start._M_impl._M_p
There is no member or method named _M_p.
(gdb) p /r _values._M_impl._M_start._M_impl._M_start
$70 = { = 
{> = 
{}, _M_p = 0x8072028, 
_M_offset = 0}, }
(gdb) p /r _values._M_impl._M_start._M_impl._M_start+1
$71 = { = 
{> = 
{}, _M_p = 0x8072028, 
_M_offset = 1}, }
(gdb) p /r _values._M_impl._M_start._M_impl._M_start+0
$72 = { = 
{> = 
{}, _M_p = 0x8072028, 
_M_offset = 0}, }
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/avasile/src/junk/f1 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".

Breakpoint 1, main (argc=1, argv=0xb254) at f.C:36
36   osg::ref_ptr loadedModel = 
osgDB::readNodeFile("radar.flt"); 
(gdb) c
Continuing.
Id = damSw18
Current Mask = 0
Number of Mask = 2
Words in Mask = 1
Mask Word[0] = 4294967293
Mask Word[1] = 2
Number of Children = 0
nMaskBit = 0
nMaskWord = 0
Which = damSw18
Switch set = 0
Pos = 0
Value = 1

Breakpoint 3, osgSim::MultiSwitch::setValue (this=0x806cda8, switchSet=0, 
pos=0, value=true)
at /home/avasile/src/OpenSceneGraph-3.4.0/src/osgSim/MultiSwitch.cpp:140
140 dump("setValue before expand ", _values);
(gdb) c
Continuing.
setValue before expand 
=== 
After expand
values[0]
=== 
After Assign damSw18
values[0]
list[0] = 1
=== 
nMaskBit = 0
nMaskWord = 1
Which = damSw18
Switch set = 1
Pos = 0
Value = 0

Breakpoint 3, osgSim::MultiSwitch::setValue (this=0x806cda8, switchSet=1, 
pos=0, value=false)
at /home/avasile/src/OpenSceneGraph-3.4.0/src/osgSim/MultiSwitch.cpp:140
140 dump("setValue before expand ", _values);
(gdb) c
Continuing.
setValue before expand 
values[0]
list[0] = 1
=== 
After expand
values[0]
list[0] = 1
values[1]
=== 
After Assign damSw18
values[0]

Re: [osg-users] Problem reading Openflight file switch node

2015-12-18 Thread Tony Vasile
Hi Robert,
  I have been using osgconv. Isn't that the same thing as opening it up with 
the OpenFlight plugin and writing the file straight out? 

Do you mean to use the osgPlugins directory from OpenSceneGraph-3.2.1 in the 
source tree for OpenSceneGraph 3.4.0? I tried just a symbolic to the OSG 3.2.1 
version and this failed miserably.


Tony V

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





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


Re: [osg-users] Problem reading Openflight file switch node

2015-12-18 Thread Tony Vasile
Who ever did the original model had one version of the geometry when the 
antenna was rotating and another version of the geometry was the stationary. 
When I try this on OSG 3.4.0 I see both versions of the geometry out of phase 
with one another.


Tony V

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





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


Re: [osg-users] Problem reading Openflight file switch node

2015-12-18 Thread Tony Vasile
Just tried it on Centos 6.5 (x86) running OpenSceneGraph 3.2.1  and I got the 
expected behaviour with the first three elements of the set are different from 
the second three elements in the set. With OpenSceneGraph 3.4.0 on the same 
machine I get the erroneous values of all 1.


Tony V

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





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


Re: [osg-users] Problem reading Openflight file switch node

2015-12-18 Thread Tony Vasile
I first found the problem on Centos 6 x86_64. The problem is there on OSX 10.11 
in OpenSceneGraph 3.5.0 but not in 3.2.0 on the same platform. I have done a 
diff on the OpenFlight plugin directory but nothing sticks out.


Tony V

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





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


Re: [osg-users] Problem reading Openflight file switch node

2015-12-17 Thread Tony Vasile
The problem is in 3.4.0. Our original models came from Creator and were 
developed years ago. I built OpenSceneGraph 3.4.0 straight out of the source 
and the two osgSim serializers were built. If you look at my example snippets 
from 3.4.0 and 3.2.0 on 3.4.0 I am getting the switch values all set to 1 for 
each of the Value set elements. I am expecting them to be mirror images of each 
other, with value 1 having (1, 1, 1, 0, 0, 0) and value 2 having (0, 0, 0, 1, 
1, 1). What I am seeing visually is both sets of geometry are turned on and on 
inspecting the dump to .osg format I see that both value 1 and 2 have their 
value element set to (1, 1, 1, 1, 1, 1).


Tony V

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





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


Re: [osg-users] Cloning doesn't copy all values

2015-12-16 Thread Tony Vasile
Found my problem. I needed to provide a copy  constructor that takes a 
osg::CopyOp argument which copies the data from one to the other. So there is 
no need for an equivalent of setCopyFunc just create the constructors and call 
clone on the original.


Tony V

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





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


[osg-users] Cloning doesn't copy all values

2015-12-16 Thread Tony Vasile
Basically I am trying replicate the functionality that the Performer copy 
functions and was playing around with cloning models. I tried making a program 
to set some user data and the data variance on the original model with a 
NodeVisitor and then I clone the original model. When I try to read back the 
changes the user data is set in the clone but the data variance is set to 2 
assuming I understand C++ enum default values. So is there any way to guarantee 
that all the data is copied?


Tony V

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





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


Re: [osg-users] Problem reading Openflight file switch node

2015-12-12 Thread Tony Vasile
Is there anyway to debug this to see what is going wrong? I have tried to step 
through the Reader but I can't seem to get into plugin. I'm sure the fix is 
simple mistranslation. The code works when the sets only contain one option  
but is broken when the options have more than one element in each of the option 
groups.


Tony V

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





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


Re: [osg-users] Problem reading Openflight file switch node

2015-12-11 Thread Tony Vasile
Just tried this on 3.2.0 on my MacBook and got what I believe is the correct 
result. 

Code:

osgSim::MultiSwitch {
name "articSw2"
nodeMask 0x
cullingActive TRUE
description "featureId(artic0)"
NewChildDefaultValue 1
ActiveSwitchSet 0
ValueList 0 {
  1
  1
  1
  0
  0
  0
}
ValueList 1 {
  0
  0
  0
  1
  1
  1
}
num_children 6





Tony V

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





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


[osg-users] Problem reading Openflight file switch node

2015-12-11 Thread Tony Vasile
We are having what we think is a problem with reading our OpenFlight file. We 
have a switch which has two groups of nodes under it. The first three pieces of 
geometry are supposed to be visible when the switch is in position 0 and the 
second three are supposed to visible when the switch is in position 1. However 
when I look at the dump of the OpenFlight file I get the following:

Code:

sgSim::MultiSwitch {
name "articSw2"
nodeMask 0x
cullingActive TRUE
description "featureId(artic0)"
NewChildDefaultValue 1
ActiveSwitchSet 0
ValueList 0 {
  1
  1
  1
  1
  1
  1
}
ValueList 1 {
  1
  1
  1
  1
  1
  1
}
num_children 6


 

Based on our setup I would expect to see have the values in either of the 
ValueLists to be set to 0, rather than all one. Is this a problem with our 
model or the OpenFlight plugin? 

I have attached a small piece of our original model which has been renamed to 
radar_flt.txt


Tony V

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



Ddb^Fri Dec 11 19:15:28 2015
0’üÀ,Šd{{@F€@@€AXT¦@AX?Ä—Ð
 
„ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ@ÿ@ÿ@ÿ@ÿ@ÿ@ÿ
 ÞZÿ 
QÞÿ¯ÎÿÎ8ÿÏÿ¯ÎÿÎÿÿ4ÿOÿkÿ†ÿ¡ÿ¼ÿ×ÿóÿÿÿÿ**ÿÿEEÿÿ``ÿÿ||ÿÿ——ÿÿ²²ÿÿÍÍÿÁ££ÿşŸÿɛ›ÿ͗—ÿѓ“ÿԐÿ،Œÿ܈ˆÿà„„ÿ䀀ÿè||ÿëyyÿïuuÿóqqÿ÷mmÿûiiÿ4
ÿOÿkÿ†ÿ¡ ÿ¼%ÿ×+ÿó0ÿÿ?ÿÿ*UÿÿEjÿÿ`€ÿÿ|–ÿÿ—¬ÿÿ²ÁÿÿÍ×ÿÁ£©ÿş§ÿɛ¤ÿ͗¢ÿѓ 
ÿԐÿ،›ÿ܈™ÿà„–ÿ䀔ÿè|’ÿëyÿïuÿóq‹ÿ÷m‰ÿûi†ÿ4ÿOÿk*ÿ†5ÿ¡@ÿ¼Kÿ×Vÿóaÿÿoÿÿ*ÿÿEÿÿ`
 
ÿÿ|°ÿÿ—Àÿÿ²ÑÿÿÍáÿÁ£¯ÿş®ÿɛ­ÿ͗­ÿѓ¬ÿԐ«ÿ،ªÿ܈ªÿà„©ÿ䀨ÿè|§ÿëy§ÿïu¦ÿóq¥ÿ÷m¤ÿûi£ÿ4ÿO/ÿk@ÿ†Pÿ¡`ÿ¼qÿׁÿó‘ÿÿŸÿÿ*ªÿÿE´ÿÿ`¿ÿÿ|Êÿÿ—Õÿÿ²àÿÿÍëÿÁ£µÿş¶ÿɛ·ÿ͗·ÿѓ¸ÿԐ¹ÿ،ºÿ܈ºÿà„»ÿ䀼ÿè|½ÿëy½ÿïu¾ÿóq¿ÿ÷mÀÿûiÁÿ4*ÿO?ÿkUÿ†kÿ¡ÿ¼–ÿ׬ÿóÂÿÿÏÿÿ*ÔÿÿEÙÿÿ`ßÿÿ|äÿÿ—êÿÿ²ïÿÿÍõÿÁ£»ÿş½ÿɛÀÿ͗ÂÿѓÄÿԐÇÿ،Éÿ܈Ëÿà„Îÿä€Ðÿè|ÒÿëyÔÿïu×ÿóqÙÿ÷mÛÿûiÞÿ44ÿOOÿkkÿ††ÿ¡¡ÿ¼¼ÿ××ÿóóÿÿÿÿÿ*ÿÿÿEÿÿÿ`ÿÿÿ|ÿÿÿ—ÿÿÿ²ÿÿÿÍÿÿÁ£ÁÿşÅÿɛÉÿ͗ÍÿѓÑÿԐÔÿ،Øÿ܈Üÿà„àÿä€äÿè|èÿëyëÿïuïÿóqóÿ÷m÷ÿûiûÿ*4ÿ?OÿUkÿk†ÿ¡ÿ–¼ÿ¬×ÿÂóÿÏÿÿÔ*ÿÿÙEÿÿß`ÿÿä|ÿÿê—ÿÿï²ÿÿõÍÿÿ»£Áÿ½ŸÅÿÀ›Éÿ—ÍÿēÑÿǐÔÿɌØÿˈÜÿ΄àÿЀäÿÒ|èÿÔyëÿ×uïÿÙqóÿÛm÷ÿÞiûÿ4ÿ/Oÿ@kÿP†ÿ`¡ÿq¼ÿ×ÿ‘óÿŸÿÿª*ÿÿ´Eÿÿ¿`ÿÿÊ|ÿÿ՗ÿÿà²ÿÿëÍÿÿµ£Áÿ¶ŸÅÿ·›Éÿ·—Íÿ¸“Ñÿ¹ÔÿºŒØÿºˆÜÿ»„àÿ¼€äÿ½|èÿ½yëÿ¾uïÿ¿qóÿÀm÷ÿÁiûÿ4ÿOÿ*kÿ5†ÿ@¡ÿK¼ÿV×ÿaóÿoÿÿ*ÿÿEÿÿ
 
`ÿÿ°|ÿÿÀ—ÿÿѲÿÿáÍÿÿ¯£Áÿ®ŸÅÿ­›Éÿ­—Íÿ¬“Ñÿ«ÔÿªŒØÿªˆÜÿ©„àÿ¨€äÿ§|èÿ§yëÿ¦uïÿ¥qóÿ¤m÷ÿ£iûÿ
4ÿOÿkÿ†ÿ ¡ÿ%¼ÿ+×ÿ0óÿ?ÿÿU*ÿÿjEÿÿ€`ÿÿ–|ÿÿ¬—ÿÿÁ²ÿÿ×Íÿÿ©£Áÿ§ŸÅÿ¤›Éÿ¢—Íÿ 
“ÑÿÔÿ›ŒØÿ™ˆÜÿ–„àÿ”€äÿ’|èÿyëÿuïÿ‹qóÿ‰m÷ÿ†iûÿ4ÿOÿkÿ†ÿ¡ÿ¼ÿ×ÿóÿÿÿ**ÿÿEEÿÿ``ÿÿ||ÿÿ——ÿÿ²²ÿÿÍÍÿÿ££ÁÿŸŸÅÿ››Éÿ——Íÿ““ÑÿÔÿŒŒØÿˆˆÜÿ„„àÿ€€äÿ||èÿyyëÿuuïÿqqóÿmm÷ÿiiûÿ
4ÿOÿkÿ†ÿ ¡ÿ%¼ÿ+×ÿ0óÿ?ÿÿ*UÿÿEjÿÿ`€ÿÿ|–ÿÿ—¬ÿÿ²ÁÿÿÍ×ÿÿ£©ÁÿŸ§Åÿ›¤Éÿ—¢Íÿ“ 
ÑÿÔÿŒ›Øÿˆ™Üÿ„–àÿ€”äÿ|’èÿyëÿuïÿq‹óÿm‰÷ÿi†ûÿ4ÿOÿ*kÿ5†ÿ@¡ÿK¼ÿV×ÿaóÿoÿÿ*ÿÿEÿÿ`
 
ÿÿ|°ÿÿ—Àÿÿ²ÑÿÿÍáÿÿ£¯ÁÿŸ®Åÿ›­Éÿ—­Íÿ“¬Ñÿ«ÔÿŒªØÿˆªÜÿ„©àÿ€¨äÿ|§èÿy§ëÿu¦ïÿq¥óÿm¤÷ÿi£ûÿ4ÿ/Oÿ@kÿP†ÿ`¡ÿq¼ÿ×ÿ‘óÿŸÿÿ*ªÿÿE´ÿÿ`¿ÿÿ|Êÿÿ—Õÿÿ²àÿÿÍëÿÿ£µÁÿŸ¶Åÿ›·Éÿ—·Íÿ“¸Ñÿ¹ÔÿŒºØÿˆºÜÿ„»àÿ€¼äÿ|½èÿy½ëÿu¾ïÿq¿óÿmÀ÷ÿiÁûÿ*4ÿ?OÿUkÿk†ÿ¡ÿ–¼ÿ¬×ÿÂóÿÏÿÿ*ÔÿÿEÙÿÿ`ßÿÿ|äÿÿ—êÿÿ²ïÿÿÍõÿÿ£»ÁÿŸ½Åÿ›ÀÉÿ—ÂÍÿ“ÄÑÿÇÔÿŒÉØÿˆËÜÿ„Îàÿ€Ðäÿ|ÒèÿyÔëÿu×ïÿqÙóÿmÛ÷ÿiÞûÿ44ÿOOÿkkÿ††ÿ¡¡ÿ¼¼ÿ××ÿóóÿÿÿÿ*ÿÿÿEÿÿÿ`ÿÿÿ|ÿÿÿ—ÿÿÿ²ÿÿÿÍÿÿÿ£ÁÁÿŸÅÅÿ›ÉÉÿ—ÍÍÿ“ÑÑÿÔÔÿŒØØÿˆÜÜÿ„ààÿ€ääÿ|èèÿyëëÿuïïÿqóóÿm÷÷ÿiûûÿ4*ÿO?ÿkUÿ†kÿ¡ÿ¼–ÿ׬ÿóÂÿÿÏÿ*ÿÔÿEÿÙÿ`ÿßÿ|ÿäÿ—ÿêÿ²ÿïÿÍÿõÿ£Á»ÿŸÅ½ÿ›ÉÀÿ—ÍÂÿ“ÑÄÿÔÇÿŒØÉÿˆÜËÿ„àÎÿ€äÐÿ|èÒÿyëÔÿuï×ÿqóÙÿm÷ÛÿiûÞÿ4ÿO/ÿk@ÿ†Pÿ¡`ÿ¼qÿׁÿó‘ÿÿŸÿ*ÿªÿEÿ´ÿ`ÿ¿ÿ|ÿÊÿ—ÿÕÿ²ÿàÿÍÿëÿ£ÁµÿŸÅ¶ÿ›É·ÿ—Í·ÿ“ѸÿÔ¹ÿŒØºÿˆÜºÿ„à»ÿ€ä¼ÿ|è½ÿyë½ÿuï¾ÿqó¿ÿm÷ÀÿiûÁÿ4ÿOÿk*ÿ†5ÿ¡@ÿ¼Kÿ×Vÿóaÿÿoÿ*ÿÿEÿÿ`ÿ
 
ÿ|ÿ°ÿ—ÿÀÿ²ÿÑÿÍÿáÿ£Á¯ÿŸÅ®ÿ›É­ÿ—Í­ÿ“ѬÿÔ«ÿŒØªÿˆÜªÿ„à©ÿ€ä¨ÿ|è§ÿyë§ÿuï¦ÿqó¥ÿm÷¤ÿiû£ÿ4
ÿOÿkÿ†ÿ¡ ÿ¼%ÿ×+ÿó0ÿÿ?ÿ*ÿUÿEÿjÿ`ÿ€ÿ|ÿ–ÿ—ÿ¬ÿ²ÿÁÿÍÿ×ÿ£Á©ÿŸÅ§ÿ›É¤ÿ—Í¢ÿ“Ñ 
ÿÔÿŒØ›ÿˆÜ™ÿ„à–ÿ€ä”ÿ|è’ÿyëÿuïÿqó‹ÿm÷‰ÿiû†ÿ4ÿOÿkÿ†ÿ¡ÿ¼ÿ×ÿóÿÿÿ*ÿ*ÿEÿEÿ`ÿ`ÿ|ÿ|ÿ—ÿ—ÿ²ÿ²ÿÍÿÍÿ£Á£ÿŸÅŸÿ›É›ÿ—Í—ÿ“Ñ“ÿÔÿŒØŒÿˆÜˆÿ„à„ÿ€ä€ÿ|è|ÿyëyÿuïuÿqóqÿm÷mÿiûiÿ
4ÿOÿkÿ†ÿ ¡ÿ%¼ÿ+×ÿ0óÿ?ÿÿUÿ*ÿjÿEÿ€ÿ`ÿ–ÿ|ÿ¬ÿ—ÿÁÿ²ÿ×ÿÍÿ©Á£ÿ§ÅŸÿ¤É›ÿ¢Í—ÿ 
ѓÿÔÿ›ØŒÿ™Üˆÿ–à„ÿ”ä€ÿ’è|ÿëyÿïuÿ‹óqÿ‰÷mÿ†ûiÿ4ÿOÿ*kÿ5†ÿ@¡ÿK¼ÿV×ÿaóÿoÿÿÿ*ÿÿEÿ
 
ÿ`ÿ°ÿ|ÿÀ

Re: [osg-users] [osgOcean] BK patches to osgOcean for stability, up to osg 3.4.0 compilation and more

2015-12-01 Thread Tony Vasile
Would it be possible to get the patches so the software compiles against 
OpenSceneGraph 3.4.0, rather than reinventing the wheel.


Tony V

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





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


Re: [osg-users] GraphicContext null

2015-11-30 Thread Tony Vasile

marchingcubes wrote:
> This  may be due to the fact that Fedora now runs gdm on its own screen.
> 
> e.g. it used to be that you could more or less assume setting DISPLAY=:0 and 
> running an X11 application would show the app on the machines 'local' 
> display. With Fedora 22+ this is now DISPLAY=:1
> 
> It looks to me, after glancing at the window setup code, that the Traits used 
> to configure a 'single screen' will default to 0 as the screen number, and 
> thus fail to create the context, as the logged-in user is not authed to 
> create resources on the gdm screen.
> 


I tried to set the variable to :1 and xeyes run but I am still getting 0 from 
getNumScreens(). The sequence I'm using is:


Code:

osg::GraphicsContext::WindowingSystemInterface* wsi =
osg::GraphicsContext::getWindowingSystemInterface();

  if (wsi) _maxPipes = wsi->getNumScreens();


 

Is this correct?


Tony V

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





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


[osg-users] GraphicContext null

2015-11-26 Thread Tony Vasile
I having a few problems with running an executable on Fedora Core 23. When I 
query the output of osg::GraphicsContext::WindowingSystemInterface I get a 
valid pointer. When I call getNumScreens() I get 0 as the value. Any ideas what 
I need to set in my environment to get this to work? I am using the default 
window manager.


Tony V

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





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


Re: [osg-users] pfObject::getNamedUserDataSlot

2015-11-23 Thread Tony Vasile
Hi Robert,
   We are trying to save classes which have more than simple types or the list 
specified in ValueObject. If we try and save an object which has osg::Object 
has its parent then you get a linker error about missing apply routines for 
SetValueVisitor and GetValueVisitor. I have worked around this by using 
addUserObject and setUserObject. I thought it would have been cleaner if we 
could use a string to token to identified the stored data rather than a magic 
number. The magic number approach is similar to Performer.


Tony V

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





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


Re: [osg-users] pfObject::getNamedUserDataSlot

2015-11-23 Thread Tony Vasile
Hi Robert,
  Unless I am going blind I couldn't see an explicit apply for  osg::Object in 
either GetValueVisitor or SetValueVisitor, hence the question.


Tony V

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





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


Re: [osg-users] pfObject::getNamedUserDataSlot

2015-11-22 Thread Tony Vasile
I have looked at ValueObject and was wondering why there is no option to save 
an osg::Object or an osg::Referenced object. Is this an omission or intended?


Tony V

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





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


[osg-users] Intersection returning a surface

2015-10-15 Thread Tony Vasile
Hi,
Is it is possible to have an intersection query return the surface or triangle 
that has been hit rather than a point? I have seen PlaneIntersector but it 
seems to return a list of points rather than the surface that contains those 
points. Correct me if I am wrong. Any help would be appreciated.


Tony V

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





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


Re: [osg-users] Help: Is there an osg example with ray tracing?

2015-09-15 Thread Tony Vasile

S2LR wrote:
> Shuiying,
> 
> I would start by looking at the "osgintersection" example, in
> particular, the LineSegmentIntersector to see if that will help you.
> 
> -Shayne
> 
> 


So what do you get from the output of "osgintersection"? For example if I run 
"osgintersection cow.osg" I get:
Intersection
Computing LineOfSight
Completed in 0.096953
  point 0.776125 0.815986 0
  point 0.776125 -1.683 0
  point 0.839681 0.791811 0
  point 0.839681 -1.65035 0
  point 0.903236 0.767635 0
  point 0.903236 -1.63128 0
  point 0.966792 0.74346 0

So what are the points?


Tony V

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





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


Re: [osg-users] Help: Is there an osg example with ray tracing?

2015-09-15 Thread Tony Vasile

S2LR wrote:
> Shuiying,
> 
> I would start by looking at the "osgintersection" example, in
> particular, the LineSegmentIntersector to see if that will help you.
> 
> -Shayne
> 
> 


So what do you get from the output of "osgintersection"? For example if I run 
"osgintersection cow.osg" I get:
Intersection
Computing LineOfSight
Completed in 0.096953
  point 0.776125 0.815986 0
  point 0.776125 -1.683 0
  point 0.839681 0.791811 0
  point 0.839681 -1.65035 0
  point 0.903236 0.767635 0
  point 0.903236 -1.63128 0
  point 0.966792 0.74346 0

So what are the points?


Tony V

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





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


Re: [osg-users] [vpb] Latest VPB with OSG 3.4.0RC5 with VS2013

2015-09-11 Thread Tony Vasile
I  am trying to build VirtualPlanetBuilder on Centos 6 and I am getting the 
following errors:

CMake Error at CMakeLists.txt:318 (INCLUDE):
   include could not find load file:

 VpbMacroUtils



 CMake Error at src/vpb/CMakeLists.txt:83 (LINK_EXTERNAL):
   Unknown CMake command "LINK_EXTERNAL".

I have take a clean build from the Github mirror and just run "ccmake .". The 
macro file VpbMacroUtils.cmake is in CMakeModules but for some reason cmake is 
not finding it. Any suggestions?


Tony V

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





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


Re: [osg-users] Reading files and callbacks

2015-09-10 Thread Tony Vasile
Okay I modified the example visit_model.cpp from the OpenSceneGraph 3.0 
Beginner's Guide to print the Descriptions and there was the data I was looking 
for. The sonic boom of comprehension.


Tony V

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





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


Re: [osg-users] Reading files and callbacks

2015-09-10 Thread Tony Vasile

SMesserschmidt wrote:
> Hi Tony
> 
> From examples/osgcallback
> 
> class MyReadFileCallback : public osgDB::Registry::ReadFileCallback
> {
> public:
> virtual osgDB::ReaderWriter::ReadResult readNode(const std::string& 
> fileName, const osgDB::ReaderWriter::Options* options)
> {
> std::cout<<"before readNode"< // note when calling the Registry to do the read you have to 
> call readNodeImplementation NOT readNode, as this will
> // cause on infinite recusive loop.
> osgDB::ReaderWriter::ReadResult result = 
> osgDB::Registry::instance()->readNodeImplementation(fileName,options);
> std::cout<<"after readNode"< return result;
> }
> };
> 
> 

So how would I then process the nodes looking for comment strings in the 
various OpenFlight nodes?


Tony V

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





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


Re: [osg-users] pfObject::getNamedUserDataSlot

2015-09-10 Thread Tony Vasile
Unfortunately we have a tight schedule to do this port. The usual 6 months of 
work in 4 months type of affair. Thanks for the advice.


Tony V

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





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


Re: [osg-users] pfObject::getNamedUserDataSlot

2015-09-10 Thread Tony Vasile
Hi Nick & Robert,
   That's not quite the same functionality as it appears that in Performer 
there is some sort of memory/map that is used to map a user defined name as a 
string to a slot number. You then add data to the node using this slot number. 
Performer does have a call to setUserData which takes the data as its argument 
but it installs the data in slot 0. There is another setUserData that takes two 
argument, with the first argument being a slot number. I assume that  
getNamedUserDataSlot is just an allocation scheme between the string name and 
and a magic number which represents the slot. 

That's cool this sort of functionality I could easily replicated with a couple 
of maps or a vector.

Thanks for your help.


Tony V

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





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


[osg-users] pfObject::getNamedUserDataSlot

2015-09-09 Thread Tony Vasile
Is there an equivalent function to the Performer 
pfObject::getNamedUserDataSlot? Our code uses it a lot to store object data. 
I'm guessing we could just store the data in a map and uses the slot id 
returned as a key.


Tony V

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





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


Re: [osg-users] Reading files and callbacks

2015-08-31 Thread Tony Vasile
Hi Sebastian,
   Do you have a small example?

Tony V


Tony V

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





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


Re: [osg-users] Reading files and callbacks

2015-08-31 Thread Tony Vasile
So what about the equivalent pre and post callbacks that Performer supports? Is 
it a case of copying the code in the example 

Code:

class DrawableDrawCallback : public osg::Drawable::DrawCallback
{
virtual void drawImplementation(osg::RenderInfo& renderInfo,const 
osg::Drawable* drawable) const
{
std::cout<<"draw call back - pre 
drawImplementation"

[osg-users] Reading files and callbacks

2015-08-30 Thread Tony Vasile
We have a bunch of OpenFlight models with have information in some of the nodes 
that we use to configure our system. Is it better to use ReadNodeFile and 
post-process the file with a NodeVisitor? Or is is better to override 
osgDB::ReadFileCallback and somehow exercise our code when it finds a node of 
particular interest?


Tony V

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





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


Re: [osg-users] Adding custom updater to the Viewer

2015-08-30 Thread Tony Vasile
Hi Sam

You probably don't want all you networking code in the same thread as the 
viewer thread, especially if the networking code could block. You would be 
better off using Update Callbacks to modify the scene when something changes.


Tony

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





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


Re: [osg-users] pfDCS replacement

2015-08-27 Thread Tony Vasile
Is there any reason it gets converted to a MatrixTransform object rather than a 
PositionAttitudeTransform object?

Tony V

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





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


[osg-users] pfDCS replacement

2015-08-27 Thread Tony Vasile
Okay today I am wondering which class replaces pfDCS in OSG? A Google search 
shows there use to be  a class osg::DCS but this has been removed. To get the 
same functionality do I use PositionAttitudeTransform?

Tony V

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





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



Re: [osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Tony Vasile
Hi Sebastian

osgSim::Animation doesn't appear to be in 3.4.0. Do you mean 
osgAnimation::Animation?

Cheers,
Tony

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





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


Re: [osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Tony Vasile
Once again Robert to the rescue. Thanks for that. It will do for the first part 
of this port but in the future we may need to do something different. The 
timing for the sequence is in the comment field for the node in the OpenFlight 
file.

Cheers,
Tony

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





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


Re: [osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Tony Vasile
Once again Robert to the rescue. Thanks for that. It will do for the first part 
of this port but in the future we may need to do something different. The 
timing for the sequence is in the comment field for the node in the OpenFlight 
file.

Cheers,
Tony

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





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


[osg-users] OSG equivalent of Performer pfSequence

2015-08-27 Thread Tony Vasile
We are in the middle of porting some Performer code and I have across some code 
which uses pfSequence to do some simple animation. Is there an equivalent class 
in OpenSceneGraph?

Tony V

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





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


Re: [osg-users] OpenSceneGraph-3.4.0-rc11 tagged

2015-08-11 Thread Tony Vasile
Hi Robert,
One of the earlier version 3.4.0 has been built but I'm not sure which one as 
osgversion only gives me a version of 3.4.0 and an OpenThreads version of 3.3.0.

Removing the FIND_PACKAGE allowed me to configure and build the system.

Cheers,
Tony

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





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


Re: [osg-users] OpenSceneGraph-3.4.0-rc11 tagged

2015-08-11 Thread Tony Vasile
Hi Robert
I would guess it is a bad config on my machine. I am running Centos 6.7 x64. I 
have also added the CMakeError and CMakeOutput files.

Cheers,
Tony

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



The system is: Linux - 2.6.32-573.1.1.el6.x86_64 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" 
succeeded.
Compiler: /usr/bin/cc 
Build flags: 
Id flags: 

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" 
produced "a.out"

The C compiler identification is GNU, found in 
"/home/avasile/src/OpenSceneGraph-3.4.0/CMakeFiles/3.2.3/CompilerIdC/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" 
succeeded.
Compiler: /usr/bin/c++ 
Build flags: 
Id flags: 

The output was:
0


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" 
produced "a.out"

The CXX compiler identification is GNU, found in 
"/home/avasile/src/OpenSceneGraph-3.4.0/CMakeFiles/3.2.3/CompilerIdCXX/a.out"

Determining if the C compiler works passed with the following output:
Change Dir: /home/avasile/src/OpenSceneGraph-3.4.0/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTryCompileExec3822733862/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3822733862.dir/build.make 
CMakeFiles/cmTryCompileExec3822733862.dir/build
gmake[1]: Entering directory 
`/home/avasile/src/OpenSceneGraph-3.4.0/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report 
/home/avasile/src/OpenSceneGraph-3.4.0/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3822733862.dir/testCCompiler.c.o
/usr/bin/cc-o CMakeFiles/cmTryCompileExec3822733862.dir/testCCompiler.c.o   
-c /home/avasile/src/OpenSceneGraph-3.4.0/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec3822733862
/usr/local/bin/cmake -E cmake_link_script 
CMakeFiles/cmTryCompileExec3822733862.dir/link.txt --verbose=1
/usr/bin/cc   CMakeFiles/cmTryCompileExec3822733862.dir/testCCompiler.c.o  
-o cmTryCompileExec3822733862 -rdynamic 
gmake[1]: Leaving directory 
`/home/avasile/src/OpenSceneGraph-3.4.0/CMakeFiles/CMakeTmp'


Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/avasile/src/OpenSceneGraph-3.4.0/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTryCompileExec3520391113/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3520391113.dir/build.make 
CMakeFiles/cmTryCompileExec3520391113.dir/build
gmake[1]: Entering directory 
`/home/avasile/src/OpenSceneGraph-3.4.0/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report 
/home/avasile/src/OpenSceneGraph-3.4.0/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object 
CMakeFiles/cmTryCompileExec3520391113.dir/CMakeCCompilerABI.c.o
/usr/bin/cc-o 
CMakeFiles/cmTryCompileExec3520391113.dir/CMakeCCompilerABI.c.o   -c 
/usr/local/share/cmake-3.2/Modules/CMakeCCompilerABI.c
Linking C executable cmTryCompileExec3520391113
/usr/local/bin/cmake -E cmake_link_script 
CMakeFiles/cmTryCompileExec3520391113.dir/link.txt --verbose=1
/usr/bin/cc  -v 
CMakeFiles/cmTryCompileExec3520391113.dir/CMakeCCompilerABI.c.o  -o 
cmTryCompileExec3520391113 -rdynamic  
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla 
--enable-bootstrap --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions --enable-gnu-unique-object 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk 
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile --enable-java-maintainer-mode 
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib 
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) 
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.4.7/:/usr/libexec/gcc/x86_64-redhat-linux/4.4.7/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.4.7/:/usr/lib/gcc/x86_64-redhat-linux/:/usr/libexec/gcc/x86_64-redhat-linux/4.4.7/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.4.7/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.4.7/:/usr/lib/gcc/x86_64-redhat-linux/4.4.7/:/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec3520391113' '-rdynamic' 
'-mtune=generic'
 /usr/libexec/gcc/x86_64-redhat-linux/4.4.7/collect2 --eh-frame-hdr --build-id 
-m elf_x86_64 --hash-style=gnu -export-dynamic -dynamic-linker 
/lib64/ld-linux-x86-64.so.2 -o cmTry

Re: [osg-users] OpenSceneGraph-3.4.0-rc11 tagged

2015-08-10 Thread Tony Vasile
Hi Robert

Did you mean CMakeCache.txt? I have removed it and the CMakeFiles directory and 
am still getting:
CMake Error at /usr/lib64/boost/Boost.cmake:536 (message):
   The imported target "boost_date_time-static" references the file

  "/usr/lib64/lib64/libboost_date_time.a"

   but this file does not exist.  Possible reasons include:

   * The file was deleted, renamed, or moved to another location.

   * An install or uninstall procedure did not complete successfully.

   * The installation package was faulty and contained

  "/usr/lib64/boost/Boost.cmake"

   but not all the files it references.

 Call Stack (most recent call first):



Cheers,
Tony

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





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


Re: [osg-users] OpenSceneGraph-3.4.0-rc11 tagged

2015-08-10 Thread Tony Vasile
Hi,
I svn update OpenSceneGraph 3.4.0 to revision 15077 which I assume is rc11 and 
I tried to build it based on what I had on my machine. I get the boost errors 
when running ccmake


... 

Thank you!

Cheers,
Tony

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





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


Re: [osg-users] OpenSceneGraph-3.4.0-rc11 tagged

2015-08-09 Thread Tony Vasile
Hi,

I'm getting errors of the sort

 CMake Error at /usr/lib64/boost/Boost.cmake:536 (message):
   The imported target "boost_date_time-static-debug" references the file

  "/usr/lib64/lib64/libboost_date_time-d.a"

   but this file does not exist.  Possible reasons include:

   * The file was deleted, renamed, or moved to another location.

   * An install or uninstall procedure did not complete successfully.

   * The installation package was faulty and contained

  "/usr/lib64/boost/Boost.cmake"

   but not all the files it references.

 Call Stack (most recent call first):


... 
On my Centos 6.6 box. I'm running cmake 3.2.3. I tried to create symbolic 
links to the files that cmake is complaining about but I'm getting a different 
error about a different version of libboost_data_time*{.so,.a}.


Thank you!

Cheers,
Tony

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





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


[osg-users] [osgPlugins] osgconv and collada plugin

2015-07-03 Thread Tony Vasile
Hi,
There seems to be a problem with the Collada, boost library and osgconv. If the 
osgconv is not linked against libboost_system and libboost_filesystem on a 
linux system you get errors like:

bin/osgconv: symbol lookup error: /usr/lib/libcollada14dom.so.2: undefined 
symbol: _ZN5boost10filesystem6detail10status_apiERKSsRNS_6system10error_codeE

and 
Warning: dynamic library '/usr/local/lib/osgPlugins-3.2.1/osgdb_dae.so' exists, 
but an error occurred while trying to open it:
/usr/lib/libcollada14dom.so.2: undefined symbol: 
_ZN5boost6system19get_system_categoryEv
Warning: Write to "test.dae" not supported.

I was compiling and running against collada dom 2.3.1 on my Centos machine. I 
patched the CMakeFiles.txt to have the following lines:


Code:

IF(COLLADA_FOUND)
SET(TARGET_LIBRARIES_VARS
COLLADA_BOOST_FILESYSTEM_LIBRARY
COLLADA_BOOST_SYSTEM_LIBRARY)
ENDIF()




and the problem goes away. I'm not sure if I added the lines in the right 
place. I put the above code before the SETUP_APPLICATION(osgconv) call.

... 

Thank you!

Cheers,
Tony[/code]

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





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


Re: [osg-users] [build] Building OpenSceneGraph-3.3.4 with GDAL 2.0

2015-06-26 Thread Tony Vasile
Hi Robert

Not sure if you came up with this but since I couldn't see your version of the 
patch I recreated it.

... 


Thank you!

Cheers,
Tony

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



--- OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp 2012-03-22 
04:36:20.0 +1100
+++ ../OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp  
2015-06-26 21:53:33.349709134 +1000
@@ -134,11 +134,21 @@
 
 virtual ReadResult readFile(const std::string& fileName, const 
osgDB::ReaderWriter::Options* options) const
 {
+#if GDAL_VERSION_MAJOR < 2
 if (OGRSFDriverRegistrar::GetRegistrar()->GetDriverCount() == 0)
 OGRRegisterAll();
+#else
+if (GDALGetDriverCount() == 0)
+GDALAllRegister();
+#endif
 
 // Try to open data source
+#if GDAL_VERSION_MAJOR < 2
 OGRDataSource* file = OGRSFDriverRegistrar::Open(fileName.c_str());
+#else
+GDALDataset   *file;
+file = (GDALDataset*) GDALOpenEx( fileName.c_str(), GDAL_OF_VECTOR, 
NULL, NULL, NULL );
+#endif
 if (!file)
 return 0;
 
@@ -156,6 +166,7 @@
 
 osg::Group* group = new osg::Group;
 
+#if GDAL_VERSION_MAJOR < 2
 for (int i = 0; i < file->GetLayerCount(); i++)
 {
 osg::Group* node = readLayer(file->GetLayer(i), file->GetName(), 
useRandomColorByFeature, addGroupPerFeature);
@@ -163,6 +174,16 @@
 group->addChild( node );
 }
 OGRDataSource::DestroyDataSource( file );
+#else
+for (int i = 0; i < file->GetLayerCount(); i++)
+{
+OGRLayer* layer = (OGRLayer *)GDALDatasetGetLayer(file, i); 
+osg::Group* node = readLayer(layer, layer->GetName(), 
useRandomColorByFeature, addGroupPerFeature);
+if (node)
+group->addChild( node );
+}
+GDALClose( file );
+#endif
 return group;
 }
 
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] Building OpenSceneGraph-3.3.4 with GDAL 2.0

2015-06-26 Thread Tony Vasile
Hi Robert,
  Am I going blind I can see your attachment with your modified patch?

... 


Thank you!

Cheers,
Tony

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





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


Re: [osg-users] [build] Building OpenSceneGraph-3.3.4 with GDAL 2.0

2015-06-25 Thread Tony Vasile
Hi,

I have this patch so that it compiles but I don't have a ogr source file to 
test it against. But this allows OpenSceneGraph 3.2.1 to compile.

... 


Thank you!

Cheers,
Tony

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



--- OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp 2012-03-22 
04:36:20.0 +1100
+++ ../OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp  
2015-06-25 17:53:58.462196833 +1000
@@ -134,11 +134,13 @@
 
 virtual ReadResult readFile(const std::string& fileName, const 
osgDB::ReaderWriter::Options* options) const
 {
-if (OGRSFDriverRegistrar::GetRegistrar()->GetDriverCount() == 0)
-OGRRegisterAll();
+if (GDALGetDriverCount() == 0)
+GDALAllRegister();
 
 // Try to open data source
-OGRDataSource* file = OGRSFDriverRegistrar::Open(fileName.c_str());
+//OGRDataSource* file = OGRSFDriverRegistrar::Open(fileName.c_str());
+GDALDataset   *file;
+file = (GDALDataset*) GDALOpenEx( fileName.c_str(), GDAL_OF_VECTOR, 
NULL, NULL, NULL );
 if (!file)
 return 0;
 
@@ -156,13 +158,14 @@
 
 osg::Group* group = new osg::Group;
 
-for (int i = 0; i < file->GetLayerCount(); i++)
+for (int i = 0; i < GDALDatasetGetLayerCount(file); i++)
 {
-osg::Group* node = readLayer(file->GetLayer(i), file->GetName(), 
useRandomColorByFeature, addGroupPerFeature);
+OGRLayer* layer = (OGRLayer *)GDALDatasetGetLayer(file, i); 
+osg::Group* node = readLayer(layer, layer->GetName(), 
useRandomColorByFeature, addGroupPerFeature);
 if (node)
 group->addChild( node );
 }
-OGRDataSource::DestroyDataSource( file );
+GDALClose( file );
 return group;
 }
 
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] Building OpenSceneGraph-3.3.4 with GDAL 2.0

2015-06-25 Thread Tony Vasile
Hi,
I get a similar problem with GDAL 2.0 and the OpenSceneGraph 3.2.1

Code:

home/avasile/src/OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp: 
In member function ‘virtual osgDB::ReaderWriter::ReadResult 
ReaderWriterOGR::readFile(const std::string&, const 
osgDB::ReaderWriter::Options*) const’:
/home/avasile/src/OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp:137:
 warning: ‘static OGRSFDriverRegistrar* OGRSFDriverRegistrar::GetRegistrar()’ 
is deprecated (declared at /usr/local/include/ogrsf_frmts.h:320)
/home/avasile/src/OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp:137:
 warning: ‘int OGRSFDriverRegistrar::GetDriverCount()’ is deprecated (declared 
at /usr/local/include/ogrsf_frmts.h:324)
/home/avasile/src/OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp:141:
 error: ‘Open’ is not a member of ‘OGRSFDriverRegistrar’
/home/avasile/src/OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp:161:
 warning: ‘virtual const char* OGRDataSource::GetName()’ is deprecated 
(declared at /usr/local/include/ogrsf_frmts.h:243)
/home/avasile/src/OpenSceneGraph-3.2.1/src/osgPlugins/ogr/ReaderWriterOGR.cpp:165:
 warning: ‘static void OGRDataSource::DestroyDataSource(OGRDataSource*)’ is 
deprecated (declared at /usr/local/include/ogrsf_frmts.h:245)





It seems that the GDAL API In 2.0 has changed so the code no longer compiles. 
If one looks at the appropriate OGR header file there is a comment to indicate 
that OGRSFDriverRegistrar is also deprecated and should be replace by 


Code:

//
/* OGRSFDriverRegistrar */
//

/**
 * LEGACY class. Use GDALDriverManager in your new code ! This class may be
 * removed in a later release.
 *
 * Singleton manager for OGRSFDriver instances that will be used to try
 * and open datasources.  Normally the registrar is populated with 
 * standard drivers using the OGRRegisterAll() function and does not need
 * to be directly accessed.  The driver registrar and all registered drivers
 * may be cleaned up on shutdown using OGRCleanupAll().
 *
 * @deprecated 
 */




The only open calls in 
Code:
ogr_api.h

 have  extra parameters 
Code:
OGRDataSourceH CPL_DLL OGROpen( const char *, int, OGRSFDriverH * ) 
CPL_WARN_UNUSED_RESULT;




to what is called from ReaderWriterOGR.cpp.
... 


Thank you!

Cheers,
Tony

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





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


Re: [osg-users] Flight Sim Cockpit Frame

2015-02-15 Thread Tony Vasile
Hi Mike

Have you checkout http://www.flightgear.org/? A full blown flight simulator 
based on OpenSceneGraph

... 

Thank you!

Cheers,
Tony

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





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


[osg-users] ClipTexture and OpenSceneGraph

2015-01-29 Thread Tony Vasile
Hi,
We are about to port an application from Performer that makes use of 
ClipTextures. What is the equivalent in OpenSceneGraph or is there an 
alternative way to get the same feature.

For a definition of a ClipTexture see 
http://techpubs.sgi.com/library/dynaweb_docs/0620/SGI_Developer/books/Perf_PG/sgi_html/ch12.html

Thank you!

Cheers,
Tony

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





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


Re: [osg-users] Alembic Plugin

2015-01-02 Thread Tony Vasile
It looks like Blender is adding supporting for Alembic in 2.74 so it would be 
good is someone was working on a plugin for Alembic.

Tony

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





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


Re: [osg-users] [ANN] OpenSceneGraph 3 Cookbook Published!

2013-12-17 Thread Tony Vasile
Is the code for the cover available? It doesn't appear to be in any of the 
chapters.

Best regards,
Tony

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





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


Re: [osg-users] Periscope or telescope

2013-10-29 Thread Tony Vasile
Hi Alberto,
   That's what I was thinking. Use a black rectangle with a transparent circle 
at the centre to be the view port.

... 

Thank you!

Cheers,
Tony

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





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


[osg-users] Periscope or telescope

2013-10-24 Thread Tony Vasile
Hi,

Does anyone have an example of seeing the world through a telescope or a 
periscope? That is you have most of the screen black and a small view port 
which tracks the camera and can used to see object in the scene.

... 

Thank you!

Cheers,
Tony

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





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


Re: [osg-users] Version numbers in dynamic libraries

2013-09-25 Thread Tony Vasile
Hi,
Tried setting the values on the command line and the applications that are 
built still refer to the .so.80 version of the dynamic library. Any other 
suggestions?

... 

Thank you!

Cheers,
Tony

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





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


[osg-users] Version numbers in dynamic libraries

2013-09-25 Thread Tony Vasile
When we link our executables on our linux box we are getting version
numbers in the .so.
For example if I do an ldd on an executable compiled against OpenSceneGraph
2.8.0 I get :

libosgUtil.so.65 => /usr/local/lib/libosgGA.so.65

Is there any way to link the programs so that ldd only has references like:

libosgUtil.so => /usr/local/lib/libosgGA.so

or some such without the version number?

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


Re: [osg-users] VirtualPlanetBuilder and the Cookbook

2012-12-06 Thread Tony Vasile
Hi,

Haven't heard anything from this post for a couple of weeks does anyone have an 
idea of what I have to do?

Thank you!

Cheers,
Tony

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





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


[osg-users] VirtualPlanetBuilder and the Cookbook

2012-11-19 Thread Tony Vasile
I have trying the various recipes in the cookbook and try the example with
the TrueMarble  tiff file and the data from
http://srtm.csi.cgiar.org/SELECTION/inputCoord.asp all I get is the
original TrueMarble image. I have tried downloading the majority of the
island of Tasmania and all I see is a flat image.  My command is vpbmaster
-d data/srtm -t data/TrueMarble.4km.10800x5400.tif --geocentric -o
output/out.osgb

The download gives you a zip file with a readme.txt and .hdr, .tfw and .tif
file. Which ones to I need to have in my srtm directory? Or is putting the
zip files in the srtm directory ok?

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


Re: [osg-users] Problem compiling VIrtualPlanetBuilder on OS X

2012-11-19 Thread Tony Vasile
As I stated earlier all I did was move the goal posts slightly by changing
the conditional compilation check to have a later version number and use
the false path of the conditional compilation. Not the much of a C++ guru
to know why it failed but it looks like [i|o]s.XXX_BRACKET has been added
to a different version of OpenSceneGraph as to what I am compiling against.
The only references I can find to END_BRACKET is in the include files are
in osgDB/DataTypes and this is an instantiation of an ObjectMark object.



> If I change the minimum OpenSceneGraph to 3.1.1 at line 31
> VirutalPlanetBuilder compiles okay. This is obviously a bug so how does one
> raise this so it can be fixed?
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Problem compiling VIrtualPlanetBuilder on OS X

2012-11-16 Thread Tony Vasile
I am trying to build VirtualPlanetBuilder against OpenSceneGraph 3.1.0 by
using the trunk branch from the virtual planet builder svn repository on OS
X Mountain Lion (10.8.2) and I am getting the following errors whilst
compiling BuildOptionsIO.cpp:
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:508:42:
error:
  no member named 'BEGIN_BRACKET' in 'osgDB::InputStream'
unsigned int size = 0; is >> size >> IS_BEGIN_BRACKET;
 ^~~~
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:32:36:
note:
  expanded from macro 'IS_BEGIN_BRACKET'
#define IS_BEGIN_BRACKETis.BEGIN_BRACKET
~~ ^
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:515:11:
error:
  no member named 'END_BRACKET' in 'osgDB::InputStream'
is >> IS_END_BRACKET;
  ^~
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:33:36:
note:
  expanded from macro 'IS_END_BRACKET'
#define IS_END_BRACKET  is.END_BRACKET
~~ ^
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:523:19:
error:
  no member named 'BEGIN_BRACKET' in 'osgDB::OutputStream'
os << size << OS_BEGIN_BRACKET << std::endl;
  ^~~~
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:34:36:
note:
  expanded from macro 'OS_BEGIN_BRACKET'
#define OS_BEGIN_BRACKETos.BEGIN_BRACKET
~~ ^
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:529:11:
error:
  no member named 'END_BRACKET' in 'osgDB::OutputStream'
os << OS_END_BRACKET << std::endl;
  ^~
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:35:36:
note:
  expanded from macro 'OS_END_BRACKET'
#define OS_END_BRACKET  os.END_BRACKET
~~ ^
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:539:42:
error:
  no member named 'BEGIN_BRACKET' in 'osgDB::InputStream'
unsigned int size = 0; is >> size >> IS_BEGIN_BRACKET;
 ^~~~
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:32:36:
note:
  expanded from macro 'IS_BEGIN_BRACKET'
#define IS_BEGIN_BRACKETis.BEGIN_BRACKET
~~ ^
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:545:11:
error:
  no member named 'END_BRACKET' in 'osgDB::InputStream'
is >> IS_END_BRACKET;
  ^~
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:33:36:
note:
  expanded from macro 'IS_END_BRACKET'
#define IS_END_BRACKET  is.END_BRACKET
~~ ^
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:552:19:
error:
  no member named 'BEGIN_BRACKET' in 'osgDB::OutputStream'
os << size << OS_BEGIN_BRACKET << std::endl;
  ^~~~
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:34:36:
note:
  expanded from macro 'OS_BEGIN_BRACKET'
#define OS_BEGIN_BRACKETos.BEGIN_BRACKET
~~ ^
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:558:11:
error:
  no member named 'END_BRACKET' in 'osgDB::OutputStream'
os << OS_END_BRACKET << std::endl;
  ^~
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:35:36:
note:
  expanded from macro 'OS_END_BRACKET'
#define OS_END_BRACKET  os.END_BRACKET
~~ ^
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:571:11:
error:
  no member named 'BEGIN_BRACKET' in 'osgDB::InputStream'
is >> IS_BEGIN_BRACKET;
  ^~~~
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:32:36:
note:
  expanded from macro 'IS_BEGIN_BRACKET'
#define IS_BEGIN_BRACKETis.BEGIN_BRACKET
~~ ^
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:577:11:
error:
  no member named 'END_BRACKET' in 'osgDB::InputStream'
is >> IS_END_BRACKET;
  ^~
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:33:36:
note:
  expanded from macro 'IS_END_BRACKET'
#define IS_END_BRACKET  is.END_BRACKET
~~ ^
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:586:11:
error:
  no member named 'BEGIN_BRACKET' in 'osgDB::OutputStream'
os << OS_BEGIN_BRACKET << std::endl;
  ^~~~
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.cpp:34:36:
note:
  expanded from macro 'OS_BEGIN_BRACKET'
#define OS_BEGIN_BRACKETos.BEGIN_BRACKET
~~ ^
/users/tony/source/VirtualPlanetBuilder/src/vpb/BuildOptionsIO.

Re: [osg-users] osgconv generated ac3d files not working

2012-11-01 Thread Tony Vasile
Hi,
It looks like the MATERIAL fields are not being added to the ac file is the 
first problem. I have downloaded the viewer program from the Inivis resources 
site http://www.inivis.com/ac3d/download/AC3Dloader113.zip and it shows the 
test object in the zip file as black object. 

In my trawler case the viewer just gives up and dies with a seg fault and some 
errors about the on of the fields being incorrect.

How do I raise a bug on this?
... 

Thank you!

Cheers,
Tony

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





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


[osg-users] Re: 3d Models for free?

2011-06-01 Thread Tony Vasile
There are some maybe free models associated with the FlightGear project.
There seems to be a repository of background models at
http://scenemodels.flightgear.org . Most of the models appear to be airport
related but there are some other geographic objects, so you may be lucky and
find something of use.

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


Re: [osg-users] OSG in Delta3D

2010-08-14 Thread Tony Vasile
Dear Sanat,
  You don't have to use Delta 3D to get collisions in your application. You
can use osgBullet and the Bullet collision library. osgBullet provides
routines to map the osg objects to ones that Bullet can manage and perform
collision.

http://code.google.com/p/osgbullet/ for osgBullet and
http://bulletphysics.org/wordpress/ for the bullet code.  You will also need
osgWorks http://code.google.com/p/osgworks/ . There are examples in the
osgBullet code to show you how to get started.

Hope this helps.

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


  1   2   >