STL Perspective Issue
- Dominant language
- HTML
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```
What steps will reproduce the problem?
1. STL File uploaded to website
2. STL File loaded into page
3.
What is the expected output? What do you see instead?
File loaded is fine, but the perspectives seem wrong, as though part of the STL
is mesh. File works fine in desktop STL viewers.
What version of the product are you using? On what operating system?
All Operating systems
Using version 1.6.5
Please provide any additional information below.
The site in question is handing many STL files and a lot of them are working
fine - however there are a few (such as this one) which are causing this
perspective issue - please see attached images.
Code used:
-- START CODE --
var canvas = document.getElementById('stl_content');
var viewer = new JSC3D.Viewer(canvas);
viewer.setParameter('SceneUrl', '*STL FILE URL*');
viewer.setParameter('RenderMode', 'textureflat');
viewer.setParameter('Renderer', 'webgl');
viewer.setParameter('ModelColor', '#666666');
viewer.setParameter('Definition', 'high');
viewer.setParameter('ProgressBar', 'on');
viewer.setParameter('BackgroundColor1', '#09090a');
viewer.setParameter('BackgroundColor2', '#676767');
viewer.init();
viewer.update();
-- END CODE --
Thanks for your help in advance.
```
Original issue reported on code.google.com by `j...@onlinefusion.co.uk` on 8 Aug 2014 at 3:40
Attachments:
- [Screen Shot 2014-08-08 at 16.32.44.png](https://storage.googleapis.com/google-code-attachments/jsc3d/issue-93/comment-0/Screen Shot 2014-08-08 at 16.32.44.png)
- [Screen Shot 2014-08-08 at 16.33.24.png](https://storage.googleapis.com/google-code-attachments/jsc3d/issue-93/comment-0/Screen Shot 2014-08-08 at 16.33.24.png)
- [Screen Shot 2014-08-08 at 16.32.44.png](https://storage.googleapis.com/google-code-attachments/jsc3d/issue-93/comment-0/Screen Shot 2014-08-08 at 16.32.44.png)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the JSC3D.Viewer setup in the issue, especially the WebGL renderer and textureflat render mode, and try to reproduce the perspective problem using the referenced STL input or attachments. Inspect the viewer's STL loading and rendering entry points, then compare the affected model with one that displays correctly. Done means the affected STL renders with the expected perspective without regressing other models.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100