I have never done anything in 3D yet and would like to know how to create a simple 3D wirefram box and be able to rotate it.
Thanks a lot
:) :) :) :)
Printable View
I have never done anything in 3D yet and would like to know how to create a simple 3D wirefram box and be able to rotate it.
Thanks a lot
:) :) :) :)
1 Good thing, 1 bad thing about 3D programming.
Bad:
Takes a long time to display a dot :(
Good:
Takes about 5 minutes longer to display a 3D model :D
So, having said that, ask Zaei about D3D8.
nah should be:
Bad:
Takes a year to code the dot
Good:
Takes two years to display it.
A 3d wireframe box can be present as 12 lines with 8 coordinates, pairs of pairs of pairs whereas each pair are displaced only in respective dimenion. Rotation can be done using transformation matrices.
Nah, it doesnt take all that long to draw the dot...
...But drawing the cube is a lot harder. Luckily, D3D makes that easier (although its arguable =). I recommend http://www.vbexplorer.com/directx4vb. Read over the tutorials, DO THEM (I think it helps to print them out), and learn the material. Dont just hop straight into 3D, because youll get lost, but you will get there quick enough by doing the tutorials. When you do end up at the 3D section, Use "D3DDevice.SetRenderState D3DRS_FILLMODE, D3DFILL_NONE". This will draw everything in wireframe mode.Code:SetPixelV(myHDC, 100, 100, RGB(128, 128, 128))
Z.
:p :p :p Goto the thread: Cheap 3-D for a control that makes it really easy to do this, perspective and more try it out!!!