jackyoyyf / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Load obj file Url #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 fabien...@gmail.com on 15 Jul 2014 at 2:09

GoogleCodeExporter commented 9 years ago
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 Humu2...@gmail.com on 16 Jul 2014 at 5:49

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

Original comment by fabien...@gmail.com on 16 Jul 2014 at 10:46