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 

Problems with dae plugin


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
John Richardson
Guest





PostPosted: Thu Apr 11, 2019 5:00 pm    Post subject:
Problems with dae plugin
Reply with quote

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:] On Behalf Of Nikita Petrov
Sent: Wednesday, April 10, 2019 4:37 PM
To:
Subject: Re: [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:
Quote:
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:


Quote:
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:

Quote:
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:



Quote:
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 • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel (https://twitter.com/alphapixel (https://twitter.com/alphapixel)) facebook.com/alphapixel (http://facebook.com/alphapixel) (http://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 (http://forum.openscenegraph.org/viewtopic.php?p=75797#75797)




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


_______________________________________________
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=75808#75808










------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Page 1 of 1

 
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 [PARTIALLY SOLVED] Problems with dae ... Nikkitta Plugins [osgPlugins] 4 Mon Apr 08, 2019 3:51 pm View latest post
No new posts Particular Build Problems with OSG. Zachary1234 Build system [build] 5 Wed Mar 27, 2019 7:12 am View latest post
No new posts Add search location for textures in F... bbjorn Submission 1 Mon Feb 04, 2019 2:22 pm View latest post
No new posts Precipitation problems bclay General 4 Wed Dec 19, 2018 9:50 pm View latest post
No new posts OSG GLTF loader plugin Chris Hanson General 0 Thu Dec 06, 2018 9:55 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