Open GoogleCodeExporter opened 8 years ago
[deleted comment]
The STL loading procedure simply does not work in IE9. The modified edition
that utilizes emulated canvas used to support loading STL data in IE. But it
depends on a snippet of vbscript to parse the binary content which is proved
very inefficient. So it is not merged to current release.
This is a known issue. Please see here
http://code.google.com/p/jsc3d/issues/detail?id=12 for a detailed explanation.
Original comment by Humu2...@gmail.com
on 19 Mar 2013 at 6:55
Thanks for that. Is this something that will ever work for ie9 in a future
release?
In that link in the post above, the guy reckons he has a solution. Have you
tried it?
Original comment by undercut...@gmail.com
on 19 Mar 2013 at 7:13
That doesn't work in IE9 but performs amazingly efficient in IE10.
If you really need a solution for IE9, you can merge this code snippet
http://code.google.com/p/jsc3d/source/browse/trunk/jsc3d/jsc3d_ie.js#4208 from
jsc3d_ie.js to the latest releaseed jsc3d.js and select which method should be
used by detecting if current browser is IE.
Original comment by Humu2...@gmail.com
on 20 Mar 2013 at 7:24
Thanks for that. As I am not a coding expert, how many lines should be inserted
i.e line 4208 to ?.
And where in the code should I insert it. Also, where do I select a method?
Many thanks
Simon
Original comment by undercut...@gmail.com
on 20 Mar 2013 at 9:45
Hi, Simon:
I made a modified copy that works for IE9 as well as a simple demo. Check it in
the attachment of this issue.
However, it only works fine with very small STL models(hundred kbs). As the
file size goes larger, it tends to take too long to parse the binary stuff and
may lead to temporary no-response of the whole page. Be sure to use it with
care.
Original comment by Humu2...@gmail.com
on 20 Mar 2013 at 2:43
Attachments:
I need it for larger files unfortunately. Your demo comes out as just a shaded
box on its own on my ie9 also.
Original comment by undercut...@gmail.com
on 20 Mar 2013 at 4:08
It seems no problem in my own test. Did you open the demo on desktop? It won't
work that way because IE blocks requests on local host. You should upload the
demo to a server and access it as usual web pages.
Original comment by Humu2...@gmail.com
on 20 Mar 2013 at 4:44
ah right yes, I did it local. So to summarise for larger STL models, there is
no solution for ie9 or older?
That is a shame as most people have ie9 or less at the moment so I wont be able
to use it for stl
Original comment by undercut...@gmail.com
on 20 Mar 2013 at 6:10
I'm afraid so. IE's implementation of XHR is not standard. It treats binary
response as blob which demands for lengthy unpacking through old vbscript. This
is the bottleneck and unfortunately there seems to be no native solution at
this moment :-(
Original comment by Humu2...@gmail.com
on 21 Mar 2013 at 3:46
I read in another post that you can use a flash based system for ie. Would that
approach work?
Original comment by undercut...@gmail.com
on 24 Mar 2013 at 8:54
In that way Flash is utilized to emulate an HTML5 compatible canvas for old
IEs. It makes no benefit to file loading.
Original comment by Humu2...@gmail.com
on 25 Mar 2013 at 11:52
The latest edition already solves this problem. Please get it from the
repository and take a try.
Original comment by Humu2...@gmail.com
on 31 Jul 2013 at 2:32
Original issue reported on code.google.com by
undercut...@gmail.com
on 19 Mar 2013 at 12:00