Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-22 Thread Allen Saucier
Hi bouffa,
thx for this info!  I never knew that there was a difference between trunk 
and branch not suspected such a think.

How, I understand that the developer version is the trunk and the released 
stable versions are branches.


bouffa wrote:
 Hi Allen,
 
 http://www.openscenegraph.org/projects/osg/wiki/Downloads 
 (http://www.openscenegraph.org/projects/osg/wiki/Downloads)
 
 
 You are using the svn of the 2.8 branch (stable release). The trunk is a 
 developer release (at the end of the web page). To get svn trunk of osg, 
 check this link :
 
 
 http://www.openscenegraph.org/projects/osg/wiki/Downloads/SVN 
 (http://www.openscenegraph.org/projects/osg/wiki/Downloads/SVN)
 
 
  (http://www.openscenegraph.org/projects/osg/wiki/Downloads/SVN)
 Mourad
 


and Paul, I understand why you are calling the version of osgPPU the trunk 
version.  

paul wrote:
 
 
 Quote  � Select �
 http://forum.openscenegraph.org//files/screenshot2_903.png
 
 The statement in this image implies that svn trunk of osgPPU is compatible 
 with
 the latest stable release of OSG. This is not correct.
 



Paul, 
you wrote:

paul wrote:
 
 
 art wrote:
  Art Tevs wrote:
  Quote:  � Select � � Expand �
  Ok, then it explains why it does not compile. Yes, svn trunk of osgPPU 
  tracks the svn trunk of OSG.
  
  Hmm, I wonder how to handle different osg branches in future. I mean if 
  again something like this happens, then I had either to create additional 
  branch in osgPPU repository to track with the according osg branch (which I 
  didn't really like) or to detect the version and write preprocessor or 
  cmake workarounds for that (which is also not a good solution).
  
 
 I'm not sure what new problem OSG 2.8.3 has created for osgPPU that didn't
 already exist with the OSG 2.8.2 release. Can you explain the problem?
 


I believe the answer is this:
in the developer version of osg, 2.9.7 (I do not see any access to version 
2.9.8 ) there was a method added to the PixelDataBufferObject class called 
getOrCreateGLBufferObject().  This method is required by the svn or trunk 
version of osgPPU but it is NOT needed by osgPPU 0.4.  osgPPU 0.4 compiles with 
2.8.3 and 2.8.2 branch versions, no problem.  

I do not believe there is a new problem unless we mix the developer version 
of osgPPU with a branch version of osg and this is where I became very confused 
as I never knew the developer version was called trunk and the stable release 
versions were called branch.  I was mixing the two trying to implement some 
of Art's latest updates in osgPPU.

I do believe Art has a good point: when the developer version of osg diverges 
from the branch, what is he do to when he is relying on functionality in the 
developer version that is not in a branch version?

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





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


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-22 Thread Art Tevs
Hi Allen,

usual naming convention is to call trunk to the current content of the 
working base in svn repsitory. This means, trunk is something were all 
changes/patches are applied to. After some time, trunk is get tagged, 
branched, and new release is published. In several cases the so tagged version 
is get developed further, which in that case happened to osg. Somewhere the 
version 2.7.x was tagged/branched as 2.8 and released as stable version. The 
work continued on 2.9.x but also patches were applied to 2.8.x. So in general 
this means, that it could happen that if current 2.9.x version will be tagged 
as 2.10 there could exists both versions living besides, 2.8 and 2.10 having 
different APIs.

As for osgPPU it is not only the getOrCreateGLBufferObject() which don't work, 
but also much more things. I tried yesterday to bring combine current trunk 
version of osgPPU with osg 2.8 and that didn't really worked out without 
introducing additional bugs. So, I decided to submit several patches to the 0.4 
release but do not include new features, only patches. This will be a 0.4.1 
version, which will be compatible with up-to osg 2.8.3.

As for very new features, like new Units or new examples, I will have to wait 
until next stable release from the 2.9.x version ,which might be the 2.10. 
Maybe I will come with some developer release inbetween so that there is 
something compatible with osg 2.9.x versions out there.


Cheers,
Art

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





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


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-22 Thread Allen Saucier
Thank you Art. :)

I understand and it does appear that the trunk version of OSG has a different 
API from the stable release version, 2.8.3.

I'll be happy to stay with osg 2.8.3 and osgPPU 0.4.  This combination works 
very well on both linux and windows.  I'll upgrade my version of osgPPU 
whenever you have the time out update it.  No hurry.

I really appreciate your work as you have helped me immeasurably!  I can now 
accomplish my task and finish my project because of your osgPPU module.

Thanks Art,
Allen

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





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


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-22 Thread Paul Martz

Hi Art -- I'm a little confused. Maybe we're not communicating clearly.

Art Tevs wrote:

As for osgPPU it is not only the getOrCreateGLBufferObject() which don't work, 
but also much more things. I tried yesterday to bring combine current trunk 
version of osgPPU with osg 2.8 and that didn't really worked out without 
introducing additional bugs.


OK. I understand you choose not to try to make your svn trunk head compatible 
with older versions of OSG, and instead you are drawing a compatibility line 
going forward. That's fine, and I understand this.



So, I decided to submit several patches to the 0.4 release but do not include 
new features, only patches. This will be a 0.4.1 version, which will be 
compatible with up-to osg 2.8.3.


This part I do not understand. I just downloaded the osgPPU 0.4 tar.gz, and it 
builds fine with OSG 2.8.3. Please tell me what you think you need to change in 
osgPPU 0.4 to make it compatible with OSG 2.8.3.


Thanks.

--
  -Paul Martz  Skew Matrix Software
   http://www.skew-matrix.com/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-22 Thread Art Tevs
Hi Paul,

no, I do not have to change anything to build for 2.8.3 It is just that I added 
some small and big features to osgPPU. For example current svn trunk version 
has new Units (UnitInOutRepeat - for iterative/loop subgraphs), new examples 
and some bugfixes. I cannot use that new unit in 2.8.3 because it relay on some 
changes in 2.9.x versions (i.e. RenderingBin sorting mode TRAVERSE_ORDER). 

However, some bugfixes can be included very well into 0.4 branch. I just cannot 
tag the svn trunk of osgppu in order to be compatible with latest stable 
release 2.8.3. Hence I have to repatch the 0.4 version in order to solve the 
bugs and hence maintain also the 0.4 branch. So the 0.4.1 version will include 
only bugfixes, no new features.  


Cheers,
Art

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





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


[osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Allen Saucier
Hi Art,

I decided to start a new thread on this issue.  It's a biggy for me.  

here's what I get every time I attempt to compile the svn version of osgPPU 
agains osg 2.8.3:

Code:

[al...@nlosdemobox:]$ make
Scanning dependencies of target osgPPU
[  2%] Building CXX object src/osgPPU/CMakeFiles/osgPPU.dir/Unit.o
In file included from /home/allen/projects/osgPPU/src/osgPPU/Unit.cpp:17:
/home/allen/projects/osgPPU/include/osgPPU/Unit.h: In member function ‘void 
osgPPU::Unit::popFrameBufferObject(osg::State)’:
/home/allen/projects/osgPPU/include/osgPPU/Unit.h:311: error: ‘class 
osg::FBOExtensions’ has no member named ‘glBindFramebuffer’
/home/allen/projects/osgPPU/src/osgPPU/Unit.cpp: In member function ‘virtual 
void osgPPU::Unit::DrawCallback::drawImplementation(osg::RenderInfo, const 
osg::Drawable*) const’:
/home/allen/projects/osgPPU/src/osgPPU/Unit.cpp:698: error: ‘class 
osg::PixelDataBufferObject’ has no member named ‘getOrCreateGLBufferObject’
/home/allen/projects/osgPPU/src/osgPPU/Unit.cpp:700: error: ‘class 
osg::PixelDataBufferObject’ has no member named ‘getOrCreateGLBufferObject’
make[2]: *** [src/osgPPU/CMakeFiles/osgPPU.dir/Unit.o] Error 1
make[1]: *** [src/osgPPU/CMakeFiles/osgPPU.dir/all] Error 2
make: *** [all] Error 2
[al...@nlosdemobox:]$ osgversiond
bash: osgversiond: command not found
[al...@nlosdemobox:]$ osgversion
OpenSceneGraph Library 2.8.3




Here is a listing of my libraries.  They are pointed to the correct 2.8.3 
libraries for osg.  I have determined from osgPPU's CMakeCache.txt file what 
osg .so's the compiler is linking against.  All looks good.


Code:

lrwxrwxrwx  1 root root20 2009-06-18 17:16 libOpenThreads.so - 
libOpenThreads.so.11
lrwxrwxrwx  1 root root23 2009-06-18 17:16 libOpenThreads.so.11 - 
libOpenThreads.so.2.4.0
-rw-r--r--  1 root root 42111 2010-04-16 08:58 libOpenThreads.so.2.4.0
lrwxrwxrwx  1 root root21 2010-04-16 09:08 libosgAnimation.so - 
libosgAnimation.so.65
-rw-r--r--  1 root root319640 2009-06-18 16:51 libosgAnimation.so.2.8.1
-rw-r--r--  1 root root720946 2010-04-16 09:06 libosgAnimation.so.2.8.3
lrwxrwxrwx  1 root root24 2009-06-18 17:16 libosgAnimation.so.55 - 
libosgAnimation.so.2.8.1
lrwxrwxrwx  1 root root24 2010-04-16 09:08 libosgAnimation.so.65 - 
libosgAnimation.so.2.8.3
lrwxrwxrwx  1 root root14 2010-04-16 09:08 libosgDB.so - libosgDB.so.65
-rw-r--r--  1 root root667776 2009-06-18 16:48 libosgDB.so.2.8.1
-rw-r--r--  1 root root676644 2010-04-16 09:00 libosgDB.so.2.8.3
lrwxrwxrwx  1 root root17 2009-06-18 17:16 libosgDB.so.55 - 
libosgDB.so.2.8.1
lrwxrwxrwx  1 root root17 2010-04-16 09:08 libosgDB.so.65 - 
libosgDB.so.2.8.3
lrwxrwxrwx  1 root root14 2010-04-16 09:08 libosgFX.so - libosgFX.so.65
-rw-r--r--  1 root root219355 2009-06-18 16:52 libosgFX.so.2.8.1
-rw-r--r--  1 root root219354 2010-04-16 09:00 libosgFX.so.2.8.3
lrwxrwxrwx  1 root root17 2009-06-18 17:16 libosgFX.so.55 - 
libosgFX.so.2.8.1
lrwxrwxrwx  1 root root17 2010-04-16 09:08 libosgFX.so.65 - 
libosgFX.so.2.8.3
lrwxrwxrwx  1 root root14 2010-04-16 09:08 libosgGA.so - libosgGA.so.65
-rw-r--r--  1 root root342494 2009-06-18 16:50 libosgGA.so.2.8.1
-rw-r--r--  1 root root342503 2010-04-16 09:01 libosgGA.so.2.8.3
lrwxrwxrwx  1 root root17 2009-06-18 17:16 libosgGA.so.55 - 
libosgGA.so.2.8.1
lrwxrwxrwx  1 root root17 2010-04-16 09:08 libosgGA.so.65 - 
libosgGA.so.2.8.3
-rw-r--r--  1 root root510500 2010-04-16 09:31 libosgGtk.a
-rwxr-xr-x  1 root root  1961 2010-04-16 09:31 libosgGtk.la
-rw-r--r--  1 root root658254 2010-04-16 09:31 libosgGtkmm.a
-rwxr-xr-x  1 root root  2554 2010-04-16 09:31 libosgGtkmm.la
lrwxrwxrwx  1 root root20 2010-04-16 09:31 libosgGtkmm.so - 
libosgGtkmm.so.0.0.0
lrwxrwxrwx  1 root root20 2010-04-16 09:31 libosgGtkmm.so.0 - 
libosgGtkmm.so.0.0.0
-rwxr-xr-x  1 root root515483 2010-04-16 09:31 libosgGtkmm.so.0.0.0
lrwxrwxrwx  1 root root18 2010-04-16 09:31 libosgGtk.so - 
libosgGtk.so.0.0.0
lrwxrwxrwx  1 root root18 2010-04-16 09:31 libosgGtk.so.0 - 
libosgGtk.so.0.0.0
-rwxr-xr-x  1 root root392217 2010-04-16 09:31 libosgGtk.so.0.0.0
lrwxrwxrwx  1 root root23 2010-04-16 09:08 libosgManipulator.so - 
libosgManipulator.so.65
-rw-r--r--  1 root root349028 2009-06-18 16:52 libosgManipulator.so.2.8.1
-rw-r--r--  1 root root349037 2010-04-16 09:06 libosgManipulator.so.2.8.3
lrwxrwxrwx  1 root root26 2009-06-18 17:16 libosgManipulator.so.55 - 
libosgManipulator.so.2.8.1
lrwxrwxrwx  1 root root26 2010-04-16 09:08 libosgManipulator.so.65 - 
libosgManipulator.so.2.8.3
lrwxrwxrwx  1 root root20 2010-04-16 09:08 libosgParticle.so - 
libosgParticle.so.65
-rw-r--r--  1 root root364487 2009-06-18 16:53 libosgParticle.so.2.8.1
-rw-r--r--  1 root root364487 2010-04-16 09:01 libosgParticle.so.2.8.3
lrwxrwxrwx  1 root root 

Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Allen Saucier
O, one other note.  I have the exact same issues under Windows XP.

--Allen

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





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


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Paul Martz

Allen Saucier wrote:

[al...@nlosdemobox:]$ make
Scanning dependencies of target osgPPU
[  2%] Building CXX object src/osgPPU/CMakeFiles/osgPPU.dir/Unit.o
In file included from /home/allen/projects/osgPPU/src/osgPPU/Unit.cpp:17:
/home/allen/projects/osgPPU/include/osgPPU/Unit.h: In member function ‘void 
osgPPU::Unit::popFrameBufferObject(osg::State)’:
/home/allen/projects/osgPPU/include/osgPPU/Unit.h:311: error: ‘class 
osg::FBOExtensions’ has no member named ‘glBindFramebuffer’


Names of the member functions in the FBOExtensions class changed on trunk after 
the 2.8.2 release. OSG 2.8.3 was released off the 2.8 branch and is 99.9% API 
compatible with OSG 2.8.2. The FBOExtensions name changes are not in 2.8.3. It 
looks to me like trunk of osgPPU is tracking trunk of OSG (which I would expect).


Art and I discussed osgPPU and the 2.8.3 release previously. If you check the 
archives, I believe you'll find a post from me stating that the same version of 
osgPPU that worked with 2.8.2 should also work with 2.8.3.


--
  -Paul Martz  Skew Matrix Software
   http://www.skew-matrix.com/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Art Tevs
Hi Allen,

hmm, very strange, current osgPPU version compiles against osg 2.9.8 which is 
the developer version number of 2.8.3 branch, as I think.

The compilation error is about include files, did you checked that osg 2.8.3 
also has reinstalled your include files. 

I will check this today or tomorrow. It could be that there is an API 
difference between 2.9.8 and 2.8.3 branch. I'll check it.


Cheers,
Art

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





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


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Art Tevs
Ok, then it explains why it does not compile. Yes, svn trunk of osgPPU tracks 
the svn trunk of OSG. 

Hmm, I wonder how to handle different osg branches in future. I mean if again 
something like this happens, then I had either to create additional branch in 
osgPPU repository to track with the according osg branch (which I didn't really 
like) or to detect the version and write preprocessor or cmake workarounds for 
that (which is also not a good solution).

Paul do you have any ideas on that?

For this release I will go for a preprocessor solution, I think. Since I am not 
sure if I am ready to tag already new version of osgPPU, since I want to check 
it before tagging.

cheers,
art

P.S. Allen, I think, I should have the changes tomorrow.



Paul Martz wrote:
 Allen Saucier wrote:
 Names of the member functions in the FBOExtensions class changed on trunk 
 after 
 the 2.8.2 release. OSG 2.8.3 was released off the 2.8 branch and is 99.9% API 
 compatible with OSG 2.8.2. The FBOExtensions name changes are not in 2.8.3. 
 It 
 looks to me like trunk of osgPPU is tracking trunk of OSG (which I would 
 expect).
 
 Art and I discussed osgPPU and the 2.8.3 release previously. If you check the 
 archives, I believe you'll find a post from me stating that the same version 
 of 
 osgPPU that worked with 2.8.2 should also work with 2.8.3.
 
 -- 
 -Paul Martz  Skew Matrix Software
 http://www.skew-matrix.com/
 ___
 osg-users mailing list
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
  --
 Post generated by Mail2Forum


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





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


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Allen Saucier
Gentlemen, thank you.

Now I understand.  But, I still have an issue.  I downloaded osg 2.8.3 from the 
Osg website
as shown in the attached pic 1.  I used the svn link as shown.  Is this link 
the trunk of osg 2.8.3?  Or a branch?  i can not tell.

I did the same with osgPPU. pic 2

From my perspective as an end-user, I do not seen anything that tells me that 
there is a branch version that is different from a trunk version.  I have been 
assuming this entire time that both the svn versions of osg and osgPPU are 
the two version which are compatible with each other, as Art has been telling 
me.  And I have used the svn versions as listed on each website with no 
success.

I am still missing something.  Can you please clear up my confusion?

thanks,
Allen

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




Attachments: 
http://forum.openscenegraph.org//files/screenshot2_903.png
http://forum.openscenegraph.org//files/screenshot1_210.png


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


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Mourad Boufarguine
Hi Allen,

http://www.openscenegraph.org/projects/osg/wiki/Downloads

You are using the svn of the 2.8 branch (stable release). The trunk is a
developer release (at the end of the web page). To get svn trunk of osg,
check this link :

http://www.openscenegraph.org/projects/osg/wiki/Downloads/SVN

http://www.openscenegraph.org/projects/osg/wiki/Downloads/SVNMourad




On Wed, Apr 21, 2010 at 9:54 PM, Allen Saucier allen.sauc...@itt.comwrote:

 Gentlemen, thank you.

 Now I understand.  But, I still have an issue.  I downloaded osg 2.8.3 from
 the Osg website
 as shown in the attached pic 1.  I used the svn link as shown.  Is this
 link the trunk of osg 2.8.3?  Or a branch?  i can not tell.

 I did the same with osgPPU. pic 2

 From my perspective as an end-user, I do not seen anything that tells me
 that there is a branch version that is different from a trunk version.  I
 have been assuming this entire time that both the svn versions of osg and
 osgPPU are the two version which are compatible with each other, as Art has
 been telling me.  And I have used the svn versions as listed on each website
 with no success.

 I am still missing something.  Can you please clear up my confusion?

 thanks,
 Allen

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




 Attachments:
 http://forum.openscenegraph.org//files/screenshot2_903.png
 http://forum.openscenegraph.org//files/screenshot1_210.png


 ___
 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


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Paul Martz

Art Tevs wrote:
Ok, then it explains why it does not compile. Yes, svn trunk of osgPPU tracks the svn trunk of OSG. 


Hmm, I wonder how to handle different osg branches in future. I mean if again 
something like this happens, then I had either to create additional branch in 
osgPPU repository to track with the according osg branch (which I didn't really 
like) or to detect the version and write preprocessor or cmake workarounds for 
that (which is also not a good solution).


I'm not sure what new problem OSG 2.8.3 has created for osgPPU that didn't 
already exist with the OSG 2.8.2 release. Can you explain the problem?


The same version of osgPPU that works with 2.8.2 should also work with 2.8.3. 
osgPPU trunk is broke with OSG 2.8.3, but it was also broke with OSG 2.8.2.


Suppose the 2.8.3 release never happened, and Allen was trying to build svn 
trunk of osgPPU with the OSG 2.8.2 release. That would also not work, right? 
What would you tell him to do in that case? The same answer should apply to 2.8.3.



For this release I will go for a preprocessor solution, I think.


My external projects osgWorks and osgBullet are compatible with OSG 2.6.1 and 
later. osgWorks contains version-specific code in only two places (to handle the 
OSG API changes in Registry and Traits that occurred in OSG 2.6.0 and 2.8.0 
respectively). And osgBullet contains no version-specific code at all; all 
osgBullet code is 100% compatible with OSG 2.6.1 and later.


So, my use of the C preprocessor for OSG compatibility is very infrequent and is 
not a problem in itself. However, testing on different versions can be a burden 
to external project managers, and that's a decision you have to make.


--
  -Paul Martz  Skew Matrix Software
   http://www.skew-matrix.com/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Paul Martz

Allen Saucier wrote:

http://forum.openscenegraph.org//files/screenshot2_903.png


The statement in this image implies that svn trunk of osgPPU is compatible with 
the latest stable release of OSG. This is not correct.


It looks like the osgPPU 0.4 tag should be compatible with OSG 2.8.x. Maybe Art 
can comment on version compatibility?


(A compatibility matrix might be useful, sort of like what I have done with 
osgBullet:

http://code.google.com/p/osgbullet/wiki/CompatibilityMatrix
)

--
  -Paul Martz  Skew Matrix Software
   http://www.skew-matrix.com/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Jean-Sébastien Guay

Hi Art, Paul,


My external projects osgWorks and osgBullet are compatible with OSG
2.6.1 and later. osgWorks contains version-specific code in only two
places (to handle the OSG API changes in Registry and Traits that
occurred in OSG 2.6.0 and 2.8.0 respectively). And osgBullet contains no
version-specific code at all; all osgBullet code is 100% compatible with
OSG 2.6.1 and later.

So, my use of the C preprocessor for OSG compatibility is very
infrequent and is not a problem in itself. However, testing on different
versions can be a burden to external project managers, and that's a
decision you have to make.


Just to chime in with another data point, we generally want to keep our 
OSG graphics integration compatible with at least two generations of OSG 
(currently 2.6.x and 2.8.x), but in general we're compatible across the 
whole spectrum from 2.2 on (some features are not usable on such old 
versions but they're disabled by compile-time checks). We might be 
compatible with 2.0 as well, we just never checked (we moved from 1.2 to 
2.2 directly).


We use the OSG_VERSION_GREATER_OR_EQUAL and OSG_VERSION_LESS_THAN macros 
in some places, mostly where we derived a class to work around a bug we 
found in a given version of OSG, and also submitted the fix to the base 
osg:: class in parallel, so the next stable version contains the fix and 
doesn't need the derived class anymore. But they're used only 
sporadically, and the code is still very manageable and clear.


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Art Tevs
Hi Paul,

you are right, current svn trunk of osgPPU is not compatible with osg 2.8.3, 
thats true. But what I mean is what should external project developers do, if 
there is a branch with different API in the osg svn repository?

For example, current osg developer version is 2.9.8 which is not compatible to 
2.8.3. The version 2.8.3 came right a weak ago or so. The 2.9.8 and 2.9.7 osg 
versions exists longer than the 2.8.3 version. So as for my project I try to be 
compatible to the most youngest osg version. In this case this is the developer 
version in the trunk. 

However if some time ago there was a split into another branch it might became 
painful to have an external NodeKit compatible with all official osg branches 
that exists. I mean 2.8.3 is based on 2.8, so between 2.8 and 2.9 there was an 
API change, this is ok. However both versions 2.8.3 and 2.9.x were maintained 
in parallel. So for NodeKit developers this would mean we have to take care 
also on osg branches in our trunks, which might became painful. Therefor I just 
asked, which kind of solutions there might exists. 

But, ok, never mind, I will try to come up now with a solution to have the best 
of both worlds, new features and compatible API to the official stable release. 

art

P.S. On the osgPPU webpage there is a compatiblity list given. So, currently no 
stable realase exists for the newest osg stable release, but this will change 
in the next days ;)


Thank you!

Cheers,
Art

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





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


Re: [osg-users] [osgPPU] Can't compile svn version of osgPPU against osg 2.8.3

2010-04-21 Thread Paul Martz

Art Tevs wrote:
However if some time ago there was a split into another branch it might became painful to have an external NodeKit compatible with all official osg branches that exists. I mean 2.8.3 is based on 2.8, so between 2.8 and 2.9 there was an API change, this is ok. However both versions 2.8.3 and 2.9.x were maintained in parallel. So for NodeKit developers this would mean we have to take care also on osg branches in our trunks, which might became painful. Therefor I just asked, which kind of solutions there might exists. 


I, for one, would not expect any version of osgPPU to be compatible with OSG 
2.8.3 other than the same version of osgPPU that was compatible with 2.8.2. I 
think users should be able to use the same version of osgPPU and simply upgrade 
OSG from 2.8.2 to 2.8.3 to get the new plugins in 2.8.3. (But they will probably 
need to rebuild osgPPU because 2.8.3 is not binary compatible with 2.8.2.)


But, ok, never mind, I will try to come up now with a solution to have the best of both worlds, new features and compatible API to the official stable release. 


If you want to maintain compatibility with 2.8.x on osgPPU svn trunk, then that 
is certainly possible, and a worthy goal, but (in my opinion) it is entirely 
optional and not required for you to do so, because you already have a tagged 
osgPPU release that is compatible with OSG 2.8.x.


--
  -Paul Martz  Skew Matrix Software
   http://www.skew-matrix.com/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org