Coder Social home page Coder Social logo

large stl problem in IE9 about jsc3d HOT 8 OPEN

humu2009 avatar humu2009 commented on May 26, 2024
large stl problem in IE9

from jsc3d.

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
The latest release of jsc3d.js (0.9.8) does not support binary stl format in 
IE9. This is because loading binary data using IE9's implementation of 
XmlHttpRequest is very inefficient. 

jsc3d_ie.js once implemented this using a snippet of vbscript to transcode the 
binary content of an stl file into a javascript array then read model from it 
(for more technical details, see 
http://code.google.com/p/jsc3d/source/browse/trunk/jsc3d/jsc3d_ie.js#4221). But 
this seems to cost too long for transcoding and will even lock the page for a 
while. So this method is not merged to jsc3d.js.

The good news is that IE10 makes promising enhancement on XHR's binary data 
access. I'm just looking into IE10's dev docs and re-writing that part.  All 
will be in next release.

Original comment by [email protected] on 20 Nov 2012 at 3:11

from jsc3d.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
really thanks, however by now i solved by installing the chrome framework on 
ie9 or ie10 and all is perfect!!

Original comment by [email protected] on 20 Nov 2012 at 3:49

from jsc3d.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
Hi i've found a way in order to convert in fast and efficient way a bynary file 
to array obect on IE9.

JSC3D.StlLoader.prototype.loadBinaryFromUrl = function (urlName) {


   var self = this;
   var xhr = window.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject('MSXML2.XMLHTTP.3.0');
   xhr.open('GET', urlName, true);
   var browserName = navigator.appName; 

   xhr.responseType = "arraybuffer";

   xhr.onreadystatechange = function () {
      if (xhr.readyState == 4) {

               var scene = new JSC3D.Scene;

               try {

                  var bytes = VBArray(xhr.responseBody).toArray(); // Only on IE!

                  self.parseStlBinary(scene, bytes);

               } catch (e) { }
               self.onload(scene);

      }
   };

   xhr.send();
};


it seems this command :

 var bytes = VBArray(xhr.responseBody).toArray(); 

works perfect in IE, i tested in IE9 with very large binary stl Files.

Give me your opinion if you like

hello, Mario

Original comment by [email protected] on 19 Dec 2012 at 3:01

from jsc3d.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
Nice solution! It runs surprisingly fast in IE10, but does not seem to work in 
IE9 for the nonsupport of 'arraybuffer' response type.  I will add this to the 
next release of JSC3D to enable STL loader for IE10. 

Really thanks, Mario!

Original comment by [email protected] on 21 Dec 2012 at 10:01

from jsc3d.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
thanks to you, it's a pleasure for me to learn js by looking at your code!
But it should work on IE9 too. I use IE9 32 bit on windows 7 32 bit.

Hello, Mario

Original comment by [email protected] on 21 Dec 2012 at 10:45

from jsc3d.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
Mario,
I am too trying to find a way round the ie9 problem. Did your solution work 
with ie9 or was the support guy right with the array issue?

Original comment by [email protected] on 24 Mar 2013 at 9:05

from jsc3d.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
[deleted comment]

from jsc3d.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
The latest edition already provides support for loading STL binary and ascii 
files on IE9. Please get it from the repository. 

I'll release a new download package soon.

Original comment by [email protected] on 31 Jul 2013 at 2:29

from jsc3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.