You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Loading http://dhtx.de/it/ek/Projekt%203D-Drucker.html on a smaller device
like Netbooks.
2.
3.
What is the expected output? What do you see instead?
On my Desktop PC i see my "3D Printer under Dev." very nicely rendered.
On my Netbook (Asus EEEPC) i see only the empty canvas.
Please provide any additional information below.
I've investigated with Firebug (see on bottom)but i can't find the exact
reason. I think too much Data perhaps!?
Is it planned to work with zipped Data?
Please answer, i'm an enthusiastic user of your Script!
LG
Dieter Hardt
Antwort-Header
Accept-Ranges bytes
Cache-Control max-age=1209600
Connection Keep-Alive
Content-Length 3285454
Content-Type text/plain
Date Wed, 03 Jul 2013 12:55:18 GMT
Etag "a8cac002-3221ce-4e08da09c1859"
Expires Wed, 17 Jul 2013 12:55:18 GMT
Keep-Alive timeout=2, max=200
Last-Modified Tue, 02 Jul 2013 20:59:56 GMT
Server Apache
Anfrage-HeaderQuelltext anzeigen
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Cache-Control max-age=0
Connection keep-alive
DNT 1
Host dhtx.de
Origin http://www.dhtx.de
Referer http://www.dhtx.de/it/ek/Projekt%203D-Drucker.html
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20100101 Firefox/22.0
Original issue reported on code.google.com by DieterHa...@googlemail.com on 3 Jul 2013 at 1:27
The text was updated successfully, but these errors were encountered:
It seems to be a cross-domain issue. In
http://www.dhtx.de/it/ek/Projekt%203D-Drucker.html I found this:
viewer.setParameter('SceneUrl', 'http://dhtx.de/it/ek/Dieterbot.obj');
As you can see in the implementation, jsc3d uses XmlHttpRequest to load object
models. An absolute path description such as
'http://dhtx.de/it/ek/Dieterbot.obj' will cause a cross-domain resource
request. This will success only when 1) The server side must be configured
properly to response to this kind of requests; 2) The browser has to support
CORS feature.
The soluiton is quite straightforward. Just put the obj/mtl files (also image
files if any) into the same domain with your page and change the model path
which will be send to jsc3d to a relative form:
viewer.setParameter('SceneUrl', '...(your-model-path)/Dieterbot.obj');
This makes it work correctly since the cross-domian request is removed.
If your application has to employ cross-domian requests anyway, you may find
this link http://enable-cors.org/ very helpful on how to make it work.
Original comment by Humu2...@gmail.com on 3 Jul 2013 at 4:44
Original issue reported on code.google.com by
DieterHa...@googlemail.com
on 3 Jul 2013 at 1:27The text was updated successfully, but these errors were encountered: