Re: [osg-users] Removing the tgz, osgtgz and zip plugins
Hi all, We already have a ReaderWriter using zlib, reading from stream and from file, writing to file. But we compile it with our Makefile system, not with CMake. I can post the source right now, if someone have time to do the OSG CMake part. Cheers, Johan. Robert Osfield a écrit : Hi Michael, Using libzip would be reasonable thing to do. Thanks to the Cmake build system it's easy to pick up on optional dependencies, and if you don't have them that plugin simply won't compile so it won't affect end users that don't need the functionality. Cheers, Robert. On Sun, Jan 4, 2009 at 5:18 PM, Michael Bosse' metis...@gmail.com wrote: On Thu, Dec 18, 2008 at 4:43 AM, Ulrich Hertlein u.hertl...@sandbox.de wrote: On 17/12/08 10:56 AM, Jason Daly wrote: Ulrich Hertlein wrote: I agree that the implementation is hacky but the functionality is definitively useful (speaking for zip files only): - they are a common way to distribute a complete model (non-OSG objects, textures, etc.) - they can be easily created by the artists, no need to have OSG installed - usable by other packages; .osg, .osga, and .ive are leaf file formats if you will That, and couldn't they be re-implemented using zlib (which is already necessary for the png plugin)? That's probably the prefered solution for everybody. One problem that might rise up is that not all plugins support reading from std::stream but require to read directly from a file. /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org Before I start working on this in my spare time, would it be acceptable to utilize libzip in the final plugin? Libzip depends only on the use of zlib and has a complete implementation of the zip file format. Otherwise, using only zlib would result in a very nontrivial and redundant implementation of a zip utility library. It is only necessary to make war with five things: with the maladies of the body, with the ignorances of the mind, with the passions of the body, with the seditions of the city, with the discords of families. - Tacitus The desire for safety stands against every great and noble enterprise. - Tacitus Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin Numquam ponenda est pluralitas sine necessitate. - William of Ockham ___ 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 -- Johan Nouvel, RD Engineer http://www.archivideo.com tel : +33 (0)2 99 86 30 20 ARCHIVIDEO, 40 rue des Veyettes, 35000 RENNES, FRANCE ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing the tgz, osgtgz and zip plugins
Hi Robert, Unfortunately our plugin read only .gz file, not .zip nor .tar.gz. I didn't know about osg 2.7 .gz plugin, we always use osg 1.2. We hope to upgrade to 2.X in the next months, and I will closer look at CMake in the same time. Regards, Johan. Robert Osfield a écrit : Hi Johan, On Thu, Jan 15, 2009 at 9:22 AM, Johan Nouvel openscenegr...@archivideo.com wrote: We already have a ReaderWriter using zlib, reading from stream and from file, writing to file. The svn + 2.7.x dev series has a zlib based .gz plugin. I doesn't support .zip files though. Does yours handle .zip and .tar.gz? But we compile it with our Makefile system, not with CMake. I can post the source right now, if someone have time to do the OSG CMake part. The CMake part will be trivial - one only needs to look at the existing CmakeLists.txt file for the src/osgPlugins/gz plugin, it's pretty likely that it's more straight forward than your Makefile. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Johan Nouvel, RD Engineer http://www.archivideo.com tel : +33 (0)2 99 86 30 20 ARCHIVIDEO, 40 rue des Veyettes, 35000 RENNES, FRANCE ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing the tgz, osgtgz and zip plugins
Hi Xam, There is no password support in the zip plugin. Robert. On Tue, Jan 13, 2009 at 6:45 PM, Xam maxim.serebren...@usma.edu wrote: Since we are talking about zip files here ... is there anyway to open a password protected zipfile in OSG? I've tried everything i could think of, but i found no way to pass the password to the file loading command. Is it possible? whats the syntax? -- Read this topic online here: http://osgforum.tevs.eu/viewtopic.php?p=4527#4527 ___ 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] Removing the tgz, osgtgz and zip plugins
Since we are talking about zip files here ... is there anyway to open a password protected zipfile in OSG? I've tried everything i could think of, but i found no way to pass the password to the file loading command. Is it possible? whats the syntax? -- Read this topic online here: http://osgforum.tevs.eu/viewtopic.php?p=4527#4527 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing the tgz, osgtgz and zip plugins
Hi Michael, Using libzip would be reasonable thing to do. Thanks to the Cmake build system it's easy to pick up on optional dependencies, and if you don't have them that plugin simply won't compile so it won't affect end users that don't need the functionality. Cheers, Robert. On Sun, Jan 4, 2009 at 5:18 PM, Michael Bosse' metis...@gmail.com wrote: On Thu, Dec 18, 2008 at 4:43 AM, Ulrich Hertlein u.hertl...@sandbox.de wrote: On 17/12/08 10:56 AM, Jason Daly wrote: Ulrich Hertlein wrote: I agree that the implementation is hacky but the functionality is definitively useful (speaking for zip files only): - they are a common way to distribute a complete model (non-OSG objects, textures, etc.) - they can be easily created by the artists, no need to have OSG installed - usable by other packages; .osg, .osga, and .ive are leaf file formats if you will That, and couldn't they be re-implemented using zlib (which is already necessary for the png plugin)? That's probably the prefered solution for everybody. One problem that might rise up is that not all plugins support reading from std::stream but require to read directly from a file. /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org Before I start working on this in my spare time, would it be acceptable to utilize libzip in the final plugin? Libzip depends only on the use of zlib and has a complete implementation of the zip file format. Otherwise, using only zlib would result in a very nontrivial and redundant implementation of a zip utility library. It is only necessary to make war with five things: with the maladies of the body, with the ignorances of the mind, with the passions of the body, with the seditions of the city, with the discords of families. - Tacitus The desire for safety stands against every great and noble enterprise. - Tacitus Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin Numquam ponenda est pluralitas sine necessitate. - William of Ockham ___ 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] Removing the tgz, osgtgz and zip plugins
On Thu, Dec 18, 2008 at 4:43 AM, Ulrich Hertlein u.hertl...@sandbox.de wrote: On 17/12/08 10:56 AM, Jason Daly wrote: Ulrich Hertlein wrote: I agree that the implementation is hacky but the functionality is definitively useful (speaking for zip files only): - they are a common way to distribute a complete model (non-OSG objects, textures, etc.) - they can be easily created by the artists, no need to have OSG installed - usable by other packages; .osg, .osga, and .ive are leaf file formats if you will That, and couldn't they be re-implemented using zlib (which is already necessary for the png plugin)? That's probably the prefered solution for everybody. One problem that might rise up is that not all plugins support reading from std::stream but require to read directly from a file. /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org Before I start working on this in my spare time, would it be acceptable to utilize libzip in the final plugin? Libzip depends only on the use of zlib and has a complete implementation of the zip file format. Otherwise, using only zlib would result in a very nontrivial and redundant implementation of a zip utility library. It is only necessary to make war with five things: with the maladies of the body, with the ignorances of the mind, with the passions of the body, with the seditions of the city, with the discords of families. - Tacitus The desire for safety stands against every great and noble enterprise. - Tacitus Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin Numquam ponenda est pluralitas sine necessitate. - William of Ockham ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing the tgz, osgtgz and zip plugins
On 17/12/08 10:56 AM, Jason Daly wrote: Ulrich Hertlein wrote: I agree that the implementation is hacky but the functionality is definitively useful (speaking for zip files only): - they are a common way to distribute a complete model (non-OSG objects, textures, etc.) - they can be easily created by the artists, no need to have OSG installed - usable by other packages; .osg, .osga, and .ive are leaf file formats if you will That, and couldn't they be re-implemented using zlib (which is already necessary for the png plugin)? That's probably the prefered solution for everybody. One problem that might rise up is that not all plugins support reading from std::stream but require to read directly from a file. /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing the tgz, osgtgz and zip plugins
I doubt very seriously that it would take much effort to port these to a less hackish method. If I get some free time, i'll look into doing it. It is only necessary to make war with five things: with the maladies of the body, with the ignorances of the mind, with the passions of the body, with the seditions of the city, with the discords of families. - Tacitus The desire for safety stands against every great and noble enterprise. - Tacitus Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin Numquam ponenda est pluralitas sine necessitate. - William of Ockham On Wed, Dec 17, 2008 at 1:42 AM, Gordon Tomlinson gor...@gordon-tomlinson.com wrote: I use them and would not want to lose them, IVE, OSGA is not a suitable replacement for me I don't see why they need to removed they work( maybe not to everyone's liking but they work ), they're useful to some As to re-implementation , who's going to pay my company for the time and expenses to re-rite these go through all r Testing ands sign off procedures ? Why change something that is not broken, might not be the best solution but they work Capture the magic of Christmas this year see http://www.capturethemagic.com __ Gordon Tomlinson gor...@gordontomlinson.com IM: gordon3db...@3dscenegraph.com www.vis-sim.com www.gordontomlinson.com __ -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jason Daly Sent: Tuesday, December 16, 2008 11:56 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Removing the tgz, osgtgz and zip plugins Ulrich Hertlein wrote: I agree that the implementation is hacky but the functionality is definitively useful (speaking for zip files only): - they are a common way to distribute a complete model (non-OSG objects, textures, etc.) - they can be easily created by the artists, no need to have OSG installed - usable by other packages; .osg, .osga, and .ive are leaf file formats if you will That, and couldn't they be re-implemented using zlib (which is already necessary for the png plugin)? --J ___ 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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing the tgz, osgtgz and zip plugins
Gordon Tomlinson wrote: As to re-implementation , who's going to pay my company for the time and expenses to re-rite these go through all r Testing ands sign off procedures ? I don't understand this point. If you get the same functionality, just with a real library implementation and not a hacky system() call, why would you or your company care? Why change something that is not broken, might not be the best solution but they work To me, because it's not the best solution is a good enough reason to change them (to reimplement them in a non-hacky way). I agree that they should not be removed, though. --J ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing the tgz, osgtgz and zip plugins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gordon Tomlinson wrote: I use them and would not want to lose them, IVE, OSGA is not a suitable replacement for me I don't see why they need to removed they work( maybe not to everyone's liking but they work ), they're useful to some As to re-implementation , who's going to pay my company for the time and expenses to re-rite these go through all r Testing ands sign off procedures ? Why change something that is not broken, might not be the best solution but they work Completely seconded. Maybe they should be reimplemented using a better method, but to throw out support for zip files would be a mistake - it is infinitely easier to move models around in a zip file than to explain to a designer how to make an osga file or ive file, requiring extra tools and so on. It is also easier to archive such models - everything is in one place and I can always open them. IVE or osga formats can change over time and I cannot load them back into a modeling tool. I think these should be kept and perhaps fixed. Regards, Jan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFJSOYEn11XseNj94gRAlLOAKCH0CsenXYQXdabzb4Txlxc15p/qgCgrNTQ HrcqqLag/v1RDl7nFpxIy0M= =5Kdv -END PGP SIGNATURE- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Removing the tgz, osgtgz and zip plugins
Hi All, The tgz, osgtgz and zip plugins have been part of the OSG from the very early days, but they are really hacky using a system(..) call to unpack the archive file into a temporary directory, then call readNodeFile on the files enclosed, then remove the temporary directory. In the early days this was kinda useful for quick a dirty wrapping up of models that contain .osg and .rgb files but these days we have the .osga archive format and the .ive binary format that support these requirements in far more slick and reusable way - without the hacky system calls or temporary files. So... my proposal is to remove them from svn/trunk and place them in the deprecated annex of the svn repository. Thoughts? (You'll need a good reason ... for me to keep any one of them ;-) Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing the tgz, osgtgz and zip plugins
Hi Robert, (You'll need a good reason ... for me to keep any one of them ;-) I have a good reason for you to ditch them: I agree with all your points. :-) 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] Removing the tgz, osgtgz and zip plugins
Yeah, trash'em! Sukender, whose proper english language has worn off. PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing the tgz, osgtgz and zip plugins
Hi all, Quoting Robert Osfield robert.osfi...@gmail.com: The tgz, osgtgz and zip plugins have been part of the OSG from the very early days, but they are really hacky using a system(..) call to unpack the archive file into a temporary directory, then call readNodeFile on the files enclosed, then remove the temporary directory. In the early days this was kinda useful for quick a dirty wrapping up of models that contain .osg and .rgb files but these days we have the .osga archive format and the .ive binary format that support these requirements in far more slick and reusable way - without the hacky system calls or temporary files. ... (You'll need a good reason ... for me to keep any one of them ;-) I agree that the implementation is hacky but the functionality is definitively useful (speaking for zip files only): - they are a common way to distribute a complete model (non-OSG objects, textures, etc.) - they can be easily created by the artists, no need to have OSG installed - usable by other packages; .osg, .osga, and .ive are leaf file formats if you will Just my $.02 Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing the tgz, osgtgz and zip plugins
Ulrich Hertlein wrote: I agree that the implementation is hacky but the functionality is definitively useful (speaking for zip files only): - they are a common way to distribute a complete model (non-OSG objects, textures, etc.) - they can be easily created by the artists, no need to have OSG installed - usable by other packages; .osg, .osga, and .ive are leaf file formats if you will That, and couldn't they be re-implemented using zlib (which is already necessary for the png plugin)? --J ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Removing the tgz, osgtgz and zip plugins
I use them and would not want to lose them, IVE, OSGA is not a suitable replacement for me I don't see why they need to removed they work( maybe not to everyone's liking but they work ), they're useful to some As to re-implementation , who's going to pay my company for the time and expenses to re-rite these go through all r Testing ands sign off procedures ? Why change something that is not broken, might not be the best solution but they work Capture the magic of Christmas this year see http://www.capturethemagic.com __ Gordon Tomlinson gor...@gordontomlinson.com IM: gordon3db...@3dscenegraph.com www.vis-sim.com www.gordontomlinson.com __ -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jason Daly Sent: Tuesday, December 16, 2008 11:56 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Removing the tgz, osgtgz and zip plugins Ulrich Hertlein wrote: I agree that the implementation is hacky but the functionality is definitively useful (speaking for zip files only): - they are a common way to distribute a complete model (non-OSG objects, textures, etc.) - they can be easily created by the artists, no need to have OSG installed - usable by other packages; .osg, .osga, and .ive are leaf file formats if you will That, and couldn't they be re-implemented using zlib (which is already necessary for the png plugin)? --J ___ 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