Winscreen / jsc3d

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

Cant display stl files in ie 9 #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load your stl demo file in ie 9 

What is the expected output? What do you see instead?
I see a blank square where the image should be

What version of the product are you using? On what operating system?
ie 9. Your demo works when you use the Flash version, but not the standard 
javascript version.

Please provide any additional information below.
I have tried it on 3 computers and neither  your demo or our files display. Any 
advise please?

Original issue reported on code.google.com by undercut...@gmail.com on 19 Mar 2013 at 12:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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