jsc3d icon indicating copy to clipboard operation
jsc3d copied to clipboard

Problem with medium/large STL

Open GoogleCodeExporter opened this issue 11 years ago • 2 comments

What steps will reproduce the problem?
1. use STL file attached (i tryied with bin and ascii format)
2. i'm unable to load it, i think is a size issue
3. i'm using the code below

<body>
 <canvas id="cv" width=640 height=480>
        It seems you are using an outdated browser that does not support canvas :-(
        </canvas>
        <script type="text/javascript" src="js/jsc3d.js"></script>
        <script type="text/javascript" src="js/jsc3d.touch.js"></script>
        <script type="text/javascript">
            var viewer = new JSC3D.Viewer(document.getElementById('cv'));
            viewer.setParameter('SceneUrl',         'jabonera.obj');
            viewer.setParameter('ModelColor',       '#959595');
            viewer.setParameter('BackgroundImageUrl',       'fondo.jpg');
            viewer.setParameter('RenderMode',       'smooth');
            viewer.setParameter('Definition',       'standard');
            viewer.setParameter('CreaseAngle',       '45');
            viewer.setParameter('Renderer',       'webgl');
            viewer.init();
            viewer.update();
        </script>

</body>


What is the expected output?

With stl files with less size i have no problem, i'm unable to see the stl in 
canvas. I wish to use your script in order to visualize STL files for 3D 
printing services, some of usual STL files i recive are larger than 1M


 What do you see instead?

i'm getting "failed to load STL...OBJ  file"


What version of the product are you using? On what operating system?
I just downloaded the latest version today.

By the way, it's a very cool and easy to use script, many thanks!


Original issue reported on code.google.com by [email protected] on 20 Feb 2014 at 3:08

Attachments:

GoogleCodeExporter avatar Apr 09 '15 16:04 GoogleCodeExporter

I think there isn't any mistake in your code and nothing wrong seems to appear 
in my own test. Here is a screenshot of your model rendered as wireframe.

Original comment by [email protected] on 20 Feb 2014 at 10:55

Attachments:

GoogleCodeExporter avatar Apr 09 '15 16:04 GoogleCodeExporter

i'm sorry, was a server side problem, it forks fine, thanks!

Original comment by [email protected] on 20 Feb 2014 at 6:27

GoogleCodeExporter avatar Apr 09 '15 16:04 GoogleCodeExporter