PDA

Click to See Complete Forum and Search --> : Displaying a 3D array


SLH
Jun 15th, 2002, 06:06 AM
Hi all,

I'm creating a 3D game, and it consists mainly of a 3D array or boolean values. I need a nice and simple set of functions so that i can display them. I don't care how crap it looks, as long as i can view it from any angle, and the blocks are displayed. Does anyone know of any simple functions that can do this?

Zaei
Jun 15th, 2002, 10:23 AM
Its never going to be as simple as you like. D3D will probably be the best bet(easiest).

http://www.directx4vb.com

Z.

/\/\isanThr0p
Jun 15th, 2002, 10:24 AM
hey slh
I believe you have to do it yourself
but anyways its not going to be to hard
you could just initialize on cube and than put a for loop (3 nested ones actually) and transform it to x*widht,y*width,z*width and than render it...

SLH
Jun 15th, 2002, 02:43 PM
Zaie: Thanks for the link, i'll have a look. (I didn't think it would be easy, but as what i want to do is simple (compared with what DX could do), i hoped someone may have done it before.

/\/\isanThr0p: I've never worked with anything more complicated than BitBlt before. Hope fully after going to directx4vb, i'll know how to initialize a cube. I've done what i want to do in 2D, so that i could work out how best to approch the prob, and agree that your method is probably the easiest (It's only a 3D array of Boolean Values after all).

/\/\isanThr0p
Jun 15th, 2002, 04:05 PM
yeah Zaei posted right when I was writing my post... I think after reading through the first 4 tutorials you should be able to do what you want...