jsc3d icon indicating copy to clipboard operation
jsc3d copied to clipboard

Load obj file Url

Open GoogleCodeExporter opened this issue 10 years ago • 2 comments

Hi, I want a question:
2 method replaceSceneFromUrl and SceneUrl require url finish by ".obj".
Example:
viewer.setParameter('SceneUrl', 'http://example.com/models/ptero.obj');
It's work.
viewer.setParameter('SceneUrl', 'http://example.com/models/ptero.file');
Not work
viewer.setParameter('SceneUrl', 'http://example.com/models/ptero');
Not work
But 3 file: ptero.obj, ptero.file and ptero has response same return is obj file

Original issue reported on code.google.com by [email protected] on 15 Jul 2014 at 2:09

GoogleCodeExporter avatar Jul 29 '15 04:07 GoogleCodeExporter

As in its implementation, Jsc3d meeds the file extension name to identify type 
of a data file and selects a proper loader for it. See 
http://code.google.com/p/jsc3d/source/browse/trunk/jsc3d/jsc3d.js#975 and 
http://code.google.com/p/jsc3d/source/browse/trunk/jsc3d/jsc3d.js#4846 for 
details.

Original comment by [email protected] on 16 Jul 2014 at 5:49

GoogleCodeExporter avatar Jul 29 '15 04:07 GoogleCodeExporter

Thank. I config routing format: 'http://example.com/models/ptero.obj' and this 
return stream. It's work

Original comment by [email protected] on 16 Jul 2014 at 10:46

GoogleCodeExporter avatar Jul 29 '15 04:07 GoogleCodeExporter