Slashdot Mirror


Using Excel As a 3D Graphics Engine

simoniker writes "Obviously whimsical but slightly mind-blowing — an Eastern European coder has published video and the Excel tables to get full 3D wireframe running in Microsoft Excel. He even has solid polygonal graphics running. This isn't an Easter Egg by the Excel creators. Rather, he's using formulas to output the graphics, using two different methods, and showing all the variables on-screen in real time as the 3D is created."

83 of 292 comments (clear)

  1. One can only ask... by e4g4 · · Score: 2, Funny

    ...why?

    --
    The secret to creativity is knowing how to hide your sources. - Albert Einstein
    1. Re:One can only ask... by Anonymous Coward · · Score: 3, Funny

      Somebody has to.

      -RetroMud Grandpa

    2. Re:One can only ask... by da_matta · · Score: 4, Insightful

      ..because it's there?

    3. Re:One can only ask... by 49152 · · Score: 5, Funny

      You sir are not a true geek ;-)

      He did it because he could, all other reasons would be redundant.

    4. Re:One can only ask... by mattgoldey · · Score: 5, Insightful

      You people that ask why on posts like this need to turn in your geek card. Geeks do this kind of stuff because we can. We like a challenge. We like to explore technology to its fullest to find out just how much it can do -- despite the fact that there aren't any practical applications for whatever we come up with. It's all about exploration and learning (and a little bit about showing off what we can do).

    5. Re:One can only ask... by Scrameustache · · Score: 4, Insightful

      ...why? Same reason others climb mountains.
      --

      You can't take the sky from me...

    6. Re:One can only ask... by garett_spencley · · Score: 4, Funny

      pfft... speak for yourself. I do it to get laid.

    7. Re:One can only ask... by longacre · · Score: 5, Funny

      What's the Excel formula for getting laid?

    8. Re:One can only ask... by dvice_null · · Score: 5, Funny

      Not sure, but it probably has something to do with miscalculation.

    9. Re:One can only ask... by alta · · Score: 5, Funny

      Hey, I'm a republican and a creationist. No one is going to convience me that this story was not worth of being posted or that I should turn in my card. Heck with an ID as low as mine, I doubt too many people would ask me to :)

      --
      Do not meddle in the affairs of sysadmins, for they are subtle, and quick to anger.
    10. Re:One can only ask... by legoman666 · · Score: 5, Funny

      alt-f4

    11. Re:One can only ask... by MobileTatsu-NJG · · Score: 5, Funny

      "What's the Excel formula for getting laid?"

      I can give you the CSV version:

      Income, Car, Looks, Star Wars Fan, Flosses, Dress Quality, Glasses, Muscles, Fat
      $250k, Porsche, Good, 0, 1, >0.8, 0, 1, 0

      --

      "I like to lick butts!" by MobileTatsu-NJG (#32700246) (Score:5, Informative)

    12. Re:One can only ask... by uhlume · · Score: 5, Funny

      That's not how you spell 'IQ'.

      --
      SIERRA TANGO FOXTROT UNIFORM
    13. Re:One can only ask... by Anonymous Coward · · Score: 5, Interesting

      The central thesis appears towards the end of the article. The idea is that something like Excel represents a different coding paradigm that hasn't been seriously considered, where you basically lay out what your stuff is supposed to do, i.e. declare it instead of coding it sequentially. By doing this, you increase comprehension of what's going on, b/c it's easier to visualize the algorithm (at least for 3d manipulations) by viewing the tables, instead of trying to decipher a sequential piece of code. It's basically advocating using a declarative programming paradigm (like Prolog) for games, except using a comical venue to show it.

      Tim Sweeney's POPL talk had some similar ideas too.

    14. Re:One can only ask... by sm62704 · · Score: 4, Funny

      You people that ask why on posts like this need to turn in your geek card. Geeks do this kind of stuff because we can.

      No, more like "because we HAVE TO. We can't help ourselves.

      --
      mcgrew's razor: Never attribute to stupidity that which can be explained by greedy self-interest
    15. Re:One can only ask... by Anonymous Coward · · Score: 5, Funny

      I don't think that's it.....I make six figures (that's six figures to the left of the decimal, thank you very much) and still rarely get laid......but then, I'm married, so I guess that's probably why.

    16. Re:One can only ask... by Rufus211 · · Score: 5, Insightful

      FAIL.

      you can't have extra spaces in a CSV, unless you drive a " Porsche".

    17. Re:One can only ask... by gEvil+(beta) · · Score: 4, Funny

      Alright Mister Smartguy, how exactly do you spell IQ?

      --
      This guy's the limit!
    18. Re:One can only ask... by damburger · · Score: 2, Interesting

      Spoken like someone too young to remember the Amiga demo scene. For some people, the challenge of seeing just how far you can push a piece of software/hardware is irresistible.

      --
      If we can put a man on the moon, why can't we shoot people for Apollo-related non-sequiturs?
    19. Re:One can only ask... by MobileTatsu-NJG · · Score: 5, Funny

      "FAIL. you can't have extra spaces in a CSV, unless you drive a " Porsche"."

      Sorry. I'll append my CSV:

      Pedantic, Feelings of Superiority by Mastering of Mundane Technical Details, Nitpick a Comment About Why Geeks Don't Score
      0, 0, 0

      --

      "I like to lick butts!" by MobileTatsu-NJG (#32700246) (Score:5, Informative)

    20. Re:One can only ask... by arb+phd+slp · · Score: 3, Informative

      Aperture Science: We do what we can because we must.

      --
      There's a perfect xkcd for my sig but I'm too lazy to look it up. sudo someone go find it.
    21. Re:One can only ask... by Midnight+Thunder · · Score: 4, Funny

      You sir are not a true geek ;-)

      I doubt he would apprecaite ASCII Quake either.

      --
      Jumpstart the tartan drive.
    22. Re:One can only ask... by zizzo · · Score: 3, Insightful

      Heck with an ID as low as mine...

      Old != Smart

    23. Re:One can only ask... by sm62704 · · Score: 2, Interesting
      Actually "Deep Thought" was a play on "deep throat", which was the code name for Deputy Director of the FBI William Mark Felt, Sr., the guy that narked on Nixon. Oddly, the term originated in the name of a porn movie starring Linda Lovelace, and the very first computer programmer was Ada Lovelace, who wrote programs for Charles Babbage's Anylitical Engine, the world's first programmable computer that wasn't actually built until late in the 20th century.

      I've read that England spent so much money on the thing that wags quipped that the only thing it would be good for was computing its own cost.

      Babbage's engines were among the first mechanical computers, although they were not actually completed, largely because of funding problems and personality issues. He directed the building of some steam-powered machines that achieved some success, suggesting that calculations could be mechanized. Although Babbage's machines were mechanical and unwieldy, their basic architecture was very similar to a modern computer. The data and program memory were separated, operation was instruction based, the control unit could make conditional jumps and the machine had a separate I/O unit.
      --
      mcgrew's razor: Never attribute to stupidity that which can be explained by greedy self-interest
    24. Re:One can only ask... by caferace · · Score: 5, Funny
      Heck with an ID as low as mine, I doubt too many people would ask me to :)


      Please turn in your card.

    25. Re:One can only ask... by MobileMrX · · Score: 4, Funny

      I'd have just amended my doctype to "CSSV", the popular "Comma Space Separated Values" format. ;)

    26. Re:One can only ask... by StormReaver · · Score: 3, Funny

      "Not sure, but it probably has something to do with miscalculation."

      I dated her once, and I've never been quite right ever since.

    27. Re:One can only ask... by FSWKU · · Score: 2, Informative

      Likely here...

      Be sure to enable the macros included and then Alt+F8, and run.

      --
      "So after all this, you make my case for me. To end this stalemate, you must die..."
    28. Re:One can only ask... by xSauronx · · Score: 4, Funny

      he didnt mention he posts anon because the wife has a lower UID

      --
      By and large, language is a tool for concealing the truth. -- George Carlin
    29. Re:One can only ask... by sg_oneill · · Score: 4, Informative

      Some of you guys are kind of missing the point here. What he hasn't done is writing a cheezy little vba app that does wireframe graphics, he's used the non-imperative logic in the actual spreadsheet to demonstrate that whats normally a linear 'pipeline' can be done perfectly well non-imperatively.

      Functional coding guys would 'get' the wow factor of it all, I guess.

      --
      Excuse the Unicode crap in my posts. That's an apostrophe, and slashdot is busted.
    30. Re:One can only ask... by code4fun · · Score: 2, Insightful

      You're just jealous. 3D pipeline in software is cool. 3D pipeline in Excel is even cooler! I try to avoid using office apps, but it's pretty impressive what Excel can do and how people think of ways to use it. Maybe Microsoft can advertise it (3D pipeline inside). ;-)

    31. Re:One can only ask... by alshithead · · Score: 2, Insightful

      "I thought geeks bit the heads off live chickens and nerds pushed technology to to the limit."

      I guess I prefer the newer usage of "geek" over the older when applied to me. "Hacker" has changed too. Eh, try calling someone "niggardly" and see what happens. I sometimes wish English evolved a little more slowly, at least as far as usage of existing words.

      --
      I reserve the right to think for myself. Others' opinions are optional. Puppy on lap = typos...not illiteracy.
    32. Re:One can only ask... by ayjay29 · · Score: 2, Funny

      >>What's the Excel formula for getting laid?

      b4i4q ru/18

      --
      Offtopic, Inflammatory, Inappropriate, Illegal, or Offensive comments might be moderated up.
  2. This explains it by Anonymous Coward · · Score: 5, Funny

    The DNF team has been waiting for the excel rounding errors to be fixed before release.

  3. Obligatory Joke.. by Matt+Amato · · Score: 5, Funny

    Apparently he's using Excel as his web server too...

    1. Re:Obligatory Joke.. by Nom+du+Keyboard · · Score: 5, Funny

      When your only tool is a hammer, you must make the whole rest of the world look like a nail.

      --
      "It's the height of ridiculousness to say for those 9 lines you get hundreds of millions."
    2. Re:Obligatory Joke.. by sm62704 · · Score: 2, Funny

      What if your only tool is a condom? With a hole?

      --
      mcgrew's razor: Never attribute to stupidity that which can be explained by greedy self-interest
    3. Re:Obligatory Joke.. by Jogar+the+Barbarian · · Score: 4, Funny

      I guess you could set up a Chinese water torture station.

      --
      3. Profit!
      2. ???
      1. On Soviet Slashdot, a Beowulf cluster of alien Natalie Portman overlords welcomes YOU!
  4. Explains the flight simulator in Excel 97? by TheCycoONE · · Score: 5, Interesting

    So that's it, Excel is actually a 3d programming environment. The Excel 97 flight simulator then was a demo. http://www.eeggs.com/items/718.html

    1. Re:Explains the flight simulator in Excel 97? by DarrylM · · Score: 3, Informative

      It can be used to land planes, too!

      (Obligatory Dilbert)

  5. A cool trick, straight from the textbook by jandrese · · Score: 5, Insightful

    Back when I took graphics in college, it was made abundantly clear that all modern graphics are just large math problems solved in realtime. We did all sorts of work messing with transformation matrices and doing the math (sadly, since this was done by the CS department we did a lot less of the useful stuff and a lot more of the theoretical underpinnings that you don't technically need to know when actually programming something).

    Anyway, the point is that Excel is reasonably well set up for doing the kind of math you need to do when making computer graphics and has vector output capabilities. It's a neat trick and something that would likely be useful in teaching the underpinnings (watching what happens as you tweak variables in a transformation matrix in realtime would have been very nice when I was taking my class).

    --

    I read the internet for the articles.
  6. circa 1990 MS Works was a Turing Machine by davidwr · · Score: 5, Funny

    I've long forgotten how I did it, but I used the database application in MS-Works for Windows 3.0 as Turing Machine.

    Why? If you have to ask, get off Slashdot.

    --
    Knowledge is how to play a game, intelligence is how to win, wisdom is knowing what game to play.
  7. Not to worry ... by gstoddart · · Score: 5, Funny

    I'm sure someone has either already done this in emacs, or soon will.

    Those guys have a mode for everything. :-P

    Cheers

    --
    Lost at C:>. Found at C.
    1. Re:Not to worry ... by kalirion · · Score: 5, Funny

      Oh yeah! Good ol' C-x M-c M-vectorengine...

      Of course I still prefer butterflies.

  8. skip right to the video by Anonymous Coward · · Score: 5, Informative
  9. Not impressed by Rufus211 · · Score: 5, Funny

    I won't be impressed until Excel can pull of something as simple as a flight simulator.

  10. Oblig. by BlackPignouf · · Score: 4, Funny

    Nice, but could it display a 2D rectangle whose dimensions are 850 & 77.1?

  11. 65,535 by TBerben · · Score: 4, Funny

    Hopefully, no formula outputs that value. Who knows what 3d image you'd get?!

  12. The source of progress by dazedNconfuzed · · Score: 4, Insightful

    Strange how much human accomplishment and progress comes from contemplation of the irrelevant. - Scott Kim.

    --
    Can we get a "-1 Wrong" moderation option?
  13. big whoop by FranTaylor · · Score: 5, Funny

    This was possible on a 7 MHz 68000 back in the day of the original mac. At 3 GHz he should be able to raytrace in Excel.

    1. Re:big whoop by jschen · · Score: 4, Funny

      I've heard of overclocking. But why would you want to underclock your 8 MHz Mac? I guess in this discussion, the correct answer would be "because you can".

  14. Re:WAY TOO MUCH FREE TIME by sm62704 · · Score: 2, Insightful

    There's no such thing as "too much free time". My seventy six year old retired dad says he doesn't know how he ever found the time to work!

    --
    mcgrew's razor: Never attribute to stupidity that which can be explained by greedy self-interest
  15. Finally... by wllf · · Score: 2, Funny

    This is the breakthrough we were waiting for. Duke Nukem Forever is right around the corner now!

  16. I hope you are not serious by F�an�ro · · Score: 4, Insightful

    I might be missing the joke and taking this way to seriously, but I really cannot stand that attitude. I guess it's easy to push my buttons.

    In wich deranged moral system is there some sort of duty that forces smart guys to spend all their available time on things useful for society?

    (And who decides what is beneficial for society anyway?)

    If his hoby was playing chess or collecting stamps or climbing mountains, would you say that he should spend his time on more useful things? If he could afford to spend a lot of time on those hobbies, why shouldn't he?

    So why is it that every time someone does something cool and strange and for all purposes harmless, someone else always has to say "THIS GUY HAS WAY TOO MUCH FREE TIME"? Someone who, I might add, spends his time on slashdot?

    Envy?
    (I know I am envious, I wish I had the time and the determination to do a lot of these things. Considering that I am wasting time on slasdot, determination is what I am lacking more of)

    1. Re:I hope you are not serious by abigor · · Score: 4, Insightful

      It's his life, and his definition of fun. This was done 100% for himself, and I'll bet he had a blast. I think it's awesome.

      As far as "useless" goes, the best times I've ever had in my life have been essentially "useless" under your definition - sex, travel, rockclimbing, programming for fun, and so forth - though never all of these at once, it must be said.

      Work less, enjoy more.

    2. Re:I hope you are not serious by F�an�ro · · Score: 4, Insightful

      On a serious note, let me ask, to what end is this pursuit? Of what practical use is it?
      For one thing, what he does is by any metric infinitely more useful than us complaining and arguing about it on slashdot.

      I'm in my 40s now, and time is so precious and I just see something like this as a sad waste. Here's a guy who is obviously intelligent but he devoted an amount of his finite time on planet earth doing something basically useless to himself and others. Were his energies properly "self-directed" think what he could have done for himself!! Think about the lost potential in the form of dedication, intelligence, and time!!!
      Ok, now you are obviously trolling.

      A "sad waste" would be if you lived your life without ever doing anything just because you liked doing it.
      And dedication or intelligence is not some limited resource that gets less each time you use it on something you enjoy, quite the opposite.
      Same for time, unless you somehow manage to live your live without any free time (which brings us back to the "sad waste")
    3. Re:I hope you are not serious by Rakishi · · Score: 2, Insightful

      On a serious note, let me ask, to what end is this pursuit? Of what practical use is it? Oh, sure, you can do what ever you want in life, but the whole excel thing sounds like something to do when you are bored.

      I'm in my 40s now, and time is so precious and I just see something like this as a sad waste. Here's a guy who is obviously intelligent but he devoted an amount of his finite time on planet earth doing something basically useless to himself and others. Were his energies properly "self-directed" think what he could have done for himself!! Think about the lost potential in the form of dedication, intelligence, and time!!! ...says the guy wasting his time posting on slashdot.
    4. Re:I hope you are not serious by DynamiteNeon · · Score: 2, Insightful

      "The time you enjoy wasting is not wasted time." - Bertrand Russell

      I suppose I could have said a whole bunch more, but that sums it up nicely.

    5. Re:I hope you are not serious by shutdown+-p+now · · Score: 2, Insightful

      He had fun. What else really matters in life, in the end?

  17. Re:A true geek... by Anonymous Coward · · Score: 3, Interesting

    Relatively easy. Just create a vba and load some com components...

    Its kinda fun to create a button in word which executes a vba app that creates an excel chart based on data in an access database and embeds it in a cad drawing then prints that to pdf and sends an email through outlook. Makes peoples heads explode even though it is very basic programming.

  18. Demonstrations by Flammon · · Score: 2, Informative
  19. Re:Quick Summary of Article - Breathless Hype by rilister · · Score: 5, Insightful

    nah, man - I think you missed something. I'm no programmer, but he makes the point that what he's doing here is a different type of programming. It allows him to lay out his program structure in two dimensions. Most (all?) code is laid out as a vertical thread of logical progressive statements, so this does seem different: Excel allows you to visually lay out the relationships between variable in a spatial way.

    It not like he's claiming to have discovered this: this is the fundamental reason why spreadsheets have been used for well over a decade - they give you a logical map. You could lay out a spreadsheet as a single list of mathematical operations, but it would obviously suck in comparison to a a spreadsheet. He's just pointing out this is interesting to think of in terms of a programming paradigm.

    (YAY! I used 'paradigm' and didn't sprout horns or anything!)

    Cheers!

    --
    'This writing business. Pencils and what-not. Over-rated if you ask me. Silly stuff. Nothing in it' - Eeyore
  20. Re:A true geek... by thePowerOfGrayskull · · Score: 5, Funny

    Its kinda fun to... in Word ... executes a vba ... creates .. excel chart ... access database ... outlook. Eh? "Kind of fun"? Do you also find sticking your fingers into an electric pencil sharpener "fun"?
  21. A month early... by mbessey · · Score: 3, Funny

    This has to have been accidentally published in the wrong month. It's clearly intended for April. What kind of Fools are running that magazine?

  22. Why Did You Ask? by Doc+Ruby · · Score: 2, Insightful

    The answers are the same.

    --

    --
    make install -not war

  23. compressed: by Anonymous+Cowpat · · Score: 2, Funny

    geek
    0

    --
    FGD 135
    1. Re:compressed: by glittalogik · · Score: 3, Interesting

      I'm shouting into the storm here, I know, but this is NOT true. Both of my female housemates and several of my female friends ONLY date/shag geeks. This whole "geeks can't get laid" is entirely "geeks (don't want/are too scared to try) to get laid."

      As to WHY these girls like geeks, it's generally a combination of the following:
      a) They have a mother complex that makes them want to care for and nurture the most socially inept/awkward partner they can find.
      b) They're geeks themselves, and stick to their own kind.
      c) They have a fetish for crying boys sobbing "thank you, thank you, thank you!" over and over.

  24. Re:A true geek... by MightyYar · · Score: 4, Funny

    Do you also find sticking your fingers into an electric pencil sharpener "fun"? That's not his finger.
    --
    W..w..W - Willy Waterloo washes Warren Wiggins who is washing Waldo Woo.
  25. Laziness is the basis of most revolutionary ideas! by tacroy · · Score: 2, Insightful

    All those hard workers are content to just do it the long way.

  26. Re:A true geek... by ParaShoot · · Score: 5, Funny

    That's not his finger. It's a space station?
  27. Future of programming? by tkinnun0 · · Score: 2, Informative

    The article is written tongue-in-cheek, but it raises a good point about sequential programming. When a processor has 80 cores, multi-threaded programming is going to be a nightmare. In contrast, the algorithms in the article can be scheduled optimally, given enough cores. And you, the programmer, get that for free. I wouldn't be surprised if spreadsheets became the preferred way to implement concurrent algorithms.

  28. Re:A true geek... by Chyeld · · Score: 3, Funny

    Well, it's a little short to be a Stormtrooper.

  29. n-dimensional source by g4b · · Score: 2, Interesting

    what I really find interesting, is the claim, that sourcecode may be n-dimensional in the future. Actually, this is the most important aspect of the whole 3d excel show, and should have been mentioned in the article abstract, because it's a thought on programming itself.

    While I don't really know if I would agree on this "breakthrough of programming style", it is interesting to read it on pages 4 and 5 of the article.

    I wished some comments would have commented on that.

    I myself find code to be standing on different positions on the screen not very unusual, since it will be executed "one after the other" anyway, and is common in GUI/java development to have more than one window open. But if the code is not just "displayed" next to each other, and it has some new sense to arrange it like excel does, it might be interesting in the future (especially now on the edge of leaping into mainstream multiprocessor development)

  30. Eastern European? by jabber · · Score: 5, Insightful

    "Eastern Europe" is not some nebulous region with fuzzy borders on a map, with "Here there be coders" written in illuminated calligraphy in the very middle of a vast, blank area.

    This guy's email address is in Hungary which means he's probably Hungarian. That's a country directly between Austria and Bulgaria, south of Poland and north of Greece (indirectly) which, depending on where you draw the Eastern boundary of Europe, may or may not be in "Eastern" Europe. It lies almost precisely between the western border of France and the Eastern border of Ukraine, the northern border of Poland and the southern border of Greece (excluding Cyprus), making this guy more of a Central European.

    French coders are French, German coders are German. What makes a Hungarian coder "Eastern European"?

    --

    -- What you do today will cost you a day of your life.
    1. Re:Eastern European? by autophile · · Score: 4, Funny

      What makes a Hungarian coder "Eastern European"?

      Not so much that he's from Hungary, but for what he did. You see, we Westerners think of the old Soviet-era Eastern Europe as a windswept expanse of cold, grey concrete buildings. All the people are huddled inside, shivering over a fire made out of rolled-up Pravda, because the Central Committee didn't come through with the oil for the 15th year running. Smartly-dressed politzei wearing fur hats patrol the streets with vicious attack dogs.

      So it's pretty natural that if you see a 3D render in Excel, you have to think: "My God, what God-forsaken country do you have to be in to have to do 3D renders in Excel?!" And then you picture that guy hiding in a monk's hole, giggling to himself, swilling tea made from thrice-used teabags heated by Pravda fire, with a dash of bootleg Stolichnaya for kicks, and it couldn't happen anywhere except Eastern Europe, that fictional colorless country where it snows all the time.

      --Rob

      --
      Towards the Singularity.
    2. Re:Eastern European? by jabber · · Score: 2, Funny

      Clearly there's no difference between Bulgaria and Romania. It's all just "Eastern Europe". :)

      --

      -- What you do today will cost you a day of your life.
  31. Re:Quick Summary of Article - Breathless Hype by mpeg4codec · · Score: 2, Interesting

    Check out Befunge. It's the only language I know of that explicitly uses the two-dimensional spatial structure of code for flow control.

  32. Re:A true geek... by Translation+Error · · Score: 5, Funny

    That's ok; that's not a pencil sharpener, either.

    --
    When someone says, "Any fool can see ..." they're usually exactly right.
  33. Re:A true geek... by ArAgost · · Score: 5, Funny

    And it always shoots first :(((

  34. I did this years ago by robvangelder · · Score: 5, Interesting
  35. No cake for you! by Torvaun · · Score: 3, Informative

    Aperture Science: We do what we must, because we can.
    For the good of all of us, except the ones who are dead.

    --
    I see your informative link, and raise you a pithy comment.
  36. Had to do it by BorgCopyeditor · · Score: 2, Funny

    What's the Excel formula for getting laid?

    Gainful employment, a shower, a suit and a tie.

    #REF!

    --
    Shop as usual. And avoid panic buying.
  37. Excel Tetris by rapidmax · · Score: 2, Interesting

    A while ago I was very bored and coded a tetris clone in Excel.

    The timer I used is too slow but it works... http://www.knitter.ch/src/snipplets/excel-tetris/

    Cheers, Andy