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  

If you enjoyed this post, subscribe for updates (it's free)

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