encima / encima/jsc3d

Problem with medium/large STL

Open
#61 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-migrated Priority-Medium Type-Defect
Dominant language
HTML
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with js/jsc3d.js and the Viewer initialization shown in the report, then reproduce the failure using the attached jabonera.stl and a smaller STL for comparison. Check the STL loading path and the SceneUrl value in the example; done means the attached medium/large STL loads in the canvas without the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.