Welcome Guest Search | Active Topics | Sign In | Register

Loading a WebGL object using three.js and ColladaLoader fails Options
Stein Gran
Posted: Tuesday, May 10, 2016 5:06:18 PM
Rank: Newbie
Groups: Member

Joined: 5/10/2016
Posts: 2
Hi,

We're evaluating EO.WebBrowser, and are trying to load a WebGL model using three.js and ColladaLoader. This is a solution which is currently working in CefSharp, and we're trying to make it work in EO.WebBrowser. The result however is the following error message in the console: Uncaught TypeError: Cannot read property 'querySelectorAll' of null. This happens in line 224 of ColladaLoader.js: https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/ColladaLoader.js#L224

Is there any known problems loading WebGL models using three.js and ColladaLoader?

Best,
Stein Gran
eo_support
Posted: Tuesday, May 10, 2016 6:19:51 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Can you provide a test page for us to take a look? See here for how to send test page/project to us:

http://www.essentialobjects.com/forum/test_project.aspx

Thanks!
Stein Gran
Posted: Wednesday, May 11, 2016 4:47:26 AM
Rank: Newbie
Groups: Member

Joined: 5/10/2016
Posts: 2
Hi, we have now researched this further on our end, and the root problem seems to be that we (from Javascript) are calling a method in .NET and expect to get a value back from this method. But we get null.

Given the documentation on Javascript extensions (http://www.essentialobjects.com/doc/webbrowser/advanced/jsext.aspx), we notice that all examples are for information being passed from Javascript to .NET. Our scenario is that we are calling a .NET method from Javacsript and expect this method to return a value. Is this scenario possible with the EO.Webbrowser component?
eo_support
Posted: Wednesday, May 11, 2016 7:28:05 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

You would need to set e.ReturnValue from your .NET event handler to return a value to the JavaScript side. Note that you can only return simple values, not complex .NET objects.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.