[osg-users] [osgPlugins] osgconv osgjs bug file not found

Robert Osfield robert.osfield at gmail.com
Mon Aug 20 06:21:34 PDT 2018


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.
On Mon, 20 Aug 2018 at 13:44, Sid Kerling <memory.thrasher at gmail.com> wrote:
>
> 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
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list