c# - Drawing a Grid for placement in 3D space -


hello more advanced coders,

i having great difficulty finding answers questions unfortunately, being self taught have no clue whatsoever proper terminology things i'm doing. result more difficult answer question needs be. apologies in advance.

i cobbling little game vanity project in player spaceship stuff.

i have property called bounding_dimensions_property

using system;  namespace madness_in_space {     public class bounding_dimensions_property     {     public int x;     public int y;     public int z;      public bounding_dimensions_property (int xx, int yy, int zz)     {         this.x = xx;         this.y = yy;         this.z = zz;     } } 

}

this describes grid of possible points in place room.

i wish visualise grid on windows form orthographic plan , section , isometric view (just pretties).


actual question

what methods there available me, take x,y,z values , draw grid on windows form has "x" length , "y" width, line each whole number value between "x" or "y" , 0? wish same "y" , "z" grid. use method allows me take each cube within grid , set "occupied" or "vacant". toying idea of using multidimensional array/hashtable hold occupancy information, don't know if that's sensible.


i have further questions first i'll make sure 1 isn't rejected.

apologies again if i'm spouting gibberish - appears am.

thanks in advance, matt

ok, did more reading , think best bet instantiate bitmap , draw using draw commands.

i use values in coordinates i'm working from, divide width/height of bitmap required number of lines, take lower figure of 2 , draw straight lines across bitmap @ interval.

once works i'll come , post code don't have put prose description.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -