Using the mouse to click in 3D space with DirectX 8

Level:
Level4

This problem usually has people scratching their heads for a semi-decent amount of time - and it's no wonder why. There is a fair bit of math to get your head around. So a fair amount of google searching, reading through books, pouring over the gamedev messageboards and two university level math classes later. This sample source code should really be used in conjunction with this tutorial: Using the mouse to click in 3D space with DirectX 8 and VB Tutorial.

 

Download VB6 source code sample  

Comments

hey i think i may have found

hey i think i may have found a bug check it out:
D3DDevice.Present ByVal 0, ByVal 0, 0, ByVal 0

that line of code was detected when i tired to run the program

you must not click X, hit

you must not click X, hit Escape instead. The author forgot to disable to X

Great!!!!!!!!!!!!!!!!!!!!

now i can feed some 3D effects in my Projects

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post block code using <blockcode [type="language"]>...</blockcode> tags. You may also post inline code using <code [type="language"]>...</code> tags.

More information about formatting options