Yes, it works fine now.
I can use earth file in my application, thanks again for your great work
(both osg and osgEarth!)

Fabien 

-----Original Message-----
From: Robert Osfield [mailto:[email protected]] 
Sent: lundi 26 janvier 2009 17:33
To: Fabien Lavignotte
Cc: [email protected]; OpenSceneGraph Users
Subject: Re: [osg-users] Problem when loading local then distant png
file

Hi Fabien,

Have you now tested the latest svn/trunk?

Ribert.

On Mon, Jan 26, 2009 at 3:41 PM, Fabien Lavignotte
<[email protected]> wrote:
> Hum sorry Robert to bother you, but i look at the changes from Jason :
> he fix the bug!
> OpenSceneGraph evolves too fast for me :) Next time i will check the 
> really last version of the trunk.
>
> Fabien
>
>
> -----Original Message-----
> From: Robert Osfield [mailto:[email protected]]
> Sent: lundi 26 janvier 2009 16:24
> To: [email protected]; Fabien Lavignotte
> Cc: OpenSceneGraph Users
> Subject: Re: [osg-users] Problem when loading local then distant png 
> file
>
> Hi Jason & Fabien,
>
> I'm introducing Jason into discussion in the hope that he'll have some

> ideas about what is going wrong as Jason's recently made changes to 
> Registry.cpp that affect the handling of http file references.
> Jason's also one of the authors of osgEarth too so doubly relevant :-)
>
> I have a couple of other OSG bugs I'm chasing up right now so will 
> happily defer to others if they can fix this bug :-)
>
> If not then I'll step it and make sure it gets fixed prior to OSG 2.8.
>
> Robert.
>
> ---------- Forwarded message ----------
> From: Fabien Lavignotte <[email protected]>
> Date: Mon, Jan 26, 2009 at 1:29 PM
> Subject: [osg-users] Problem when loading local then distant png file
> To: [email protected]
>
>
> While trying osgEarth (great work by the way), I find a OSG problem.
> osgEarth works correctly with osgviewer but not with our own viewer.
> After some investigations with the debugger, it was because we are 
> loading a png file before loading the earth file.
> And then when osgEarth try to load distant png files, it calls the 
> method osgDB::Registry::read. It tries first to load with existing 
> loaded plugins.
> So it tries with osgdb_png plugin that returns a FILE_NOT_FOUND.
> Finally, the method returns a FILE_NOT_FOUND because the curl plugin 
> is not yet loaded and will never be... the code to load it is just 
> after the FILE_NOT_FOUND return...
> Surely, other image plugin have the same behavior, it is not only a 
> png problem.
>
> I have made a small modification to osgviewer to reproduce the 
> problem, just loading a png file at line 46. With this line, loading 
> google_maps.earth does not work, comment it and then it works...
>
> I think of different ways to fix that:
>  - modify the Registry::read method to handle file with server adress 
> differently
>  - modify each image plugin to return a FILE_NOT_HANDLED when the file

> name contains server adress
>  - force to load the curl plugin at the start somewhere in my code... 
> or maybe in osgDB
>
> Not sure which is the best?
>
> Fabien Lavignotte
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
> or
> g
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
>

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to