Re: [osg-users] [osgPlugins] Problems with dae plugin

2019-04-11 Thread John Richardson
Hello,

The Apple VR/AR philosophy seems to officially focus on DAE files. Unofficially 
it seems that other 3-D model files types are OK.

So, this solution strategy is very welcome. Thanks to the OSG community.

John

-Original Message-
From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf 
Of Nikita Petrov
Sent: Wednesday, April 10, 2019 4:37 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] [osgPlugins] Problems with dae plugin

Ok, thank you, OSG ASSIMP seems to work for me.
I still don't have textures in OSG but also there are no errors, so it could be 
problem with the dae file itself.

It is pretty easy to build so I will recommend everyone to try this plugin if 
you have problems with dae. Just build, copy osgdb_assimp to osgPlugins 
directory and rename your dae file to .dae.assimp.



Chris Hanson wrote:
> That's where my expertise ends.
> 
> That COLLADA library is the anti-Christ.
> 
> 
> If it doesn't work, consider building Rui Wang's OSG ASSIMP reader/writer ( 
> https://github.com/xarray/osgRecipes/wiki 
> (https://github.com/xarray/osgRecipes/wiki) ) which uses a different and 
> probably better-supported COLLADA/dae library.
> 
> 
> On Mon, Apr 8, 2019 at 7:14 PM Nikita Petrov < ()> wrote:
> 
> 
> > Thanks for suggestion, I've checked for DLLs and strangely some were not 
> > loaded from PATH variable paths.
> > I copied the needed ones to OSG bin and now it launches.
> > 
> > But still dae is not loading. It throws an exception on the second "if" of 
> > D:OSGbasesourcescollada-domdomsrcdaedaeIOPluginCommon.cpp:
> > 
> > 
> > Code:
> > 
> >   if (parentElement == NULL) {
> >   // This is the root element. Check the COLLADA version.
> >   daeURI *xmlns = (daeURI*)(element->getMeta()->getMetaAttribute( 
> > "xmlns" )->getWritableMemory( element ));
> >   if ( strcmp( xmlns->getURI(), 
> > element->getDAE()->getColladaNamespace() ) != 0 ) {
> >   // Invalid COLLADA version
> >   daeErrorHandler::get()->handleError("Trying to load an 
> > invalid COLLADA version for this DOM build!");
> >   return NULL;
> >   }
> >   }
> > 
> > 
> > 
> > I will also attach screenshot with this exception and a call stack.
> > 
> > I use this string path as an argument to osgviewer.exe: D:/OSG/123/test.dae.
> > 
> > I guess that this question is not directly connected with OSG (because 
> > error occurs in collada-dom library), but maybe someone could confirm this 
> > error with latest sources or show me what am I doing wrong.
> > 
> > 
> > Chris Hanson wrote:
> > 
> > > This usually means the plugin was not found or failed to load.
> > > 
> > > Can you trace with something like SysInternals tools and see if the DLL 
> > > file is found and what other dependency files it might have tried to load?
> > > 
> > > 
> > > On Mon, Apr 8, 2019 at 5:50 PM Nikita Petrov < ()> wrote:
> > > 
> > > 
> > > 
> > > > Hi,
> > > > 
> > > > I am trying to build dae plugin to open dae files with osgviewer.
> > > > Everything builds great, but when I try to open dae file (I tried 
> > > > several) I get the following error:
> > > > 
> > > > 
> > > > Code:
> > > > Error reading file .test.dae: read error (Could not find plugin to read 
> > > > objects from file ".test.dae".)
> > > > 
> > > > 
> > > > I use stable OSG tags/3.6.3. (http://3.6.3.) (http://3.6.3 
> > > > (http://3.6.3).)
> > > > Windows 10 x64.
> > > > Visual Studio 2015 Update 3.
> > > > Almost all 3rdParty dependencies are built with vcpkg. GDAL, tiff, 
> > > > proj.4, geotiff are built from sources.
> > > > 
> > > > For Collada-dom library I tried 2 options:
> > > > 
> > > > - use vcpkg to build collada-dom (built DLL filename: 
> > > > collada-dom2.5-dp-vc130-mt.dll).
> > > > - build collada-dom from sources (built DLL filename: 
> > > > collada-dom2.5-dp-vc100-mt.dll).
> > > > 
> > > > I copied the collada DLL to OSG bin folder.
> > > > 
> > > > Is it possible that dae plugin is broken? What am I doing wrong?
> > > > 
> > > > Thank you!
> > > > 
> > > > Best regards,
> > > > Nikita[/list]
> > > > 
> > 

Re: [osg-users] [osgPlugins] Problems with dae plugin

2019-04-10 Thread Nikita Petrov
Ok, thank you, OSG ASSIMP seems to work for me.
I still don't have textures in OSG but also there are no errors, so it could be 
problem with the dae file itself.

It is pretty easy to build so I will recommend everyone to try this plugin if 
you have problems with dae. Just build, copy osgdb_assimp to osgPlugins 
directory and rename your dae file to .dae.assimp.



Chris Hanson wrote:
> That's where my expertise ends.
> 
> That COLLADA library is the anti-Christ.
> 
> 
> If it doesn't work, consider building Rui Wang's OSG ASSIMP reader/writer ( 
> https://github.com/xarray/osgRecipes/wiki 
> (https://github.com/xarray/osgRecipes/wiki) ) which uses a different and 
> probably better-supported COLLADA/dae library.
> 
> 
> On Mon, Apr 8, 2019 at 7:14 PM Nikita Petrov < ()> wrote:
> 
> 
> > Thanks for suggestion, I've checked for DLLs and strangely some were not 
> > loaded from PATH variable paths.
> > I copied the needed ones to OSG bin and now it launches.
> > 
> > But still dae is not loading. It throws an exception on the second "if" of 
> > D:OSGbasesourcescollada-domdomsrcdaedaeIOPluginCommon.cpp:
> > 
> > 
> > Code:
> > 
> >   if (parentElement == NULL) {
> >           // This is the root element. Check the COLLADA version.
> >           daeURI *xmlns = (daeURI*)(element->getMeta()->getMetaAttribute( 
> > "xmlns" )->getWritableMemory( element ));
> >           if ( strcmp( xmlns->getURI(), 
> > element->getDAE()->getColladaNamespace() ) != 0 ) {
> >               // Invalid COLLADA version
> >               daeErrorHandler::get()->handleError("Trying to load an 
> > invalid COLLADA version for this DOM build!");
> >               return NULL;
> >           }
> >       }
> > 
> > 
> > 
> > I will also attach screenshot with this exception and a call stack.
> > 
> > I use this string path as an argument to osgviewer.exe: D:/OSG/123/test.dae.
> > 
> > I guess that this question is not directly connected with OSG (because 
> > error occurs in collada-dom library), but maybe someone could confirm this 
> > error with latest sources or show me what am I doing wrong.
> > 
> > 
> > Chris Hanson wrote:
> > 
> > > This usually means the plugin was not found or failed to load.
> > > 
> > > Can you trace with something like SysInternals tools and see if the DLL 
> > > file is found and what other dependency files it might have tried to load?
> > > 
> > > 
> > > On Mon, Apr 8, 2019 at 5:50 PM Nikita Petrov < ()> wrote:
> > > 
> > > 
> > > 
> > > > Hi,
> > > > 
> > > > I am trying to build dae plugin to open dae files with osgviewer.
> > > > Everything builds great, but when I try to open dae file (I tried 
> > > > several) I get the following error:
> > > > 
> > > > 
> > > > Code:
> > > > Error reading file .test.dae: read error (Could not find plugin to read 
> > > > objects from file ".test.dae".)
> > > > 
> > > > 
> > > > I use stable OSG tags/3.6.3. (http://3.6.3.) (http://3.6.3 
> > > > (http://3.6.3).)
> > > > Windows 10 x64.
> > > > Visual Studio 2015 Update 3.
> > > > Almost all 3rdParty dependencies are built with vcpkg. GDAL, tiff, 
> > > > proj.4, geotiff are built from sources.
> > > > 
> > > > For Collada-dom library I tried 2 options:
> > > > 
> > > > - use vcpkg to build collada-dom (built DLL filename: 
> > > > collada-dom2.5-dp-vc130-mt.dll).
> > > > - build collada-dom from sources (built DLL filename: 
> > > > collada-dom2.5-dp-vc100-mt.dll).
> > > > 
> > > > I copied the collada DLL to OSG bin folder.
> > > > 
> > > > Is it possible that dae plugin is broken? What am I doing wrong?
> > > > 
> > > > Thank you!
> > > > 
> > > > Best regards,
> > > > Nikita[/list]
> > > > 
> > > > --
> > > > Read this topic online here:
> > > > http://forum.openscenegraph.org/viewtopic.php?p=75795#75795 
> > > > (http://forum.openscenegraph.org/viewtopic.php?p=75795#75795) 
> > > > (http://forum.openscenegraph.org/viewtopic.php?p=75795#75795 
> > > > (http://forum.openscenegraph.org/viewtopic.php?p=75795#75795))
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > ___
> > > > osg-users mailing list
> > > >   ()
> > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > > >  
> > > > (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > > >  
> > > > (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > > >  
> > > > (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org))
> > > > 
> > > > 
> > > 
> > > 
> > > 
> > > -- 
> > > Chris 'Xenon' Hanson, omo sanza lettere.  http://www.alphapixel.com/ 
> > > (http://www.alphapixel.com/) (http://www.alphapixel.com/ 
> > > (http://www.alphapixel.com/))
> > > Training • Consulting • Contracting
> > > 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 
> > > • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
> > > Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • 
> > > Telemetry 

Re: [osg-users] [osgPlugins] Problems with dae plugin

2019-04-08 Thread Chris Hanson
That's where my expertise ends.

That COLLADA library is the anti-Christ.

If it doesn't work, consider building Rui Wang's OSG ASSIMP reader/writer (
https://github.com/xarray/osgRecipes/wiki ) which uses a different and
probably better-supported COLLADA/dae library.

On Mon, Apr 8, 2019 at 7:14 PM Nikita Petrov 
wrote:

> Thanks for suggestion, I've checked for DLLs and strangely some were not
> loaded from PATH variable paths.
> I copied the needed ones to OSG bin and now it launches.
>
> But still dae is not loading. It throws an exception on the second "if" of
> D:\OSG\base\sources\collada-dom\dom\src\dae\daeIOPluginCommon.cpp:
>
>
> Code:
>
>   if (parentElement == NULL) {
>   // This is the root element. Check the COLLADA version.
>   daeURI *xmlns = (daeURI*)(element->getMeta()->getMetaAttribute(
> "xmlns" )->getWritableMemory( element ));
>   if ( strcmp( xmlns->getURI(),
> element->getDAE()->getColladaNamespace() ) != 0 ) {
>   // Invalid COLLADA version
>   daeErrorHandler::get()->handleError("Trying to load an
> invalid COLLADA version for this DOM build!");
>   return NULL;
>   }
>   }
>
>
>
> I will also attach screenshot with this exception and a call stack.
>
> I use this string path as an argument to osgviewer.exe:
> D:/OSG/123/test.dae.
>
> I guess that this question is not directly connected with OSG (because
> error occurs in collada-dom library), but maybe someone could confirm this
> error with latest sources or show me what am I doing wrong.
>
>
> Chris Hanson wrote:
> > This usually means the plugin was not found or failed to load.
> >
> > Can you trace with something like SysInternals tools and see if the DLL
> file is found and what other dependency files it might have tried to load?
> >
> >
> > On Mon, Apr 8, 2019 at 5:50 PM Nikita Petrov < ()> wrote:
> >
> >
> > > Hi,
> > >
> > > I am trying to build dae plugin to open dae files with osgviewer.
> > > Everything builds great, but when I try to open dae file (I tried
> several) I get the following error:
> > >
> > >
> > > Code:
> > > Error reading file .test.dae: read error (Could not find plugin to
> read objects from file ".test.dae".)
> > >
> > >
> > > I use stable OSG tags/3.6.3. (http://3.6.3.)
> > > Windows 10 x64.
> > > Visual Studio 2015 Update 3.
> > > Almost all 3rdParty dependencies are built with vcpkg. GDAL, tiff,
> proj.4, geotiff are built from sources.
> > >
> > > For Collada-dom library I tried 2 options:
> > >
> > > - use vcpkg to build collada-dom (built DLL filename:
> collada-dom2.5-dp-vc130-mt.dll).
> > > - build collada-dom from sources (built DLL filename:
> collada-dom2.5-dp-vc100-mt.dll).
> > >
> > > I copied the collada DLL to OSG bin folder.
> > >
> > > Is it possible that dae plugin is broken? What am I doing wrong?
> > >
> > > Thank you!
> > >
> > > Best regards,
> > > Nikita[/list]
> > >
> > > --
> > > Read this topic online here:
> > > http://forum.openscenegraph.org/viewtopic.php?p=75795#75795 (
> http://forum.openscenegraph.org/viewtopic.php?p=75795#75795)
> > >
> > >
> > >
> > >
> > >
> > > ___
> > > osg-users mailing list
> > >  ()
> > >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> )
> > >
> >
> >
> >
> > --
> > Chris 'Xenon' Hanson, omo sanza lettere.  http://www.alphapixel.com/ (
> http://www.alphapixel.com/)
> > Training • Consulting • Contracting
> > 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL
> 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
> > Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
> osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
> iPhone/iPad/iOS • Android
> > @alphapixel (https://twitter.com/alphapixel) facebook.com/alphapixel (
> http://facebook.com/alphapixel) (775) 623-PIXL [7495]
> >
> >  --
> > Post generated by Mail2Forum
>
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=75797#75797
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/screenshot_2_622.png
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing 

Re: [osg-users] [osgPlugins] Problems with dae plugin

2019-04-08 Thread Nikita Petrov
Thanks for suggestion, I've checked for DLLs and strangely some were not loaded 
from PATH variable paths.
I copied the needed ones to OSG bin and now it launches.

But still dae is not loading. It throws an exception on the second "if" of 
D:\OSG\base\sources\collada-dom\dom\src\dae\daeIOPluginCommon.cpp:


Code:

  if (parentElement == NULL) {
  // This is the root element. Check the COLLADA version.
  daeURI *xmlns = (daeURI*)(element->getMeta()->getMetaAttribute( 
"xmlns" )->getWritableMemory( element ));
  if ( strcmp( xmlns->getURI(), 
element->getDAE()->getColladaNamespace() ) != 0 ) {
  // Invalid COLLADA version
  daeErrorHandler::get()->handleError("Trying to load an invalid 
COLLADA version for this DOM build!");
  return NULL;
  }
  }



I will also attach screenshot with this exception and a call stack.

I use this string path as an argument to osgviewer.exe: D:/OSG/123/test.dae.

I guess that this question is not directly connected with OSG (because error 
occurs in collada-dom library), but maybe someone could confirm this error with 
latest sources or show me what am I doing wrong.


Chris Hanson wrote:
> This usually means the plugin was not found or failed to load.
> 
> Can you trace with something like SysInternals tools and see if the DLL file 
> is found and what other dependency files it might have tried to load?
> 
> 
> On Mon, Apr 8, 2019 at 5:50 PM Nikita Petrov < ()> wrote:
> 
> 
> > Hi,
> > 
> > I am trying to build dae plugin to open dae files with osgviewer.
> > Everything builds great, but when I try to open dae file (I tried several) 
> > I get the following error:
> > 
> > 
> > Code:
> > Error reading file .test.dae: read error (Could not find plugin to read 
> > objects from file ".test.dae".)
> > 
> > 
> > I use stable OSG tags/3.6.3. (http://3.6.3.)
> > Windows 10 x64.
> > Visual Studio 2015 Update 3.
> > Almost all 3rdParty dependencies are built with vcpkg. GDAL, tiff, proj.4, 
> > geotiff are built from sources.
> > 
> > For Collada-dom library I tried 2 options:
> > 
> > - use vcpkg to build collada-dom (built DLL filename: 
> > collada-dom2.5-dp-vc130-mt.dll).
> > - build collada-dom from sources (built DLL filename: 
> > collada-dom2.5-dp-vc100-mt.dll).
> > 
> > I copied the collada DLL to OSG bin folder.
> > 
> > Is it possible that dae plugin is broken? What am I doing wrong?
> > 
> > Thank you!
> > 
> > Best regards,
> > Nikita[/list]
> > 
> > --
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=75795#75795 
> > (http://forum.openscenegraph.org/viewtopic.php?p=75795#75795)
> > 
> > 
> > 
> > 
> > 
> > ___
> > osg-users mailing list
> >  ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
> > (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > 
> 
> 
> 
> -- 
> Chris 'Xenon' Hanson, omo sanza lettere.  http://www.alphapixel.com/ 
> (http://www.alphapixel.com/)
> Training • Consulting • Contracting
> 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • 
> GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
> Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • 
> Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • 
> Android
> @alphapixel (https://twitter.com/alphapixel) facebook.com/alphapixel 
> (http://facebook.com/alphapixel) (775) 623-PIXL [7495]
> 
>  --
> Post generated by Mail2Forum


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75797#75797




Attachments: 
http://forum.openscenegraph.org//files/screenshot_2_622.png


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPlugins] Problems with dae plugin

2019-04-08 Thread Chris Hanson
This usually means the plugin was not found or failed to load.

Can you trace with something like SysInternals tools and see if the DLL
file is found and what other dependency files it might have tried to load?

On Mon, Apr 8, 2019 at 5:50 PM Nikita Petrov 
wrote:

> Hi,
>
> I am trying to build dae plugin to open dae files with osgviewer.
> Everything builds great, but when I try to open dae file (I tried several)
> I get the following error:
>
>
> Code:
> Error reading file .\test.dae: read error (Could not find plugin to read
> objects from file ".\test.dae".)
>
>
> I use stable OSG tags/3.6.3.
> Windows 10 x64.
> Visual Studio 2015 Update 3.
> Almost all 3rdParty dependencies are built with vcpkg. GDAL, tiff, proj.4,
> geotiff are built from sources.
>
> For Collada-dom library I tried 2 options:
>
> - use vcpkg to build collada-dom (built DLL filename:
> collada-dom2.5-dp-vc130-mt.dll).
> - build collada-dom from sources (built DLL filename:
> collada-dom2.5-dp-vc100-mt.dll).
>
> I copied the collada DLL to OSG bin folder.
>
> Is it possible that dae plugin is broken? What am I doing wrong?
>
> Thank you!
>
> Best regards,
> Nikita[/list]
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=75795#75795
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [osgPlugins] Problems with dae plugin

2019-04-08 Thread Nikita Petrov
Hi,

I am trying to build dae plugin to open dae files with osgviewer.
Everything builds great, but when I try to open dae file (I tried several) I 
get the following error:


Code:
Error reading file .\test.dae: read error (Could not find plugin to read 
objects from file ".\test.dae".)


I use stable OSG tags/3.6.3.
Windows 10 x64.
Visual Studio 2015 Update 3.
Almost all 3rdParty dependencies are built with vcpkg. GDAL, tiff, proj.4, 
geotiff are built from sources.

For Collada-dom library I tried 2 options:

- use vcpkg to build collada-dom (built DLL filename: 
collada-dom2.5-dp-vc130-mt.dll).
- build collada-dom from sources (built DLL filename: 
collada-dom2.5-dp-vc100-mt.dll).

I copied the collada DLL to OSG bin folder.

Is it possible that dae plugin is broken? What am I doing wrong?

Thank you!

Best regards,
Nikita[/list]

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75795#75795





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org