chetto1983 / jsc3d

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

Problem with medium/large STL #61

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 claudio....@gmail.com on 20 Feb 2014 at 3:08

Attachments:

GoogleCodeExporter commented 8 years ago
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 Humu2...@gmail.com on 20 Feb 2014 at 10:55

Attachments:

GoogleCodeExporter commented 8 years ago
i'm sorry, was a server side problem, it forks fine, thanks!

Original comment by claudio....@gmail.com on 20 Feb 2014 at 6:27