Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Help with 3D matrix, 3D spreadsheet.

  1. May 25, 2008 #1
    I have been told something like a 3D spreadsheet is difficult to program.
    I am developing a computer game that requires a 3d matrix, like a 3d spreadsheet, so you have X, Y, and Z co-ordinates. The action would be at these intersections, where one XYZ would be one color, say a small sphere placed there, glowing blue and other XYZ's with small spheres glowing red, and they can be turned off an on in either color depending on the moves of the game.
    Can anyone tell me how to do such a thing? I am not a programmer, only a bit of VB and HP48 and casio programmable calculator stuff. The matrix size would be under 20X20X20 so it's not like an infinite thing at all. Thanks in advance.
     
  2. jcsd
  3. May 25, 2008 #2

    rcgldr

    User Avatar
    Homework Helper

    Maybe you could find source code to a 3d tic-tac-toe program, and start from there. The 3D difficulty is mainly an issue for how to display a 3D matrix on a 2D screen, and have the result be reasonably understandable, especially with 20x20x20 cubes.
     
  4. May 25, 2008 #3

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

    Isn't this the reason for HDF files?????
     
  5. May 25, 2008 #4
    What are HDF files? BTW in my game, I want to be able to rotate the playing space around in any direction so you can view whats going on in the game.
     
  6. May 26, 2008 #5

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Help with 3D matrix, 3D spreadsheet.
  1. MATLAB 3D graphs help (Replies: 0)

  2. 3D Programming (Replies: 4)

  3. Fortran 3D array (Replies: 3)

Loading...