PDA

View Full Version : 3d scene



joker40
03-19-2011, 06:02 AM
I have drawn 3d cube something like this...



int cube [8][3] = {
{-2000, -2000, -2000},
{-2000, -2000, 2000},
{-2000, 2000, 2000},
{-2000, 2000, -2000},
{ 2000, -2000, -2000},
{ 2000, -2000, 2000},
{ 2000, 2000, 2000},
{ 2000, 2000, -2000}
};


What I am trying to do now is create five 3d rectangles that will all be same size but all will be placed inside my 3d cube from above.All 3d rectangles will be same size but placed at different position inside 3d cube.

Can anyone help me with this or explain how to draw 3d polygon and place it in different position inside.