Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2013-08-05 Thread Sebastian Messerschmidt
Hi Robert, Sorry for reviving this old thread. But I stumbled across the exact same problem, and solving this issue with the FindFileCallback is a real PITA. I tried the patch Katharina provided (there is still a typo in here, but nevertheless, it solves the issue.) The problem with the

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2013-08-05 Thread Sebastian Messerschmidt
Hi Robert, I'm preparing a submission right now. Don't hold your breath ... Hi Sebastien, I don't really have any strong opinions, nor a submission which to review. If you send a full modified file into osg-submissions I can review it and give you a more informed decions. Cheers, Robert.

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2013-08-05 Thread Robert Osfield
Hi Sebastien, I don't really have any strong opinions, nor a submission which to review. If you send a full modified file into osg-submissions I can review it and give you a more informed decions. Cheers, Robert. On 5 August 2013 15:40, Sebastian Messerschmidt sebastian.messerschm...@gmx.de

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-05 Thread Alexandre Amalric
Hi Brede, My goal isn't to load Openflight files as fast as possible but to convert them in IVE file format using the least memory consumption as possible, ie not reading useless texture. I think it will be great for the community to bring this change, don't you ? I will try (as soon as I have

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-05 Thread Brede Johansen
Alexandre, Even if textures in the OpenFlight texture palette are read into memory doesn't mean they are added to the osg scenegraph. It would be helpful if you can provide two OpenFlight test models, one of them with additional unused textures in the palette. Then we can verify if they differ

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-05 Thread Alexandre Amalric
Hi Brede, The problem isn't in the size of the converted ive file but in the memory consumption osgconv.exe use when converting this kind of openflight files. The resulting ive file isn't bigger than expected but the process to convert the file use too much memory than really needed. 2010/3/5

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-05 Thread Alexandre Amalric
Hi Brede, I do not run out of memory, but the process to convert those files is not optimal, it takes much memory than needed and it takes more time to convert because of reading all useless textures. Here at work, I'm asked to optimize the process of our internal files convertion process (speed

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-05 Thread Brede Johansen
Alexandre, Ok, I was put off track because you said My goal isn't to load Openflight files as fast as possible ... If you decide to fix the OpenFlight files you might be lucky and find a tool that does the job. http://www.presagis.com/peer_forum/viewthread/523/ Brede On Fri, Mar 5, 2010 at

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-03 Thread Trajce (Nick) Nikolov
Systems -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Paul Martz Sent: Monday, March 01, 2010 10:29 AM To: OpenSceneGraph Users Subject: Re: [osg-users] [osgPlugins] OpenFlight - Palette Records

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-03 Thread Alexandre Amalric
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Paul Martz Sent: Monday, March 01, 2010 10:29 AM To: OpenSceneGraph Users Subject: Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback Alexandre Amalric wrote: Hi osg-users, I have

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-03 Thread Andreas Ekstrand
Subject: Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback Alexandre Amalric wrote: Hi osg-users, I have a question concerning the palette texture record. When

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-03 Thread Brede Johansen
Hi Alexandre, On Wed, Mar 3, 2010 at 11:50 AM, Alexandre Amalric alex.pix...@gmail.com wrote: Maybe that the original author from this plugin can tell me if the texture palette record has to be read or not, so we may decide to skip it. I'm the original author of the OpenFlight reader, the

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-02 Thread Alexandre Amalric
- Palette Records prevent using of ReaderWriter Callback Alexandre Amalric wrote: Hi osg-users, I have a question concerning the palette texture record. When converting a flt model which texture palette contains useless texture, they are even read. Is there a way to read only used

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-02 Thread Andreas Ekstrand
...@lists.openscenegraph.org mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Paul Martz Sent: Monday, March 01, 2010 10:29 AM To: OpenSceneGraph Users Subject: Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback Alexandre Amalric wrote

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-01 Thread Alexandre Amalric
Hi osg-users, I have a question concerning the palette texture record. When converting a flt model which texture palette contains useless texture, they are even read. Is there a way to read only used texture. Let's say I have a simple model file using 1 texture but my texture palette in

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-01 Thread Paul Martz
Alexandre Amalric wrote: Hi osg-users, I have a question concerning the palette texture record. When converting a flt model which texture palette contains useless texture, they are even read. Is there a way to read only used texture. Let's say I have a simple model file using 1 texture but

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2010-03-01 Thread Tomlinson, Gordon
Sent: Monday, March 01, 2010 10:29 AM To: OpenSceneGraph Users Subject: Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback Alexandre Amalric wrote: Hi osg-users, I have a question concerning the palette texture record. When converting a flt model

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2009-09-22 Thread Katharina Plugge
Hi Robert, thanks for the fast answer. The idea to use a findFileCallback is not bad and I think it would be sufficient for my case. But in my opinion a change in the PlugIn would nevertheless be a better solution. Using a FindFileCallback does not allow for the differentiation if the file was

[osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2009-09-21 Thread Katharina Plugge
Hello, the OpenFlight-Plugin prevents reacting on missing Textures via a ReadFileCallback, because osgDB::readRefImageFile (called by function readTexture) is not called if the file does not exist. Would be great if this could be changed. A fix could look like this (file PaletteRecords.cpp,

Re: [osg-users] [osgPlugins] OpenFlight - Palette Records prevent using of ReaderWriter Callback

2009-09-21 Thread Robert Osfield
HI Katharina, In the svn/trunk version of the OSG I added support for overriding the find file operation using an osgDB::FindFileCallback, that you attach to the osgDB::Registry or an osgDB::Options object. Perhaps this would be the best way for you to intercept and do something special when