VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



DirectX7 Dropship Carrier (YES collision detection IS possible

by Phil Grossman (4 Submissions)
Category: DirectX
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

I've been labouring to achieve collision detection in directX and I'm pretty sure this is the best method so far, try it out! The answer was to draw a plan (or footprint) of the directX world in greyscale on a bitmap & use the picpoint method to create collision detection, sounds dodgy? check the code out.. It's fast (about 30fps for this example) & at least does away with inefficient tables & indicies.
Now you can stop yourself walking through walls, clib stairs & open doors (try the blue door).
Any comments would be greatly received.
BTW this is a pretty pleasant looking (if a bit grey - to save .zip space) little directX world to show a few examples of the method. Quick note, press 'I' to see information, 'ESC' to quit the program.
VERY IMPORTANT!!!!!!!!!
The texture files wouldn't upload to VBC so I've published them on the following web addresses, I know its a pain, but I just couldn't upload (made the zip file too big)
Go to the address, download the image to the 'textures' folder and rename them as below
https://photos.bravenet.com/921/451/014/143B7131BF.jpg
PLAN000001.jpg
https://photos.bravenet.com/921/451/014/69083C6148.jpg
PLAN000002.jpg
https://photos.bravenet.com/921/451/014/121339B6A5.jpg
starfield1.jpg
https://photos.bravenet.com/921/451/014/CEF4E68296.jpg
TEXTGUNB01.jpg
https://photos.bravenet.com/921/451/014/7AEBE60E7B.jpg
TEXTRUST11.jpg
https://photos.bravenet.com/921/451/014/E94BC0BD56.jpg
TEXTRUST01.jpg
https://photos.bravenet.com/921/451/014/E0703FA361.jpg
TEXTRUST02.jpg
https://photos.bravenet.com/921/451/014/00A4C47A44.jpg
TEXTRUST03.jpg
----------------------
I'm
really sorry about that, but I tried over 50 times to upload them and it just wouldn't work, maybe I can update the zip file when the sites in a more robust state.

Rate DirectX7 Dropship Carrier (YES collision detection IS possible

Download DirectX7 Dropship Carrier (YES collision detection IS possible

Download DirectX7 Dropship Carrier (YES collision detection IS possible (158 KB)

DirectX7 Dropship Carrier (YES collision detection IS possible Comments

No comments have been posted about DirectX7 Dropship Carrier (YES collision detection IS possible. Why not be the first to post a comment about DirectX7 Dropship Carrier (YES collision detection IS possible.

Post your comment

Subject:
Message:
0/1000 characters