[osg-users] Getting correct angles from osg::Matrixd in the 4'th Quadrant

2008-02-28 Thread filip.holm
I've run into a problem using Quaternion rotation with osg::Matrixd that I 
can't seem to figure out. Consider the following test example and resulting 
output:

#define DEG2RAD(d) d*(2*M_PI/360.0)
#define RAD2DEG(r) r*360.0/2*M_PI

void testQuaternionRotation()
{
osg::Matrixd osgTrans;
osgTrans.set(osg::Matrix::identity());
osg::Vec3f axis(0.0,0.0,1.0);
double osgTransAngle,osgQuatAngle;


printf(\n*** Doing a 360 deg quaternion rotation about z-axis using 
OSG ***\n);
for(int i = 0; i  360; ++i)
{
double angle = DEG2RAD(i);
osg::Quat quat(angle,axis);
quat.getRotate(osgQuatAngle,axis);

//Set the quat rotation on matrix
osgTrans.setRotate(quat);
quat = osgTrans.getRotate();
quat.getRotate(osgTransAngle,axis);
printf(Rot: %.1f osgQang: %.1f osgTransAng: 
%.1f\n,RAD2DEG(angle),RAD2DEG(osgQuatAngle),RAD2DEG(osgTransAngle));
}
}

Output:
Rot: 268.0 osgQang: 268.0 osgTransAng: 268.0
Rot: 269.0 osgQang: 269.0 osgTransAng: 269.0
Rot: 270.0 osgQang: 270.0 osgTransAng: 90.0
Rot: 271.0 osgQang: 271.0 osgTransAng: 89.0

Reading back rotation angles in the 4'th quadrant gives me invalid values. I 
would have expected to either get negative angle or the angle that I used to 
rotate about the z-axis. Am I missing a elementary consept here or is this an 
actual bug in the implementation?
Setting the matrix using a quaternion with angles from the 4'th quaderant seems 
to be working just fine, it's only reading it back that doesn't work.

Thanks for any help on this,
Filip
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Getting correct angles from osg::Matrixd in the 4'th Quadrant

2008-02-28 Thread filip.holm
Thanks J.P. for all the help, this problem was starting to give me a headach.

For future refrence, this is how to get the correct angle of rotation about the 
z-axis:
quat.getRotate(angle,axis);
double zAxisRotation = angle*axis.z();



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:osg-users-
 [EMAIL PROTECTED] On Behalf Of J.P. Delport
 Sent: 28. februar 2008 17:12
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] Getting correct angles from osg::Matrixd in
 the 4'th Quadrant

 Hi,

  seems like the matrix.getrotate is broken again. 'osgunittests quat'
  also reports lots of problems.
  sorry, I've spoken too soon. Matrix.getrotate is fine. The unittests
  report false positives (q = -q is OK), will fix this.
 I promise to still fix the unittests...

 
  For your problem angles, quat(angle,axis) = -1 *
 osgTrans.getRotate(),
  which is fine ito the rotation. It seems that quat.getRotate is the
  culprit. Still looking...
 I was wrong again, quat.getRotate is also fine. The expectation (yours
 and mine) of what quat.getRotate(angle, axis) does was wrong.

 quat.getRotate _sets_ both the axis and angle. The axis is not a
 parameter in the sense of asking What is the angle about this axis?,
 it is set by the call. If you print out the axis as well as the angle
 you will see that all is well, e.g. 271 deg about (0 0 -1) is the same
 as 89 about (0 0 1).

 I attach a modified version of your test.

 Sorry for all the noise, hope this clears it up.

 regards
 jp

 
  jp
 
  I'm comparing with old working versions, will let you know.
 
  jp
 
  [EMAIL PROTECTED] wrote:
  I've run into a problem using Quaternion rotation with osg::Matrixd
 that I can't seem to figure out. Consider the following test example
 and resulting output:
 
  #define DEG2RAD(d) d*(2*M_PI/360.0)
  #define RAD2DEG(r) r*360.0/2*M_PI
 
  void testQuaternionRotation()
  {
  osg::Matrixd osgTrans;
  osgTrans.set(osg::Matrix::identity());
  osg::Vec3f axis(0.0,0.0,1.0);
  double osgTransAngle,osgQuatAngle;
 
 
  printf(\n*** Doing a 360 deg quaternion rotation about z-
 axis using OSG ***\n);
  for(int i = 0; i  360; ++i)
  {
  double angle = DEG2RAD(i);
  osg::Quat quat(angle,axis);
  quat.getRotate(osgQuatAngle,axis);
 
  //Set the quat rotation on matrix
  osgTrans.setRotate(quat);
  quat = osgTrans.getRotate();
  quat.getRotate(osgTransAngle,axis);
  printf(Rot: %.1f osgQang: %.1f osgTransAng:
 %.1f\n,RAD2DEG(angle),RAD2DEG(osgQuatAngle),RAD2DEG(osgTransAngle));
  }
  }
 
  Output:
  Rot: 268.0 osgQang: 268.0 osgTransAng: 268.0
  Rot: 269.0 osgQang: 269.0 osgTransAng: 269.0
  Rot: 270.0 osgQang: 270.0 osgTransAng: 90.0
  Rot: 271.0 osgQang: 271.0 osgTransAng: 89.0
 
  Reading back rotation angles in the 4'th quadrant gives me invalid
 values. I would have expected to either get negative angle or the angle
 that I used to rotate about the z-axis. Am I missing a elementary
 consept here or is this an actual bug in the implementation?
  Setting the matrix using a quaternion with angles from the 4'th
 quaderant seems to be working just fine, it's only reading it back that
 doesn't work.
 
  Thanks for any help on this,
  Filip
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
  http://lists.openscenegraph.org/listinfo.cgi/osg-users-
 openscenegrap
  h.org
 

 --
 This message is subject to the CSIR's copyright terms and conditions,
 e-mail legal notice, and implemented Open Document Format (ODF)
 standard.
 The full disclaimer details can be found at
 http://www.csir.co.za/disclaimer.html.

 This message has been scanned for viruses and dangerous content by
 MailScanner, and is believed to be clean.  MailScanner thanks Transtec
 Computers for their support.

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


Re: [osg-users] OpenSceneGraph 2.2 Training: November, January

2007-10-25 Thread filip.holm
Bob/Paul,

Is the 12-16 November osg Training still available?

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Bob Kuehne
 Sent: 8. oktober 2007 04:09
 To: OpenSceneGraph Users
 Subject: [osg-users] OpenSceneGraph 2.2 Training: November, January

 hi osg-ers,

 hot on the heels of two successful training courses (one
 public, one on-site private), we're heading into our fall
 training schedule. on the radar at this moment is the
 forthcoming Open Source Retreat early in november.
 we've got a lot of stuff we're putting in on the docket for
 this five day intensive, with a heavy focus on what's new and
 great about osg 2.2.
 we're
 looking forward to this course!

 --
 Bob Kuehne and Paul Martz will co-instruct two week-long
 comprehensive OSG courses hosted by the Open Source Retreat.
 The first will be in Charlottesville, VA, November 12-16,
 2007, and the second will be in Rome, Italy, January 6-10,
 2008. These courses include time set aside for one-on-one
 consultation and instruction.
 To register for either of these courses, visit the following URL:
 http://www.opensourceretreat.com
 --

 spots are available, so sign up early, and sign up often. we
 hope to see you in virginia in november. if you can't make
 november, there's also a course in rome, january 6-11, 2008.
 what could be nicer than pasta, espresso, and geekery in rome? :)

 bob

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

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


Re: [osg-users] Last call for feedback before 2.2

2007-10-04 Thread filip.holm
Built fine on WinXP/VS2005. I'm a little confused about the dll prefix which is 
now osg25- for 2.1.15, what will be the prefix for 2.2?

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Robert Osfield
 Sent: 4. oktober 2007 10:57
 To: OpenSceneGraph Users
 Subject: [osg-users] Last call for feedback before 2.2

 Hi All,

 I have done my hopefully will be my last code checkin before
 2.2.  If you have SVN please do a svn update and let me know
 how you get on, or test out last night 2.1.15.

 I'll wait for an hour and half then tag the beast.

 Cheers,
 Robert.
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
negraph.org

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


[osg-users] osgViewer::CompositeViewer using slave camera

2007-10-03 Thread filip.holm
Hi All,

Has anyone tried to get slave cameras to render the master scenedata with 
CompositeViewer?
Using the Viewer it works perfect, but trying the same approach with 
CompositeViewer just shows a blank buffer.
I have attached a modified osgcompositeviewer example where the -4 argument 
shows the problem.

Any hints to what I'm doing wrong or where to start debugging is much 
appreciated.(osgViewer::View:addSlave() seems to be doing the right thing)

Thanks in advance,
Filip
/* OpenSceneGraph example, osgcompositeviewer.
*
*  Permission is hereby granted, free of charge, to any person obtaining a copy
*  of this software and associated documentation files (the Software), to deal
*  in the Software without restriction, including without limitation the rights
*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
*  copies of the Software, and to permit persons to whom the Software is
*  furnished to do so, subject to the following conditions:
*
*  THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
*  THE SOFTWARE.
*/

#include osgUtil/Optimizer
#include osgDB/ReadFile

#include osg/Material
#include osg/Geode
#include osg/BlendFunc
#include osg/Depth
#include osg/Projection
#include osg/PolygonOffset
#include osg/MatrixTransform
#include osg/Camera
#include osg/FrontFace

#include osgText/Text

#include osgGA/TrackballManipulator
#include osgGA/FlightManipulator
#include osgGA/StateSetManipulator

#include osgViewer/CompositeViewer

#include osgFX/Scribe

#include osg/io_utils

// class to handle events with a pick
class PickHandler : public osgGA::GUIEventHandler {
public: 

PickHandler():
_mx(0.0f),
_my(0.0f) {}

~PickHandler() {}

bool handle(const osgGA::GUIEventAdapter ea,osgGA::GUIActionAdapter aa)
{
osgViewer::View* view = dynamic_castosgViewer::View*(aa);
if (!view) return false;

switch(ea.getEventType())
{
case(osgGA::GUIEventAdapter::PUSH):
{
_mx = ea.getX();
_my = ea.getY();
break;
}
case(osgGA::GUIEventAdapter::RELEASE):
{
if (_mx==ea.getX()  _my==ea.getY())
{
pick(view, ea.getX(), ea.getY());
}
break;
}
default:
break;
}
return false;
}

void pick(osgViewer::View* view, float x, float y)
{
osg::Node* node = 0;
osg::Group* parent = 0;

osgUtil::LineSegmentIntersector::Intersections intersections;
if (view-computeIntersections(x, y, intersections))
{
osgUtil::LineSegmentIntersector::Intersection intersection = 
*intersections.begin();
osg::NodePath nodePath = intersection.nodePath;
node = (nodePath.size()=1)?nodePath[nodePath.size()-1]:0;
parent = 
(nodePath.size()=2)?dynamic_castosg::Group*(nodePath[nodePath.size()-2]):0;
}

// now we try to decorate the hit node by the osgFX::Scribe to show 
that its been picked
if (parent  node)
{

osgFX::Scribe* parentAsScribe = 
dynamic_castosgFX::Scribe*(parent);
if (!parentAsScribe)
{
// node not already picked, so highlight it with an 
osgFX::Scribe
osgFX::Scribe* scribe = new osgFX::Scribe();
scribe-addChild(node);
parent-replaceChild(node,scribe);
}
else
{
// node already picked so we want to remove scribe to unpick it.
osg::Node::ParentList parentList = parentAsScribe-getParents();
for(osg::Node::ParentList::iterator itr=parentList.begin();
itr!=parentList.end();
++itr)
{
(*itr)-replaceChild(parentAsScribe,node);
}
}
}

}

float _mx, _my;

};


int main( int argc, char **argv )
{

// use an ArgumentParser object to manage the program arguments.
osg::ArgumentParser arguments(argc,argv);

// read the scene from the list of file specified commandline args.
osg::ref_ptrosg::Node scene = osgDB::readNodeFiles(arguments);

// load a default scene if none provided
if (!scene) 
{
scene = osgDB::readNodeFile(cow.osg); 
if (!scene) return 1;
}

// construct the viewer.

Re: [osg-users] osgViewer::CompositeViewer using slave camera

2007-10-03 Thread filip.holm
I'm using osg 2.1.11 on WinXP with VS2005

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Robert Osfield
 Sent: 3. oktober 2007 10:56
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] osgViewer::CompositeViewer using slave camera

 Hi Filip,

 Which version of the OSG are you working with ?

 On 10/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Hi All,
 
  Has anyone tried to get slave cameras to render the master
 scenedata with CompositeViewer?
  Using the Viewer it works perfect, but trying the same
 approach with CompositeViewer just shows a blank buffer.
  I have attached a modified osgcompositeviewer example where
 the -4 argument shows the problem.
 
  Any hints to what I'm doing wrong or where to start
 debugging is much
  appreciated.(osgViewer::View:addSlave() seems to be doing the right
  thing)
 
  Thanks in advance,
  Filip
 
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
  org
 
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
 negraph.org

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


Re: [osg-users] osgViewer::CompositeViewer using slave camera

2007-10-03 Thread filip.holm
Robert,

I just noticed that there are some major changes to CompositeViewer in 2.1.13.
I've updated my SVN and will let you know how test goes with the new ViewerBase 
class.

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of [EMAIL PROTECTED]
 Sent: 3. oktober 2007 11:00
 To: osg-users@lists.openscenegraph.org
 Subject: Re: [osg-users] osgViewer::CompositeViewer using slave camera

 I'm using osg 2.1.11 on WinXP with VS2005

 Filip

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  Robert Osfield
  Sent: 3. oktober 2007 10:56
  To: OpenSceneGraph Users
  Subject: Re: [osg-users] osgViewer::CompositeViewer using
 slave camera
 
  Hi Filip,
 
  Which version of the OSG are you working with ?
 
  On 10/3/07, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
   Hi All,
  
   Has anyone tried to get slave cameras to render the master
  scenedata with CompositeViewer?
   Using the Viewer it works perfect, but trying the same
  approach with CompositeViewer just shows a blank buffer.
   I have attached a modified osgcompositeviewer example where
  the -4 argument shows the problem.
  
   Any hints to what I'm doing wrong or where to start
  debugging is much
   appreciated.(osgViewer::View:addSlave() seems to be doing
 the right
   thing)
  
   Thanks in advance,
   Filip
  
   ___
   osg-users mailing list
   osg-users@lists.openscenegraph.org
  
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
   org
  
  
  
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
  http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
  negraph.org
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
 negraph.org

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


Re: [osg-users] osgViewer::CompositeViewer using slave camera

2007-10-03 Thread filip.holm
Example built using osg 2.1.13 on winXP/VS2005. Still have same problem. Scene 
doesn't display for osgViewer::View slave camera.

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of [EMAIL PROTECTED]
 Sent: 3. oktober 2007 11:19
 To: osg-users@lists.openscenegraph.org
 Subject: Re: [osg-users] osgViewer::CompositeViewer using slave camera

 Robert,

 I just noticed that there are some major changes to
 CompositeViewer in 2.1.13.
 I've updated my SVN and will let you know how test goes with
 the new ViewerBase class.

 Filip

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  [EMAIL PROTECTED]
  Sent: 3. oktober 2007 11:00
  To: osg-users@lists.openscenegraph.org
  Subject: Re: [osg-users] osgViewer::CompositeViewer using
 slave camera
 
  I'm using osg 2.1.11 on WinXP with VS2005
 
  Filip
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
   Robert Osfield
   Sent: 3. oktober 2007 10:56
   To: OpenSceneGraph Users
   Subject: Re: [osg-users] osgViewer::CompositeViewer using
  slave camera
  
   Hi Filip,
  
   Which version of the OSG are you working with ?
  
   On 10/3/07, [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:
Hi All,
   
Has anyone tried to get slave cameras to render the master
   scenedata with CompositeViewer?
Using the Viewer it works perfect, but trying the same
   approach with CompositeViewer just shows a blank buffer.
I have attached a modified osgcompositeviewer example where
   the -4 argument shows the problem.
   
Any hints to what I'm doing wrong or where to start
   debugging is much
appreciated.(osgViewer::View:addSlave() seems to be doing
  the right
thing)
   
Thanks in advance,
Filip
   
___
osg-users mailing list
osg-users@lists.openscenegraph.org
   
  
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
org
   
   
   
   ___
   osg-users mailing list
   osg-users@lists.openscenegraph.org
   http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
   negraph.org
  
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
  http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
  negraph.org
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
 negraph.org

/* OpenSceneGraph example, osgcompositeviewer.
*
*  Permission is hereby granted, free of charge, to any person obtaining a copy
*  of this software and associated documentation files (the Software), to deal
*  in the Software without restriction, including without limitation the rights
*  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
*  copies of the Software, and to permit persons to whom the Software is
*  furnished to do so, subject to the following conditions:
*
*  THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
*  THE SOFTWARE.
*/

#include osgUtil/Optimizer
#include osgDB/ReadFile

#include osg/Material
#include osg/Geode
#include osg/BlendFunc
#include osg/Depth
#include osg/Projection
#include osg/PolygonOffset
#include osg/MatrixTransform
#include osg/Camera
#include osg/FrontFace

#include osgText/Text

#include osgGA/TrackballManipulator
#include osgGA/FlightManipulator
#include osgGA/StateSetManipulator
#include osgViewer/ViewerEventHandlers

#include osgViewer/CompositeViewer

#include osgFX/Scribe

#include osg/io_utils

// class to handle events with a pick
class PickHandler : public osgGA::GUIEventHandler {
public: 

PickHandler():
_mx(0.0f),
_my(0.0f) {}

~PickHandler() {}

bool handle(const osgGA::GUIEventAdapter ea,osgGA::GUIActionAdapter aa)
{
osgViewer::View* view = dynamic_castosgViewer::View*(aa);
if (!view) return false;

switch(ea.getEventType())
{
case(osgGA::GUIEventAdapter::PUSH):
{
_mx = ea.getX();
_my = ea.getY();
break;
}
case(osgGA::GUIEventAdapter::RELEASE):
{
if (_mx==ea.getX()  _my==ea.getY())
{
pick(view, ea.getX(), ea.getY());
}
break;
}
default:
break;

Re: [osg-users] OpenSceneGraph-2.1.9 dev version released

2007-09-04 Thread filip.holm
 
First of all. Big thanks to Luigi for making the updates to Cmake files.
I've built it on Visual Studio 8.0 and works great.
I have one comment to the naming of the osg core library dll's. Instead
of prefixing them with [osg20-]libraryName.dll, could we postfix the
version libraryName[-2.1.9].dll? 

Looking forward to do some more testing.

Filip

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Robert Osfield
 Sent: 3. september 2007 18:03
 To: osg users
 Subject: [osg-users] OpenSceneGraph-2.1.9 dev version released
 
 Hi All,
 
 Its Monday! Its dev release day :-)
 
 Highlights:
 Lots of additions this week: Improved build configuration 
 under Visual Studio with versioning of DLL's and dll's 
 automatically placed in the bin directory - no longer do you 
 need to set up paths or install to get apps running. New 
 Inventor file writer. New depth peeling example.
 Finally lots of bug fixes, in particular related threading 
 and application exit.
 
 Developer Release page:
 http://www.openscenegraph.org/projects/osg/wiki/Downloads/Deve
 loperReleases
 
 Source package:
 http://www.openscenegraph.org/downloads/developer_releases/Ope
 nSceneGraph-2.1.9.zip
 
 SVN tag:
 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/Open
 SceneGraph-2.1.9/
 
 Please test, as we are now getting close to 2.2.  In 
 particular I'd like feedback on Luigi's changes to the 
 Windows build.  This requires CMake 2.7 and to be enabled as 
 it isn't yet default, but if feedback is good this week I'll 
 get another dev release out that makes the new build set up 
 the default.  Please see thread from last week on this topic 
 for more info.
 
 Cheers,
 Robert.
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
negraph.org
 
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OpenSceneGraph-2.1.9 dev version released

2007-09-04 Thread filip.holm
Andy,

VS creates the directories because they are referenced in the project
files. E.g. osg Project has the Program Database File Name output set
to: OpenSceneGraphDir/lib/Debug/../../bin/osg20-osg.pdb. 

I'm assuming this is also due to a Cmake limitation. Luigi can probably
confirm/disprove it.

If posible it would have been good to set the Project property Output
Directory as: OpenSceneGraph/bin and then use the $(OutDir) macro to
set the output for the files in the project.

Filip


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Andy Skinner
 Sent: 4. september 2007 19:55
 To: Public OpenSceneGraph Users discussion list.
 Subject: Re: [osg-users] OpenSceneGraph-2.1.9 dev version released
 
 I still got them.  I'll look and make sure I didn't 
 accidentally create them, but I don't think I did.
 
 andy
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Robert Osfield
 Sent: Tuesday, September 04, 2007 1:37 PM
 To: Public OpenSceneGraph Users discussion list.
 Subject: Re: [osg-users] OpenSceneGraph-2.1.9 dev version released
 
 On 9/4/07, Andy Skinner [EMAIL PROTECTED] wrote:
  Using the new windows build, should I still get the empty
  lib/osgPlugins-2.1.9 and lib/release directories?
 
 These shouldn't be created, instead you should just find the 
 plugins placed in the bin directory as bin/osgPlugins-version.
 
 Robert.
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
negraph.or
 g
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
negraph.org
 
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Why does the osgPlugins directory includethe version?

2007-08-16 Thread filip.holm
To Jean-Sebastien,

--snip--
The solution is simple, really - users should learn to build the
INSTALL target in the Visual Studio project 
files. To simplify this, the INSTALL target should be the default
target in a batch build. But I think we 
shouldn't put in any workarounds when the true solution is so simple.
--snip--

My Cmake knowledge is limited, but I would prefer a Visual Studio
solution where the projects actually build to the directory I test/debug
my application. Rather than copying files around so you end up having
duplicate files and end up testing with an old version. As a Visual
Studio programmer I think of the INSTALL target more like a SW
deployment step than an actual build stage. No sure if this is a Cmake
limitation, but my vote goes for setting up the projects so they build
to the /bin directory directly. That way you can make a change to one
project, build it and run your testapp. 

On a separate note. 
- osgIntrospection is not copied when building INSTALL. 
- If we have to stick to the INSTALL target, does anyone know if there
is a way to setup Cmake to copy the pdb files as well?

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


Re: [osg-users] osgterrain example broken.

2007-08-08 Thread filip.holm
I've been trying to build the .NET wrappers today and ran into the same link 
problem for osgViewer wrapper on windows. 
I added OSGVIEWER_EXPORT to OpenGLQuerySupport and was able to successfully 
link and build the osgWrappers. 

Filip

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rafa Gaitan
Sent: 8. august 2007 12:44
To: osg users
Subject: [osg-users] osgterrain example broken.

Hi Robert,

I have just update the svn, and the example of osgterrain is broken, possibly 
by the change of TerrainNode to Terrain. The ReaderWritterTerrain.cpp needs to 
be upgraded too.

I also realized that the wrapper of osgViewer is not compiling on Mac the 
problem is for an undefined symbol that doesn't give problems on linux:

 89%] Building CXX object
src/osgWrappers/CMakeFiles/osgwrapper_osgViewer.dir/osgViewer/Renderer.o
/Users/rgaitan/Projects/OSG-SVN/OpenSceneGraph/include/osgViewer/Renderer:39:
warning: inline function 'void
osgViewer::OpenGLQuerySupport::endQuery()' used but never defined

. and after on link phase...:

Linking CXX shared module ../../lib/osgPlugins-2.1.4/osgwrapper_osgViewer.so
/usr/bin/ld: Undefined symbols:
osgViewer::OpenGLQuerySupport::endQuery()
collect2: ld returned 1 exit status
make[2]: *** [lib/osgPlugins-2.1.4/osgwrapper_osgViewer.so] Error 1
make[1]: *** [src/osgWrappers/CMakeFiles/osgwrapper_osgViewer.dir/all] Error 2

Rafa.

--
Rafael Gaitán Linares
Instituto de Automática e Informática Industrial  http://www.ai2.upv.es Ciudad 
Politécnica de la Innovación Universidad Politécnica de Valencia 
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org