Results 1 to 6 of 6

Thread: Good Books

  1. #1

    Thread Starter
    Fanatic Member x-ice's Avatar
    Join Date
    Mar 2004
    Location
    UK
    Posts
    671

    Resolved Good Books

    I am new to DirectX but would class myself as an 'almost advanced' VB programmer.

    What good books are out there for Graphics and Game programming using DirectX that you can recommend?

    I found this one that has good reviews, anyone read it?: http://www.amazon.co.uk/exec/obidos/...208072-2561201
    Last edited by x-ice; Apr 16th, 2005 at 07:51 PM.

  2. #2
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Good Books

    DirectX9 cannot be used in VB6. Only in the .NET languages such as VB.NET, VC++.NET, etc.

    DirectX support for VB6 only went up to DirectX 8.1

    I recommend Microsoft Visual Basic Game Programming With DirectX by Jonathan S. Harbour. The only thing I dislike about that book is how they did the 3D camera stuff. They did it all wrong.

    Another awesome book I recommend (although it's in C++ but the concepts can be used in VB) is the best 3D game programming book I've ever read called Tricks of the 3D Game Programming Gurus by Andre LaMothe. Lot's and lot's of math, not to mention it can help ya create a killer 3D engine with or even without DirectX. It helped me produce Z-Buffered Perspective Correct Texture Mapped polygons using pure VB. Ran pretty good to like around 30 FPS.

  3. #3

    Thread Starter
    Fanatic Member x-ice's Avatar
    Join Date
    Mar 2004
    Location
    UK
    Posts
    671

    Re: Good Books

    Quote Originally Posted by Jacob Roman
    It helped me produce Z-Buffered Perspective Correct Texture Mapped polygons using pure VB. Ran pretty good to like around 30 FPS.
    Ok thanks for the suggestions, you have lost me totally on the stuff i quoted above.

    Edit: Microsoft Visual Basic Game Programming With DirectX by Jonathan S. Harbour

    Is it this one? http://www.amazon.co.uk/exec/obidos/...454266-9262037
    Attached Images Attached Images  
    Last edited by x-ice; Apr 16th, 2005 at 07:26 PM.

  4. #4
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Good Books

    Yep, that's the one.

  5. #5

    Thread Starter
    Fanatic Member x-ice's Avatar
    Join Date
    Mar 2004
    Location
    UK
    Posts
    671

    Re: Good Books

    what was wrong with the way they did the 3d camera stuff?

  6. #6
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Good Books

    The book used D3DXMatrixLookAtLH to move the camera around, which was not the correct way of doing it. The reason why is because by the time your camera passes 0, 0, 0 in world space, the camera for some reason will turn around on it's own like half a circle in a smooth motion, even if you were moving straight! D3DXMatrixLookAtLH is actually supposed to be initialized once.

    To have complete control of the camera, you have to do matrix math to the camera matrix in order for it to move properly. I have code for you to get a camera moving like a First Person Shooter located in www.angelfire.com/fl5/memorydll/index.html

    You can either download R-Type_3D.zip or MKvsSF.zip. Both of them have it to where you move the camera like a FPS using the numpad keys. The arrow keys just move the sprites.

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