TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

STL File Viewing

153 pointsby bencevansabout 12 years ago

16 comments

subwayabout 12 years ago
This is really cool, but I always feel kind of dirty putting my STL (or any other binary) files into a git repository.<p>I hope GitHub adds support for scad files soon. In theory it should be pretty easy since they already support STL -- have openscad generate an STL from the scad files on the fly.
评论 #5519598 未加载
s3thabout 12 years ago
Github amazes me all the time with the sheer number of features they ship over a given time period. Major props! The STL rendering is an awesome feature.
评论 #5519583 未加载
kanzureabout 12 years ago
Yo github... while you're bothering, here are some other things that would be handy:<p>* Visual STL diffs, maybe by coloring deleted/added triangles. Possibly with a viewer on gh-pages or on the /:username/:reponame/commits/:branchname endpoint?<p>* DXF sucks, but yeah DXF rendering.<p>* Maybe consider thingiview.js (which does not use WebGL) or possibly a WebGL equivalent viewer. Controlled rotation, zooming, camera repositioning, etc. It seems that most of these features are implemented:<p><a href="https://github.com/josefprusa/Prusa3/blob/master/mini/z-bottom-left.stl" rel="nofollow">https://github.com/josefprusa/Prusa3/blob/master/mini/z-bott...</a><p><a href="https://github.com/josefprusa/Prusa3/blob/master/mini/y-motor.stl" rel="nofollow">https://github.com/josefprusa/Prusa3/blob/master/mini/y-moto...</a><p>* openscad rendering- I know this is a pain in the butt, especially since openscad still requires xserver. But at least it feels more like source code. There are some other options other than openscad that could be easier to render without an xserver, which would be fine in my book, I am not particularly attached to openscad.<p>* Other scripting/rendering options... maybe implicitcad, pythonocc (opencascade/python bindings), HeeksCAD/python, FreeCAD/python, OpenJSCAD, something like that. The problem with STL is that it's like transmitting compiled binaries to other developers, but what developers really want to work with is the source code. Having to commit STL is like having to commit compiled binaries.<p>* UI widgets for committing from SolidWorks, Pro/Engineer, CATIA, AutoCAD, HeeksCAD, FreeCAD, and other front-ends would be really useful. I would be happy to use github.com while working on my next fighter jet project.<p>* Upverter claims to support git, but really it's just a link to a remote git repository and you can't push your schematics to Upverter. Please feel free to eat their lying lunches. Maybe also circuitlab's (although they have never claimed to have git integration). So yeah, schematics.<p>* Some projects require thousands of parts that need to be included when rendering, especially in assemblies. It would be nice to be able to see a fully rendered image of a version of the repository contents. This quickly devolves into a mess of file format hell, which I imagine is not something you want to tackle. But maybe this could be done through continuous integration hooks or something?<p>For whatever it's worth, here's a terrible post-receive bash script I wrote in 2010 for scad rendering on a git server:<p><a href="http://diyhpl.us/~bryan/irc/gitduino-post-receive.sh.txt" rel="nofollow">http://diyhpl.us/~bryan/irc/gitduino-post-receive.sh.txt</a><p>* It would be exceedingly awesome if you could get the RepRap project to jump ship from svn to git. RepRap is the largest, most well organized open source hardware project, and I think it would be a great community to work with to show how strong git is for distributed hardware development.<p>There are already some really excellent RepRap projects in git repositories on github:<p><a href="https://github.com/josefprusa/PrusaMendel" rel="nofollow">https://github.com/josefprusa/PrusaMendel</a><p><a href="https://github.com/josefprusa/Prusa3/tree/master/mini" rel="nofollow">https://github.com/josefprusa/Prusa3/tree/master/mini</a>
评论 #5521465 未加载
评论 #5520681 未加载
评论 #5521490 未加载
评论 #5521206 未加载
steeveabout 12 years ago
I'm surprised nobody has mentioned <a href="https://sketchfab.com/" rel="nofollow">https://sketchfab.com/</a>, which does this for pretty much any 3D file.
eliseeabout 12 years ago
Getting the following error when loading an STL file on GitHub:<p><pre><code> Invalid 'X-Frame-Options' header encountered when loading 'https://render.github.com/view/3d/?url=https%3A%2F%2Fraw.github.com%2FEmmanuelG%2FFoldaRap2%2Fmaster%2Fstl%2Flower-corners.stl': 'ALLOW-FROM: https://github.com/' is not a recognized directive. The header will be ignored. </code></pre> (from <a href="https://github.com/EmmanuelG/FoldaRap2/blob/master/stl/lower-corners.stl" rel="nofollow">https://github.com/EmmanuelG/FoldaRap2/blob/master/stl/lower...</a>)<p>Running Chrome stable. Looks like a malformed cross-origin directive?<p>EDIT: The error is still here but it works from time to time. Some of the time I get a "Something went wrong? Reload" message, the rest of the time, the 3D model actually appears.
评论 #5519451 未加载
VikingCoderabout 12 years ago
Is the source for this STL Three.JS viewer available on GitHub?<p>It's be nice if, when you sign in, you could change which viewer was associated with which file type. Then I could fork their viewer, add my own features, and use that.
tibbonabout 12 years ago
Strange- I just pushed an STL file from a Lynx camera that was taken of me at SXSW and it won't view. Any ideas what's wrong?<p><a href="https://github.com/tibbon/my-3d-models/blob/master/me-in-3d.stl" rel="nofollow">https://github.com/tibbon/my-3d-models/blob/master/me-in-3d....</a>
评论 #5520632 未加载
评论 #5520618 未加载
solox3about 12 years ago
There's also a huge market for scientific collaboration. GitHub has lots of space to grow. <a href="https://www.scigit.com" rel="nofollow">https://www.scigit.com</a>
shykesabout 12 years ago
There's already a github for 3D models, it's called Sketchfab (<a href="http://sketchfab.com" rel="nofollow">http://sketchfab.com</a>) and it rocks.
评论 #5523283 未加载
hcarvalhoalvesabout 12 years ago
Cool, it works pretty well.<p>Next step: support Wavefront's .OBJ files.
评论 #5520457 未加载
glyphobetabout 12 years ago
Only a matter of time before someone writes a service hook for automatic 3-D printing of a model after each push....<p>That or Thingiverse integration.
评论 #5520550 未加载
fafnerabout 12 years ago
Is the blog post broken for anybody else using Firefox? The font is completely messed up for me. Both in Nightly and 20.0.
评论 #5519841 未加载
shurcooLabout 12 years ago
I remember a few years ago Collada was quite the popular 3D file format. What are the latest trends in that field now?
评论 #5520432 未加载
评论 #5521325 未加载
评论 #5520696 未加载
in_deep_thoughtabout 12 years ago
wow. I built a STL file viewer and showed it to hacker news a few days ago and got absolutely no response. (www.supercuber.com). It was a different account though. I realize that this is quite a bit different than supercuber but its amazing how different the traffic to two similar links can be.
wereHamsterabout 12 years ago
Collada support pls.
评论 #5521487 未加载
skurmedelabout 12 years ago
Why STL? I'd wager OBJ is a much more common interchange format for 3D models.
评论 #5520451 未加载
评论 #5523566 未加载