Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

GitHub Adds Support For Diffing 3D Files

Soulskill posted 1 year,13 days | from the still-waiting-on-4D-file-diffs dept.

Software 29

An anonymous reader writes "A few months after releasing support for viewing models in .STL format, GitHub just added support for viewing changes to .STL formatted 3D models directly in the browser. 'How does this work? We take both versions of the model, and using binary space partitioning, we compute the added, removed, and unchanged parts. This is done using csgtool, a C library paired with a Ruby gem via FFI. These pieces are cached and displayed by the 3D viewer we already have, though we color them differently and play with their transparency to help illustrate the changes.'"

cancel ×

29 comments

Sorry! There are no comments related to the filter you selected.

And Yet... (5, Insightful)

Luthair (847766) | 1 year,13 days | (#44880551)

Still no side-by-side diff for plain old text files.

Re:And Yet... (0)

Anonymous Coward | 1 year,13 days | (#44880637)

Why would you need that as a service of a web site when there are so many file compare utilities you could use yourself?

Re:And Yet... (3, Insightful)

Anonymous Coward | 1 year,13 days | (#44880663)

Why would you use github when you could setup your own git master?

Re:And Yet... (-1)

Anonymous Coward | 1 year,13 days | (#44881375)

Watching people trust something like github actually scares me. I hope that they keep good backups, doesn't anybody remember what happened to mp3.com?

Re:And Yet... (3, Informative)

Skylinux (942824) | 1 year,13 days | (#44881785)

This is git, not SVN.
I have the complete and fully functioning repo on my dev machine so GitHub can go boom right now and I would not really care.

Re:And Yet... (0)

Anonymous Coward | 1 year,12 days | (#44884739)

> I hope that they keep good backups

A Git repository IS a good backup!

Re:And Yet... (0)

Anonymous Coward | 1 year,13 days | (#44880671)

Because using github or bitbucket is better for those that don't want to invest into a server right away. Although github is probably not the most ideal one for personal projects since from my understanding it's all public. Yeah, you COULD build your own SVN server but really, why would you need to when there are services already available that suits your needs? Plus, just because you know how to program doesn't mean that you know how to set all of this up, which is overly complex and poorly documented to begin with. I'd have to go on a whim and say that most programmers don't use linux and windows server is too expensive to jump into. github and bitbucket is ready to use with just a simple registration. Install SourceTree and you're good to go. No need to go the long way with tortoisesvn or any of that. Again, it's more than ideal for startups.

Re:And Yet... (0)

Anonymous Coward | 1 year,12 days | (#44885275)

If you want private repos on github you have to pay

Re:And Yet... (2)

pimpsoftcom (877143) | 1 year,13 days | (#44880645)

The people on github are really smart; Just stupid when it comes to common sense. I'm sure one of the github spies is reading this now, cursing my name or otherwise feeling insulted despite my clear attempt at humor, and adding diffing of plain files to the backlog for the next sprint.

Re:And Yet... (1)

dryeo (100693) | 1 year,13 days | (#44880727)

That and no way to download a change set as a simple unified diff. Sometimes don't want to clone a huge project,especially when short of bandwidth.

Re:And Yet... (4, Informative)

arthur.gunn (1687888) | 1 year,13 days | (#44880927)

You certainly can!

Visit your repo page +"/compare" to setup the revisions you want to diff.
Or just construct the url:

https://github.com/gunn/ember.js/compare/emberjs:8446b121d8c635ebf...ember-libraries.diff [github.com]

Re:And Yet... (1)

dryeo (100693) | 1 year,13 days | (#44881401)

Thanks, I'll change my complaint to "it is non-obvious how to create a diff from a change set"

Re:And Yet... (1)

IamTheRealMike (537420) | 1 year,13 days | (#44881653)

Has anyone ever discovered that feature without someone else telling them about it? I'm guessing the answer is no.

Re:And Yet... (1)

Anonymous Coward | 1 year,13 days | (#44881707)

Considering it's the big green button near the top of the page, yes, probably.

Re:And Yet... (1)

tobiasly (524456) | 1 year,12 days | (#44885171)

You certainly can!

Visit your repo page +"/compare" to setup the revisions you want to diff.
Or just construct the url:

https://github.com/gunn/ember.js/compare/emberjs:8446b121d8c635ebf...ember-libraries.diff [github.com]

In other words, using GitHub is every bit as transparent and consistent as the git command line! It's a feature...

Re:And Yet... (0)

Anonymous Coward | 1 year,13 days | (#44882201)

As another poster pointed out, you can already do that with the big green button at the top.

I'd like to point out that you can also use 'git clone --depth=1' to checkout a repo without downloading it's entire backhistory. Generally this won't use any more bandwidth than downloading the tarball of that revision.

Re:And Yet... (0)

girlintraining (1395911) | 1 year,13 days | (#44880775)

Still no side-by-side diff for plain old text files.

Hey now, be fair. It's a lot harder to write a 7 line perl script to run 'diff' and output it to a web browser than to write a complex algorithm to show changes to a 3D model. I mean, have you ever tried coding in Perl? It's like rocket science and stuf--*chokes*

Gaaaakk. Sorry, overdid the snark again. Need to go drink some water to wash out the taste now...

Re:And Yet... (0)

Anonymous Coward | 1 year,13 days | (#44881077)

Your comment was funny until you went "full retard" by (a) explaining the joke, and (b) trying to make it clear that you think you're too smart for that cool-aid.

tl;dr: Self-deprecating humor is funny, and self-righteous humor is not.

Re:And Yet... (1)

mwvdlee (775178) | 1 year,13 days | (#44882331)

And your comment was funny until "until".

Re:And Yet... (0)

Anonymous Coward | 1 year,13 days | (#44883255)

and your comment wasn't funny at all

Re:And Yet... (0)

Anonymous Coward | 1 year,13 days | (#44881455)

git difftool --tool=vimdiff --no-prompt HEAD

offline (1)

Weezul (52464) | 1 year,13 days | (#44881667)

Real question : Is the tool that crates these diffs open source?

It'd be pretty lame to want to diff a couple revisions but need to push the changes to the public to see the diff.

Re:offline (1)

Mutatorr (411800) | 1 year,12 days | (#44886311)

Yep, it's https://github.com/sshirokov/csgtool

Future filetypes? (0)

Anonymous Coward | 1 year,13 days | (#44880681)

Perhaps .obj, .blend, .md3, . iqm, etc
Another cool thing would be image diff viewing. Shouldn't be too hard to do some fancy adjust transparency of two images overlapping eachother with a slider to see the diffs.

Re:Future filetypes? (5, Informative)

Mutatorr (411800) | 1 year,13 days | (#44881103)

Another cool thing would be image diff viewing. Shouldn't be too hard to do some fancy adjust transparency of two images overlapping eachother with a slider to see the diffs.

Image diffing is already a thing: https://github.com/blog/817-behold-image-view-modes

Re:Future filetypes? (1)

X0563511 (793323) | 1 year,12 days | (#44884539)

Not sure how .blend would work unless you disable compression. I don't know enough about other formats to say anything about them though (isn't .obj just point cloud data with connections?)

Github user at work (0)

Anonymous Coward | 1 year,13 days | (#44881703)

Nice. I just hoped they would implement a diff tool for Excel sheets next. Also a bit more intuitive output on branch comparison would help, as currently it just lists some commits in order by date. One can not see, which commit is done at which branch. Or perhaps it is just me not understanding the logic.

Re:Github user at work (1)

Dr_Barnowl (709838) | 1 year,13 days | (#44881829)

For Excel diffs, a traditional diff program with a conversion shim is useful.

I've been a long time user of Beyond Compare 3 which supports pre and post diff / merge transform steps ; not OSS or FreeBeer but very capable and well worth the pro / cross platform license cost IMHO.

Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?