Rob Van Gelder and 3D

January 12th, 2005 | Categories: Sites | Tags:
-->

cubeRob van Gelder has a good site, and well worth a visit.

I haven’t explored the entire site yet because I’ve been playing with the 3D model rotate tool, easily one of the best homegrown 3d effects I’ve seen. There’s much to learn just in this spreadsheet alone.

I had the thought that it would be cool if somebody developed some automated routines for the 3D object. I don’t have the time or the ability to do any elaborate routines, but I did start an elementary routine for using code to manipulate the 3D Object, maybe it will save somebody 10 minutes if they want to play also.

To use the following code, place it at the bottom of the Sheet1(Convex 3D) Worksheet module, in Rob’s 3d workbook, and run it.

Sub markrotate()

Cells.Select
Selection.Interior.ColorIndex = 1
Drag_Box.Visible = False

Dim x As Integer
For x = 1 To 500
Sheet1.Cells(9, 2) = x / 50 'spin
Sheet1.Cells(3, 2) = x / 2 'size
Call Polygon
DoEvents
Next

For x = 1 To 250
Sheet1.Cells(12, 2) = x / -30 'spin
Call Polygon
DoEvents
Next

Cells.Select
Selection.Interior.ColorIndex = 2
Drag_Box.Visible = True

End Sub
Can't get the tutorial to work for you? Need help with your code?
Get answers right away at our AE Excel Support Forums!
  1. January 12th, 2005 at 18:57
    Reply | Quote | #1

    Yeah, rob’s workbook is VERY cool. I was going to do a blog post about that last week, but I forgot about it. You beat me to it.

  2. January 12th, 2005 at 20:38
    Reply | Quote | #2

    Hi.

    Thanks for the kind words – I’m glad you like it.

    Just keep in mind that I didn’t really write it – though I do understand 3d programming.
    I translated some Java sources into Excel worksheet functions / vba function.

    The original Java applets can be found here:
    http://www.ibiblio.org/e-notes/3Dapp/Convex.htm

    That site has got other neat shapes which, with some effort, you could put into the workbook.

    Cheers,
    Rob

  3. Mark
    January 13th, 2005 at 00:31
    Reply | Quote | #3

    J-walk, thanks for stopping by. Another link can’t hurt anything.

    Rob, I should have mentioned the additional credit, thanks for clarifying. Still, having the vision to take that page and morph it into Excel is pretty amazing and I’m sure no small feat.

  4. January 13th, 2005 at 02:59
    Reply | Quote | #4

    well j-walk has some spinning shapes aswell!,
    http://j-walk.com/ss/excel/files/animate.exe
    I also saw a animated 3-D pie chart addin recently – uttley useless, but might be intresting, sorry no link, but it’s out there somewhere….ohhhhh