Discussion:
[osg-users] [osgPlugins] osgconv osgjs bug file not found
Sid Kerling
2018-07-31 17:21:17 UTC
Permalink
Hi,

Apologies if this is not the right place for bug reports.

I am trying to convert a model in osgjs format with an external, merged binary file to obj. Textures, transparency, vertex colors etc. are irrelevant; all I care about is the shape. Unfortunately, osgconv reports "file not found." I reproduced this issue with the cow sample from the OpenSceneGraph-Data git repo (after converting it to osgjs, bouncing off of obj because osg to osgjs is also apparently broken).


Code:

$ ls
cow.osg Images

$ osgconv -O 'useExternalBinaryArray mergeAllBinaryFiles' cow.osg cow.frosg.osgjs
options useExternalBinaryArray mergeAllBinaryFiles
Fatal nb colors 1 != 7772
can't save osgjs file
Unable to write to output stream

$ osgconv -O 'useExternalBinaryArray mergeAllBinaryFiles' cow.osg cow.obj
Data written to 'cow.obj'.

$ osgconv -O 'useExternalBinaryArray mergeAllBinaryFiles' cow.obj cow.osgjs
options useExternalBinaryArray mergeAllBinaryFiles
TypedArray Uint16Array cow.bin 34.0078 kb
TypedArray Float32Array cow.bin 38.5195 kb
TypedArray Float32Array cow.bin 25.6797 kb
TypedArray Float32Array cow.bin 38.5195 kb
Use a merged binary file 4096 mb
Data written to 'cow.osgjs'.

$ ls
cow.bin cow.frosg.osgjs cow.mtl cow.obj cow.osg cow.osgjs Images

$ osgconv cow.osgjs cow_out.osg
Error reading file cow.osgjs: file not found
Error no data loaded.

$ osgconv cow.osgjs cow_out.ogj
Error reading file cow.osgjs: file not found
Error no data loaded.

$




Since you do not distribute binary releases, I can only test my local compilation, so it could theoretically be a problem with my build environs. I get identical results in two test environs: cygwin on win7 x64 and gcc on ubuntu 16 x64.

Thank you!

Cheers,
Sid

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74445#74445
Robert Osfield
2018-08-20 13:21:34 UTC
Permalink
Hi Sid,

The OSG's osgjs plugin exists to convert to .osgjs not to read from
.osgjs. At worst this plugin isn't reporting this lack of support, so
if there is bug it's unhelpful error report.

As a general comment, when reporting issues it's best to specify which
version of the OSG that you are using, as bug tend to only exist with
specific versions.`

Robert.
Post by Sid Kerling
Hi,
Apologies if this is not the right place for bug reports.
I am trying to convert a model in osgjs format with an external, merged binary file to obj. Textures, transparency, vertex colors etc. are irrelevant; all I care about is the shape. Unfortunately, osgconv reports "file not found." I reproduced this issue with the cow sample from the OpenSceneGraph-Data git repo (after converting it to osgjs, bouncing off of obj because osg to osgjs is also apparently broken).
$ ls
cow.osg Images
$ osgconv -O 'useExternalBinaryArray mergeAllBinaryFiles' cow.osg cow.frosg.osgjs
options useExternalBinaryArray mergeAllBinaryFiles
Fatal nb colors 1 != 7772
can't save osgjs file
Unable to write to output stream
$ osgconv -O 'useExternalBinaryArray mergeAllBinaryFiles' cow.osg cow.obj
Data written to 'cow.obj'.
$ osgconv -O 'useExternalBinaryArray mergeAllBinaryFiles' cow.obj cow.osgjs
options useExternalBinaryArray mergeAllBinaryFiles
TypedArray Uint16Array cow.bin 34.0078 kb
TypedArray Float32Array cow.bin 38.5195 kb
TypedArray Float32Array cow.bin 25.6797 kb
TypedArray Float32Array cow.bin 38.5195 kb
Use a merged binary file 4096 mb
Data written to 'cow.osgjs'.
$ ls
cow.bin cow.frosg.osgjs cow.mtl cow.obj cow.osg cow.osgjs Images
$ osgconv cow.osgjs cow_out.osg
Error reading file cow.osgjs: file not found
Error no data loaded.
$ osgconv cow.osgjs cow_out.ogj
Error reading file cow.osgjs: file not found
Error no data loaded.
$
Since you do not distribute binary releases, I can only test my local compilation, so it could theoretically be a problem with my build environs. I get identical results in two test environs: cygwin on win7 x64 and gcc on ubuntu 16 x64.
Thank you!
Cheers,
Sid
------------------
http://forum.openscenegraph.org/viewtopic.php?p=74445#74445
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Loading...