Results 1 to 9 of 9

Thread: adding depth

  1. #1
    imbue
    Guest

    adding depth

    Can someone tell me where a good tutorial on adding depth is. I mean like using a z axis. Please help.

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    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?
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3
    imbue
    Guest
    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?

  4. #4
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    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.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  5. #5
    imbue
    Guest
    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?

  6. #6
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    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.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  7. #7
    imbue
    Guest
    Ok I'll look some more. Thanks.

  8. #8
    Zaei
    Guest
    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.

  9. #9
    imbue
    Guest
    Ok thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width