OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Test Paged database online

Goto page 1, 2  Next
 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Robert Osfield
Guest





PostPosted: Tue Oct 28, 2008 10:59 am    Post subject:
Test Paged database online
Reply with quote

Hi All,

Last night I uploaded a 547Mb paged database to openscenegraph.org.
The .ive files are all generated using zlib compression that is built
into the svn/trunk version of the OSG, you won't be able to load them
with any prior version of the OSG I'm afraid as the compression
support has just been introduced. To view the database you can use:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive


The database I generated with the svn/trunk version of
VirtualPlanetBuilder, using options to generate the compressed data,
to use non power of two textures for the highest res tiles, and
disabled mipmapping. These options all work to minimize the tile
sizes which in turn means that the data is better suited for streaming
over http.

The data itself is composed of the Nasa blue marble 1km data, with
high res insert in the bay area of california. You should be able to
find the Don Burn's local hang gliding hill that the osghangglide
example is based on, which in turn was the original inspiration for
the whole OpenSceneGraph odyssey. To help find this little insert
I've uploaded an animation path:

http://www.openscenegraph.org/data/earth_bayarea/bay.path

Grab this then run osgviewer with the path:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
-p bay.path

This will set up an AnimationPathManipulator that zooms you into the
high res insert, and then around the globe. Pressing '4' will take
you to the TerrainManipulator so you can then start exploring
manually, pressing '5' will take you back to the animation path.

The next little thing your can try is to populate a local file cache,
so the next time you load up the data you can pick up on locally cache
files rather than hitting the server.

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
--file-cache MyFileCache

Or via an env var:

export OSG_FILE_CACHE = /home/me/Data/MyFileCache # change to
setenv or set for your system...
osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive

Now this dataset is really a tiny one compared to what
VirtualPlanetBuilder is capable of building, one I routinely test
against is 20,000 times bigger, alas the data isn't public so you'll
just have to find your own data and build your databases for such a
Terrabyte database. All the tools are there for you, you just need to
add the data. In terms of runtime need to view the bigger datasets
there are no differences, osgviewer works for all of them equally.

Have fun.

Robert.


------------------
Post generated by Mail2Forum
Back to top
Lionel Lagarde
Guest





PostPosted: Tue Oct 28, 2008 1:49 pm    Post subject:
Test Paged database online
Reply with quote

Hi Robert,

osgviewer reports me:

DataInputStream::readCharArray(): Failed to read char value.

Do I need to do something to enable the zlib decompression ?

Robert Osfield wrote:
Quote:
Hi All,

Last night I uploaded a 547Mb paged database to openscenegraph.org.
The .ive files are all generated using zlib compression that is built
into the svn/trunk version of the OSG, you won't be able to load them
with any prior version of the OSG I'm afraid as the compression
support has just been introduced. To view the database you can use:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive


The database I generated with the svn/trunk version of
VirtualPlanetBuilder, using options to generate the compressed data,
to use non power of two textures for the highest res tiles, and
disabled mipmapping. These options all work to minimize the tile
sizes which in turn means that the data is better suited for streaming
over http.

The data itself is composed of the Nasa blue marble 1km data, with
high res insert in the bay area of california. You should be able to
find the Don Burn's local hang gliding hill that the osghangglide
example is based on, which in turn was the original inspiration for
the whole OpenSceneGraph odyssey. To help find this little insert
I've uploaded an animation path:

http://www.openscenegraph.org/data/earth_bayarea/bay.path

Grab this then run osgviewer with the path:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
-p bay.path

This will set up an AnimationPathManipulator that zooms you into the
high res insert, and then around the globe. Pressing '4' will take
you to the TerrainManipulator so you can then start exploring
manually, pressing '5' will take you back to the animation path.

The next little thing your can try is to populate a local file cache,
so the next time you load up the data you can pick up on locally cache
files rather than hitting the server.

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
--file-cache MyFileCache

Or via an env var:

export OSG_FILE_CACHE = /home/me/Data/MyFileCache # change to
setenv or set for your system...
osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive

Now this dataset is really a tiny one compared to what
VirtualPlanetBuilder is capable of building, one I routinely test
against is 20,000 times bigger, alas the data isn't public so you'll
just have to find your own data and build your databases for such a
Terrabyte database. All the tools are there for you, you just need to
add the data. In terms of runtime need to view the bigger datasets
there are no differences, osgviewer works for all of them equally.

Have fun.

Robert.





------------------
Post generated by Mail2Forum
Back to top
John Vidar Larring
Guest





PostPosted: Tue Oct 28, 2008 2:01 pm    Post subject:
Test Paged database online
Reply with quote

Hi Robert,

After compiling OSG svn trunk (linux 64bit), the following commands
worked like charm:

Quote:
wget http://www.openscenegraph.org/data/earth_bayarea/bay.path
osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
-p bay.path --file-cache MyFileCache

The second time I ran the viewer, it was obvious that the file cache was
being used.

Great features!
/ John

Robert Osfield wrote:
Quote:
Hi All,

Last night I uploaded a 547Mb paged database to openscenegraph.org.
The .ive files are all generated using zlib compression that is built
into the svn/trunk version of the OSG, you won't be able to load them
with any prior version of the OSG I'm afraid as the compression
support has just been introduced. To view the database you can use:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive


The database I generated with the svn/trunk version of
VirtualPlanetBuilder, using options to generate the compressed data,
to use non power of two textures for the highest res tiles, and
disabled mipmapping. These options all work to minimize the tile
sizes which in turn means that the data is better suited for streaming
over http.

The data itself is composed of the Nasa blue marble 1km data, with
high res insert in the bay area of california. You should be able to
find the Don Burn's local hang gliding hill that the osghangglide
example is based on, which in turn was the original inspiration for
the whole OpenSceneGraph odyssey. To help find this little insert
I've uploaded an animation path:

http://www.openscenegraph.org/data/earth_bayarea/bay.path

Grab this then run osgviewer with the path:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
-p bay.path

This will set up an AnimationPathManipulator that zooms you into the
high res insert, and then around the globe. Pressing '4' will take
you to the TerrainManipulator so you can then start exploring
manually, pressing '5' will take you back to the animation path.

The next little thing your can try is to populate a local file cache,
so the next time you load up the data you can pick up on locally cache
files rather than hitting the server.

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
--file-cache MyFileCache

Or via an env var:

export OSG_FILE_CACHE = /home/me/Data/MyFileCache # change to
setenv or set for your system...
osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive

Now this dataset is really a tiny one compared to what
VirtualPlanetBuilder is capable of building, one I routinely test
against is 20,000 times bigger, alas the data isn't public so you'll
just have to find your own data and build your databases for such a
Terrabyte database. All the tools are there for you, you just need to
add the data. In terms of runtime need to view the bigger datasets
there are no differences, osgviewer works for all of them equally.

Have fun.

Robert.




--
Best regards,
John
WeatherOne


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



------------------
Post generated by Mail2Forum
Back to top
Robert Osfield
Guest





PostPosted: Tue Oct 28, 2008 2:03 pm    Post subject:
Test Paged database online
Reply with quote

Hi Lionel,

On Tue, Oct 28, 2008 at 1:50 PM, Lionel Lagarde <> wrote:
Quote:
osgviewer reports me:

DataInputStream::readCharArray(): Failed to read char value.

Do I need to do something to enable the zlib decompression ?

You need to have zlib installed. If it is installed perhaps Cmake
need to be pushed to re-evaluate the dependencies - try removing the
OpenSceneGraph/CMakeLists.txt and then rebuild.

Robert.


------------------
Post generated by Mail2Forum
Back to top
Lionel Lagarde
Guest





PostPosted: Tue Oct 28, 2008 2:18 pm    Post subject:
Test Paged database online
Reply with quote

The ive plugin is built with zlib support.

There is a problem in the uncompress loop. The earth.ive size is 14976
bytes.
In the loop, the first read:

strm.avail_in = fin.readsome((char*)in, CHUNK);

reports me 12427 bytes read and the second 0 bytes.

Continuing investigation.

John Vidar Larring wrote:
Quote:
Hi Robert,

After compiling OSG svn trunk (linux 64bit), the following commands
worked like charm:

Quote:
wget http://www.openscenegraph.org/data/earth_bayarea/bay.path
osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
-p bay.path --file-cache MyFileCache

The second time I ran the viewer, it was obvious that the file cache
was being used.

Great features!
/ John

Robert Osfield wrote:
Quote:
Hi All,

Last night I uploaded a 547Mb paged database to openscenegraph.org.
The .ive files are all generated using zlib compression that is built
into the svn/trunk version of the OSG, you won't be able to load them
with any prior version of the OSG I'm afraid as the compression
support has just been introduced. To view the database you can use:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive


The database I generated with the svn/trunk version of
VirtualPlanetBuilder, using options to generate the compressed data,
to use non power of two textures for the highest res tiles, and
disabled mipmapping. These options all work to minimize the tile
sizes which in turn means that the data is better suited for streaming
over http.

The data itself is composed of the Nasa blue marble 1km data, with
high res insert in the bay area of california. You should be able to
find the Don Burn's local hang gliding hill that the osghangglide
example is based on, which in turn was the original inspiration for
the whole OpenSceneGraph odyssey. To help find this little insert
I've uploaded an animation path:

http://www.openscenegraph.org/data/earth_bayarea/bay.path

Grab this then run osgviewer with the path:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
-p bay.path

This will set up an AnimationPathManipulator that zooms you into the
high res insert, and then around the globe. Pressing '4' will take
you to the TerrainManipulator so you can then start exploring
manually, pressing '5' will take you back to the animation path.

The next little thing your can try is to populate a local file cache,
so the next time you load up the data you can pick up on locally cache
files rather than hitting the server.

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
--file-cache MyFileCache

Or via an env var:

export OSG_FILE_CACHE = /home/me/Data/MyFileCache # change to
setenv or set for your system...
osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive

Now this dataset is really a tiny one compared to what
VirtualPlanetBuilder is capable of building, one I routinely test
against is 20,000 times bigger, alas the data isn't public so you'll
just have to find your own data and build your databases for such a
Terrabyte database. All the tools are there for you, you just need to
add the data. In terms of runtime need to view the bigger datasets
there are no differences, osgviewer works for all of them equally.

Have fun.

Robert.







------------------
Post generated by Mail2Forum
Back to top
Lionel Lagarde
Guest





PostPosted: Tue Oct 28, 2008 3:00 pm    Post subject:
Test Paged database online
Reply with quote

Curiously, the readsome function fail to read data (return value is 0),
but fin.eof() returns false.

I've tried to loop until some data are read but it does not work :

do {
strm.avail_in = fin.readsome((char*)in, CHUNK);
while (strm.avail_in == 0 && !fin.eof());

It is an infinite loop.


The behavior is the same using a local file. Maybe my zlib doesn't work.



Lionel Lagarde wrote:
Quote:
The ive plugin is built with zlib support.

There is a problem in the uncompress loop. The earth.ive size is 14976
bytes.
In the loop, the first read:

strm.avail_in = fin.readsome((char*)in, CHUNK);

reports me 12427 bytes read and the second 0 bytes.

Continuing investigation.

John Vidar Larring wrote:
Quote:
Hi Robert,

After compiling OSG svn trunk (linux 64bit), the following commands
worked like charm:

Quote:
wget http://www.openscenegraph.org/data/earth_bayarea/bay.path
osgviewer
http://www.openscenegraph.org/data/earth_bayarea/earth.ive -p
bay.path --file-cache MyFileCache

The second time I ran the viewer, it was obvious that the file cache
was being used.

Great features!
/ John

Robert Osfield wrote:
Quote:
Hi All,

Last night I uploaded a 547Mb paged database to openscenegraph.org.
The .ive files are all generated using zlib compression that is built
into the svn/trunk version of the OSG, you won't be able to load them
with any prior version of the OSG I'm afraid as the compression
support has just been introduced. To view the database you can use:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive


The database I generated with the svn/trunk version of
VirtualPlanetBuilder, using options to generate the compressed data,
to use non power of two textures for the highest res tiles, and
disabled mipmapping. These options all work to minimize the tile
sizes which in turn means that the data is better suited for streaming
over http.

The data itself is composed of the Nasa blue marble 1km data, with
high res insert in the bay area of california. You should be able to
find the Don Burn's local hang gliding hill that the osghangglide
example is based on, which in turn was the original inspiration for
the whole OpenSceneGraph odyssey. To help find this little insert
I've uploaded an animation path:

http://www.openscenegraph.org/data/earth_bayarea/bay.path

Grab this then run osgviewer with the path:

osgviewer
http://www.openscenegraph.org/data/earth_bayarea/earth.ive
-p bay.path

This will set up an AnimationPathManipulator that zooms you into the
high res insert, and then around the globe. Pressing '4' will take
you to the TerrainManipulator so you can then start exploring
manually, pressing '5' will take you back to the animation path.

The next little thing your can try is to populate a local file cache,
so the next time you load up the data you can pick up on locally cache
files rather than hitting the server.

osgviewer
http://www.openscenegraph.org/data/earth_bayarea/earth.ive
--file-cache MyFileCache

Or via an env var:

export OSG_FILE_CACHE = /home/me/Data/MyFileCache # change to
setenv or set for your system...
osgviewer
http://www.openscenegraph.org/data/earth_bayarea/earth.ive

Now this dataset is really a tiny one compared to what
VirtualPlanetBuilder is capable of building, one I routinely test
against is 20,000 times bigger, alas the data isn't public so you'll
just have to find your own data and build your databases for such a
Terrabyte database. All the tools are there for you, you just need to
add the data. In terms of runtime need to view the bigger datasets
there are no differences, osgviewer works for all of them equally.

Have fun.

Robert.









------------------
Post generated by Mail2Forum
Back to top
Robert Osfield
Guest





PostPosted: Tue Oct 28, 2008 3:45 pm    Post subject:
Test Paged database online
Reply with quote

Hi Lionel,

The readsome() returns if data isn't available yet, it doesn't wait
like read. You could try changing the code across to using read() and
gcount() to find out how many bytes have been read.

What platform are you working on?

Robert.

On Tue, Oct 28, 2008 at 3:00 PM, Lionel Lagarde <> wrote:
Quote:
Curiously, the readsome function fail to read data (return value is 0),
but fin.eof() returns false.

I've tried to loop until some data are read but it does not work :

do {
strm.avail_in = fin.readsome((char*)in, CHUNK);
while (strm.avail_in == 0 && !fin.eof());

It is an infinite loop.


The behavior is the same using a local file. Maybe my zlib doesn't work.



Lionel Lagarde wrote:
Quote:

The ive plugin is built with zlib support.

There is a problem in the uncompress loop. The earth.ive size is 14976
bytes.
In the loop, the first read:

strm.avail_in = fin.readsome((char*)in, CHUNK);

reports me 12427 bytes read and the second 0 bytes.

Continuing investigation.

John Vidar Larring wrote:
Quote:

Hi Robert,

After compiling OSG svn trunk (linux 64bit), the following commands
worked like charm:

Quote:
wget http://www.openscenegraph.org/data/earth_bayarea/bay.path
osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive -p
bay.path --file-cache MyFileCache

The second time I ran the viewer, it was obvious that the file cache was
being used.

Great features!
/ John

Robert Osfield wrote:
Quote:

Hi All,

Last night I uploaded a 547Mb paged database to openscenegraph.org.
The .ive files are all generated using zlib compression that is built
into the svn/trunk version of the OSG, you won't be able to load them
with any prior version of the OSG I'm afraid as the compression
support has just been introduced. To view the database you can use:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive


The database I generated with the svn/trunk version of
VirtualPlanetBuilder, using options to generate the compressed data,
to use non power of two textures for the highest res tiles, and
disabled mipmapping. These options all work to minimize the tile
sizes which in turn means that the data is better suited for streaming
over http.

The data itself is composed of the Nasa blue marble 1km data, with
high res insert in the bay area of california. You should be able to
find the Don Burn's local hang gliding hill that the osghangglide
example is based on, which in turn was the original inspiration for
the whole OpenSceneGraph odyssey. To help find this little insert
I've uploaded an animation path:

http://www.openscenegraph.org/data/earth_bayarea/bay.path

Grab this then run osgviewer with the path:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
-p bay.path

This will set up an AnimationPathManipulator that zooms you into the
high res insert, and then around the globe. Pressing '4' will take
you to the TerrainManipulator so you can then start exploring
manually, pressing '5' will take you back to the animation path.

The next little thing your can try is to populate a local file cache,
so the next time you load up the data you can pick up on locally cache
files rather than hitting the server.

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
--file-cache MyFileCache

Or via an env var:

export OSG_FILE_CACHE = /home/me/Data/MyFileCache # change to
setenv or set for your system...
osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive

Now this dataset is really a tiny one compared to what
VirtualPlanetBuilder is capable of building, one I routinely test
against is 20,000 times bigger, alas the data isn't public so you'll
just have to find your own data and build your databases for such a
Terrabyte database. All the tools are there for you, you just need to
add the data. In terms of runtime need to view the bigger datasets
there are no differences, osgviewer works for all of them equally.

Have fun.

Robert.










------------------
Post generated by Mail2Forum
Back to top
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Tue Oct 28, 2008 4:10 pm    Post subject:
Test Paged database online
Reply with quote

Hi Robert,

Quote:
Last night I uploaded a 547Mb paged database to openscenegraph.org.

Nice, can't check it out yet as I'm waiting on a full compile but will
check it out as soon as I can.

About the animation path:

Quote:
Grab this then run osgviewer with the path:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
-p bay.path

Can the animation path also be gotten by http? If so, we could use the
following all-powerful command line:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
-p http://www.openscenegraph.org/data/earth_bayarea/bay.path
--file-cache MyFileCache

That would be pretty cool!

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Tue Oct 28, 2008 4:13 pm    Post subject:
Test Paged database online
Reply with quote

Hi Robert,

Quote:
The readsome() returns if data isn't available yet, it doesn't wait
like read. You could try changing the code across to using read() and
gcount() to find out how many bytes have been read.

What platform are you working on?

Just to add another report, I get the same error as Lionel:

DataInputStream::readCharArray(): Failed to read char value.

I'm using the zlib binary that was in Mike's 3rdParty binaries for
Visual Studio 8.0 SP1, which I think is the one that was compiled with
libpng (not built separately). Not sure if that has any bearing on the
problem, just thought I'd mention it.

I don't have time to debug this myself, so I'll hang back and let others
puzzle it out. I can give plenty of moral support though! Smile

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Gerrick Bivins
Guest





PostPosted: Tue Oct 28, 2008 4:16 pm    Post subject:
Test Paged database online
Reply with quote

I get this error on Mac OSX 10.5

DataInputStream::readCharArray(): Failed to read char value.
./bin/osgviewer.app/Contents/MacOS/osgviewer: No data loaded

Gerrick


On 10/28/08 11:13 AM, "Jean-Sébastien Guay"
<> wrote:

Quote:
Hi Robert,

Quote:
The readsome() returns if data isn't available yet, it doesn't wait
like read. You could try changing the code across to using read() and
gcount() to find out how many bytes have been read.

What platform are you working on?

Just to add another report, I get the same error as Lionel:

DataInputStream::readCharArray(): Failed to read char value.

I'm using the zlib binary that was in Mike's 3rdParty binaries for
Visual Studio 8.0 SP1, which I think is the one that was compiled with
libpng (not built separately). Not sure if that has any bearing on the
problem, just thought I'd mention it.

I don't have time to debug this myself, so I'll hang back and let others
puzzle it out. I can give plenty of moral support though! Smile

J-S



------------------
Post generated by Mail2Forum
Back to top
Serge Lages
Guest





PostPosted: Tue Oct 28, 2008 4:21 pm    Post subject:
Test Paged database online
Reply with quote

Hi all,

Can't test myself currently but I'll try as soon as I can.
About the error, are you behind proxies or something similar ? Is it possible to be a connection problem ?

On Tue, Oct 28, 2008 at 5:16 PM, Gerrick Bivins < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
I get this error on Mac OSX 10.5

DataInputStream::readCharArray(): Failed to read char value.

./bin/osgviewer.app/Contents/MacOS/osgviewer: No data loaded

Gerrick


On 10/28/08 11:13 AM, "Jean-Sébastien Guay"
< (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hi Robert,

Quote:
The readsome() returns if data isn't available yet, it doesn't wait
like read. You could try changing the code across to using read() and
gcount() to find out how many bytes have been read.

What platform are you working on?

Just to add another report, I get the same error as Lionel:

DataInputStream::readCharArray(): Failed to read char value.

I'm using the zlib binary that was in Mike's 3rdParty binaries for
Visual Studio 8.0 SP1, which I think is the one that was compiled with
libpng (not built separately). Not sure if that has any bearing on the
problem, just thought I'd mention it.

I don't have time to debug this myself, so I'll hang back and let others
puzzle it out. I can give plenty of moral support though! Smile

J-S



_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org





--
Serge Lages
http://www.tharsis-software.com

------------------
Post generated by Mail2Forum
Back to top
Robert Osfield
Guest





PostPosted: Tue Oct 28, 2008 4:24 pm    Post subject:
Test Paged database online
Reply with quote

Hi J-S,

On Tue, Oct 28, 2008 at 4:10 PM, Jean-Sébastien Guay
<> wrote:
Quote:
Can the animation path also be gotten by http? If so, we could use the
following all-powerful command line:

osgviewer http://www.openscenegraph.org/data/earth_bayarea/earth.ive
-p http://www.openscenegraph.org/data/earth_bayarea/bay.path --file-cache
MyFileCache

That would be pretty cool!

This won't work right now as the curl plugin only loads images and
nodes, and the animation path code just does a straight ofstream of
the filename provided. So right now you'll need to do a wget on the
path.

Robert.


------------------
Post generated by Mail2Forum
Back to top
Lionel Lagarde
Guest





PostPosted: Tue Oct 28, 2008 4:25 pm    Post subject:
Test Paged database online
Reply with quote

I don't think that is a connection problem. libcurl download the file integrally in a stringstream.
The stringstream is then given to to ive ReaderWriter.

Serge Lages wrote:
Quote:
Hi all,

Can't test myself currently but I'll try as soon as I can.
About the error, are you behind proxies or something similar ? Is it possible to be a connection problem ?

On Tue, Oct 28, 2008 at 5:16 PM, Gerrick Bivins < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
I get this error on Mac OSX 10.5

DataInputStream::readCharArray(): Failed to read char value.

./bin/osgviewer.app/Contents/MacOS/osgviewer: No data loaded

Gerrick


On 10/28/08 11:13 AM, "Jean-Sébastien Guay"
< (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hi Robert,

Quote:
The readsome() returns if data isn't available yet, it doesn't wait
like read. You could try changing the code across to using read() and
gcount() to find out how many bytes have been read.

What platform are you working on?

Just to add another report, I get the same error as Lionel:

DataInputStream::readCharArray(): Failed to read char value.

I'm using the zlib binary that was in Mike's 3rdParty binaries for
Visual Studio 8.0 SP1, which I think is the one that was compiled with
libpng (not built separately). Not sure if that has any bearing on the
problem, just thought I'd mention it.

I don't have time to debug this myself, so I'll hang back and let others
puzzle it out. I can give plenty of moral support though! Smile

J-S


_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org





--
Serge Lages
http://www.tharsis-software.com
Quote:


_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
Robert Osfield
Guest





PostPosted: Tue Oct 28, 2008 5:32 pm    Post subject:
Test Paged database online
Reply with quote

Hi All,

I have just merged a fix for the read error from Lionel Lagrade - he
implemented read() and gcount() usage rather than my previous
readsome() as it looks like this function isn't consistently
implemented across platforms.

Could all those who've had read problems on the online database do an
svn update and let me know how you get on.

Thanks,
Robert.


------------------
Post generated by Mail2Forum
Back to top
christophe (christophe loustaunau)
User


Joined: 20 Feb 2009
Posts: 34
Location: France

PostPosted: Tue Oct 28, 2008 6:11 pm    Post subject:
Test Paged database online
Reply with quote

Hi,

Before the update, I get also the error : readCharArray(): Failed to read char value.

But now everithing works well !
Very cool stuff !

Regards.

On Tue, Oct 28, 2008 at 6:30 PM, Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi All,

I have just merged a fix for the read error from Lionel Lagrade - he
implemented read() and gcount() usage rather than my previous
readsome() as it looks like this function isn't consistently
implemented across platforms.

Could all those who've had read problems on the online database do an
svn update and let me know how you get on.

Thanks,
Robert.

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org





--
Christophe Loustaunau.

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts obj plugin does not support diffuse ... Ralf Habacker Submission 0 Tue Nov 14, 2017 4:18 pm View latest post
No new posts osgDB::ImagePaged don't have "Pa... tang General 0 Mon Nov 13, 2017 2:51 am View latest post
No new posts [osganimation branch] Review, test, c... mp3butcher General 39 Thu Aug 31, 2017 2:08 pm View latest post
No new posts Please test OpenSceneGraph-3.4 in pre... Raizel General 27 Wed Jul 26, 2017 12:23 pm View latest post
No new posts Wait for Database pager to complete robertosfield General 72 Sun Jul 09, 2017 9:27 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP