Contents
Microsoft Excel: Revolutionary 3D Game Engine?
 
 
Printer-Friendly VersionPrinter-Friendly Version
 
Latest News
spacer View All spacer
 
November 21, 2009
 
Video Game Watchdog National Institute On Media And The Family Shutting Down [10]
 
Modern Warfare 2 Infinity Ward's 'Most Successful PC Version' Yet [12]
 
New Tech, Design Details Of Project Natal To Emerge At Gamefest In February
spacer
Latest Jobs
spacer View All     Post a Job     RSS spacer
 
November 21, 2009
 
Sucker Punch Productions
Character Artist
 
Sucker Punch Productions
3D Environment Artist
 
Sucker Punch Productions
Network Programmer
 
Sucker Punch Productions
Texture Artist
 
Sony Online Entertainment
Brand Manager
 
Monolith Productions
Sr. Software Engineer, Engine - Monolith Productions - #113767
 
Crystal Dynamics
Sr. Level Designer
 
Gargantuan Studios
Lead World Designer
spacer
Latest Features
spacer View All spacer
 
November 21, 2009
 
arrow Upping The Craft: Susan O'Connor On Games Writing [6]
 
arrow Small Developers: Minimizing Risks in Large Productions - Part II [6]
 
arrow iPhone Piracy: The Inside Story [48]
 
arrow And Yet It Grows: Analyzing the Size and Growth of the European Game Market [5]
 
arrow NPD: Behind the Numbers, October 2009 [13]
 
arrow Reflecting On Uncharted 2: How They Did It [5]
 
arrow Sponsored Feature: Rasterization on Larrabee -- Adaptive Rasterization Helps Boost Efficiency
 
arrow Postmortem: Wadjet Eye's The Blackwell Convergence [2]
spacer
Latest Blogs
spacer View All     Post     RSS spacer
 
November 21, 2009
 
Accepting the Inherent Value of Games
 
Planckogenesis, Part II: Song Structure & Gravy Train [1]
 
Designing Games Is About Matching Personalities [1]
spacer
About
spacer News Director:
Leigh Alexander
Features Director:
Christian Nutt
Editor At Large:
Chris Remo
Advertising:
John 'Malik' Watson
Recruitment/Education:
Gina Gross
 
Features
  Microsoft Excel: Revolutionary 3D Game Engine?
by Peter Rakos
35 comments
Share RSS
 
 
March 6, 2008 Article Start Previous Page 4 of 5 Next
 

Office-level Graphics Abstraction Layer

If there is no need for ECG's advanced features, like resizable pixels and variable aspect ratio then Excel's other rendering subsystem -- the Office-level Graphics Abstraction Layer -- is a possible choice.

OGAL provides additional functions (polygon drawing, filling, etc), higher performance and compatibility with other applications of the MS Office package. This compatibility can be extremely useful if the 3D application has to be ported to (e.g.) Word.

Advertisement

A curiosity of the rendering process is that rendering is performed on a separate layer in front of the worksheet, so the subsystem can work without modifying the existing content of the worksheet.

This feature makes it possible to run OGAL and ECG side by side, or show the background calculations and their results on the same screen -- which helps the debug process. A screenshot of the running OGAL subsystem can be seen below (Figure 8).

The separate rendering layer in front of the worksheet is easily observable on the picture: while the rotating cube is rendered on this layer, the 3D calculations performed by the engine can be seen in the background.

Figure 8: Engine in action (with Office-level Graphics Abstraction Layer)

A typical example of the OGAL subsystem's refinement is the available polygons: whereas the current 3D engines operate with triangles, the OGAL supports other polygons (like quadrangles, pentagons, etc.) as well.

There is no need for a separate background buffer because it is handled by OGAL. Colors can be set by the usual 24 bits and the subsystem provides an additional alpha channel for the transparency as well. Again, the demonstration file is available in our example Excel engine files - for those who shun real-time, here's a video of it in action:

Warning: Only for very-very determined experts!

Paradigm shift

Sequentiality essentially influences our actual programming paradigm. It can be found in every corner of the programming vocation: day by day thousands of programmers code their algorithms row-by-row, create the executables step-by-step (as defined in the makefiles), debug the executables command-by-command.

Thousands of different programs and billions of source code lines were created with this sequential approach. Sequentiality pervades our current programming paradigm so much that programmers don't question its reason for existence and take its limitations for granted.

Note: Please don't underestimate the power of habit! Probably you have a QWERTY keyboard in front of you which has intentionally the most uncomfortable button layout!

It's not a joke: the QWERTY layout was originally created for the typewriters in the 1860s when the jam was a difficult technological problem. The QWERTY layout ensures that successive keystrokes alternate between sides of the keyboard. This layout helps to solve the typewriters' jam problem but it causes the greatest possible demands on your fingers and joints. The wind of change has blown away the typewriters and their 150 year-old technological problems but we still use the most uncomfortable keyboard layout these days!

It is the power of habit.

(For further information visit http://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard)


Excel breaks with this habit and exceeds sequentiality. Its revolutionary approach can be observed in the following fields:

  • Non-traditional source code
  • Non-sequential debugging
  • Instant feedback (without a sequential make process)

Non-traditional source code

It is commonly accepted among developers that source code (and the algoritms encoded in source code) handled by the current development tools require a sequential top-down reading and interpretation. Figure 9 illustrates this sequential top-down interpretation.

Figure 9: Traditional, top-down interpreted source code

We accepted this sequential, top-down mentality so much that interpretation of an unusually formatted (but syntactically correct) source code can be immensely hard. If you would like to test your thinking then you can find some challenging examples at http://www.textrush.com/code-formatting.htm. These examples are suitable only for the very determined readers, as they contain unusual line-breaks and tabulators as well.

 
Article Start Previous Page 4 of 5 Next
 
Comments

Andrew Lauritzen
profile image
Lol this is genius! :D Good work, although you may have too much time on your hands ;)

Jesse McClusky
profile image
This is the type of creativity that opens up the way to new technologies and wins awards. Good job! If I had a position open, I'd likely offer you a job on the spot.

John Minshull-Beech
profile image
Not exactly a games use but I designed my house extension in Excel, working drawings and pics. Resized each cell to 1 x 1 -- took forever. Stopped well short of generating 3D rotating wire model though. Mr Rakos is a genius.

Raymond Grier
profile image
Very interesting. I can't wait to see the new development tools that arise from this.
By the way, th etop level of letters on a keyboard were also arranged to make spelling TYPEWRITER easier for typewriter seles men who went door to door demonstrating their usage.

Brian Embleton
profile image
Wow. This is what happens when VBA programmers have free time? Great. I hate to break it to you, but Excel performs every calculation in sequence. I don't suppose you realize that modern graphics cards perform matrix operations in basically a single cycle whereas Excel probably uses something along the lines of a few thousand in your worksheet cycle? Yeah, when you get Excel to perform a few billion pixel renders per second or start supporting Shaders 2.0, you let us know, m'kay?

Kevin McDowell
profile image
Excel is the most under-rated and powerful of all of the Microsoft Office applications. There are some other 2-day animation examples you can find on Office Online (office.microsoft.com) as well as an example of using Excel as a music synthesizer. Just search for "animation engine" or "synthesizer" from the Office homepage to find these examples.

Kevin McDowell
profile image
Errrr, that would be 2-D, not 2-day.

Stephen Chin
profile image
I remember dinking around in Excel to make the foundation for a Rogue-like game. It worked pretty well, all things considered.

And while Excel may not be a modern GPU, it, like the DS, Flash, Shockwave, etc, can be used be used as a commonly available easy to program engine that new programmers and designers can use to make simple games and help ease their way into more meatier and significant projects. They need not worry about graphics, models, or other time consuming assets but purely the scripting and design. Perhaps in some ways, it's the equivalent to MS Paint for artists.

ian walker
profile image
bah! I was doing similar things in the mid 90's with excel - I used it as the basis for my SIAL (statistical image analysis lab) where I did filtering and image processing on shaded cells. The fact that it was slow was really good because I got to *feel* when an algorithm was good or bad. I also used it to investigate Bresenham algorithms and aliasing - you got to see close up in the cell shading jut how well they worked. SO sorry dude - I did all this over a decade ago, and nobody ever called ME a genius ;-)

ps: I also used word as a programming editor - styles, outlining, autotext, templates, grammar checking, macros years and years before visual studio. In a lot of ways word is still a better programming editor than any other, even now...

Anonymous
profile image
hmm i can't get it to work in OpenOffice :(

Harun Vos
profile image
For what it's worth, Anon, I've fiddled with it a bit and got the wireframe cube (mostly) going in OO. I put it up on my page aihtdikh.googlepages.com if you want to play with it.

Marque Pierre Sondergaard
profile image
Had to check the date. Is this an April's fools joke?

Anonymous
profile image
Been there, done that (in 2004). :-)

http://youtube.com/watch?v=_whSnPErl7c

Andreas Umbach
profile image
Excel really is the Swiss Army Knife of software tools. It can be used to accomplish *insert MacGyver reference here*.

However, if you have a specialised tool available, it usually beats Excel by a fair margin.

Carl Pearson
profile image
Great article! Excel has always been my very good friend (well, once 'doze 95 came around, and Quattro faded out of existence...). It never ceases to amaze me just *how* versatile a program it is.

Also, thanks for the Dvorak plug! Having typed with it for almost 20 years, I'm sorry so many people continue to hurt their hands with Qwerty!

Lastly, go ahead and flame me, Ian, but you're dead wrong about Word. If you were really that heavy a coder that far back, you would never have used *that* sucky a program.

Word Perfect was THE choice for anyone who typed until 'doze took over. The old DOS Word was absolutely terrible. (You want to stick in all this formatting crap, but don't give me Reveal Codes? Come on...)

The 'doze version of Word may be today's standard, but it still blows dead bears.

However, even with WP's excellent macro abilities & keyboard re-mapping, I would never have considered using it for coding.

Qedit all the way!

Anonymous
profile image
Done before (2002)

http://www.microtron.org.uk/~craig/Microtron/Projects/XL3Drender/XL3Drender.xls
There are other shapes in that directory that can be rendered.

Tim Leach
profile image
Very interesting! I had never thought of Excel being a 3D Game Engine before, but I like the idea of it!

If I'm understanding this correctly, though, wouldn't it be possible to have 60 sheets and emulate the "60 frames per second" staple we have in traditional video games today? It would certainly sort out the issue of fluidity.

Thomas Eidson
profile image
I worked at a flow pump engineering firm in 1994. They wanted, for some bizarre reason, flow efficiency charts for speed and material graphed in AutoCAD. I used Excel for the datapoints and had it output LISP and used (I believe) DDE to get AutoCAD to cooperate with Excel (Windows 3.11). It took the graphing time from a manual 1 1/2 hours down to 3 minutes. The algorithms to get the splines functioning were in the cells, the conversion was in VB, and the DDE simply was a file to load and execute in AutoCAD. :)

richard feynman
profile image
@ Brian Embleton,

Are you retarded? The author of this article is trying to demonstrate the proof of concept for a change in paradigm with regard to coding structure. He was not attempting to compare the performance of excel data calculations to hardware matrix manipulations. Plus, hardware graphics processes are limited in the size of matrices which can be operated on. Try to work with matrices with thousands, or millions of rows/columns as is done in high energy physics simulations/reconstructions and your GPU is about as as worthless as a Ti-89. Charles Babbage envisioned a "universal machine" which has yet to come to realization. A step away from architecture based paradigms is inevitable. Your gamer oriented thinking is so hardware-centric that it has blinded you from seeing the big, long term picture.

Lorenzo Wang
profile image
Actually, QWERTY was designed to break up common letter pairs, not all succesive keystroke, and no study so far has managed to show Dvorak being superior to QWERTY in typing speed. Comfort is subjective.

Anyways, this was an awesome artilce, I look forward to the first Excel MMORPG!

Tim Maly
profile image
Awesome article and very cool ideas. But Ugh! Why did you have to keep perpetuating the myth that QWERTY was designed to slow typists down? DVORAK may be superior to QWERTY but the idea that QWERTY is intentionally slower has been pretty thoroughly debunked.

http://www.reason.com/news/show/29944.html

yutt nkik
profile image
@Anonymous

That "Excellence" video by Ananasmurska is pretty impressive. It isn't really a 3D engine, but an interesting example of what intelligent people with too much free time can do, with any tool. :)

Jarmo Petajaaho
profile image
Figure 4 is currently linked to a wrong image. This is the correct one:
http://www.gamasutra.com/db_area/images/feature/3563/figure4.png

Andrew Lauritzen
profile image
Hehe I think some of you guys are missing the point. Unless I'm utterly mistaken, the article is written very "tongue in cheek" and while it's structured like an argumentative paper/essay, the ideas itself are ridiculous (Excel as a 3D engine?? lol!).

Indeed *that* is what is genius about the article: the way that it is written! All of the little details and arguments are similarly structured to papers, all-the-while being preposterous when actually considered. While the idea/implementation may not be new, it's the article that is the real cleverness.

Harun Vos
profile image
Hear hear, Andrew!
The idea is clever, but it is the writing that is truly superb.

Peter Mikelsons
profile image
Is it just me, or is this basically reinventing functional programming? And, since Excel yelled at me the last time I tried to make a circular reference in it, without the benefit of recursion?

Anonymous
profile image
Excel was made by Aliens. Bill barrowed the source when he was abducted. It is actually a Universal Galactic Operating System (UGOS). You need 7 fingers on your left hand and 6 on your right to activate it but I found an egg that created a static warp shell around my monitor. Found a way to localize it around my CPU which really increases the over clocking potential. Exciting stuff!

Andy Lundell
profile image
Not as cool as this, but once I implemented Conway's Game of Life in Excel for a school project.

It was the only time in my college career that a prof marked a paper "A+++" like it was eBay feedback.

Zombie Games
profile image
Very interesting I could possibly make pong or something in it, not very useful but fun.

G G
profile image
Makes me think back to the Caslte Wolfenstein / Doom -like Easter egg embedded in Excel 95.
http://www.eeggs.com/items/719.html

Bartlomiej Dzik
profile image
Very well written and ingenious article. While most lay people still believe that Excel is designed to perform boring calculations, accounting and so on, Excel is, in fact, a powerful gaming platform. There are well over a hundred games developed in Excel VBA: arcades puzzles , and even strategy and dungeon crawlers (see my website) and I am currently developing a full-scale RPG in Excel in the style of early Ultimas.

And you can fc play these games at work - this is another strong advantage of Excel gaming engine :)

saç ekimi
profile image
It's not the bleeding-edge engine that can be used to produce famous games like Half Life 2, Unreal Engine (Unreal Tournament), idTech 4 (Doom 3), CryENGINE2 (Crysis) or Clever's Paradox, but it's for simpler usage.

dur cos
profile image
while Excel may not be a modern GPU, it, like the DS, Flash, Shockwave, etc, can be used. excel is very useful program indeed.

dur cos
profile image
while Excel may not be a modern GPU, it, like the DS, Flash, Shockwave, etc, can be used. excel is very useful program indeed.

mos tod
profile image
Big E-Z has lots of cool
programming that makes good use of your Excel program. It doesn't
matter what your skill level is -- anyone can use it


none
 
Comment:
 


Submit Comment