Can someone tell me where a good tutorial on adding depth is. I mean like using a z axis. Please help.
Printable View
Can someone tell me where a good tutorial on adding depth is. I mean like using a z axis. Please help.
Depends on how detailed the depth is supposed to be; if you want a full rotation 3d view (like an FPS) then you need to do some heavy research into DirectX or OpenGL or other similar 3D engines.
Could you detail what you have in mind?
I just want to draw some wireframe objects onto the screen and have it look good. I really dont want to get into Direct X or Open GL. I want to know the math to convert a 3d point into a 2d point. I found an article somewhere that had:
2dx = ((512*x)/(512+z))
2dy = (-(512*y)/(512+z))
and I tried that, and well it looks kinda funny. And fake. Any ideas?
Welllll you're basically talking about writing your own 3d renderer...that's quite a huge job.
It would be easier to get the DirectX SDK for VB and do it from there.
If you really want to make a simple 3d engine, there's a ton of tutorials on the web.
I've been looking for hours and haven't been able to find any helpful tutorials yet. Do you know where I could find one?
Unfortunately all the tutorials i've ever used are in C++...
try searching under "principles of 3d graphics"
Or if you've got some cash to shell out, you can learn the basic principles of 3d programming from a lot of books.
Ok I'll look some more. Thanks.
If you just want a simple transformation from 3D to 2D space, you can use fairly simple formulas, but if you want to do things like rotations, camera motion, etc, you are getting into the realm of Matrix transformations which are a bit more difficult. As mlewis, said, It would be best to check out D3D or OGL (D3D recommended, there are tutorials for VB at http://www.vbexplorer.com/directx4vb ).
Z.
Ok thanks.