Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Sliding Collision

Author
Message
Seppuku Arts
Moderator
19
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 2nd Aug 2005 15:11 Edited at: 2nd Aug 2005 15:18
{EDIT} Ignore this, my problem was what lost in thought mentioned above about DBP 5.8, should've looked before I posted Awesome collision code dudes!

Cyril Grey
19
Years of Service
User Offline
Joined: 28th Jan 2005
Location:
Posted: 2nd Aug 2005 20:00
Awsome code! Thanks for posting it!! It's teaching me a few new things

Cyril

With math all things are possible
G Man
19
Years of Service
User Offline
Joined: 17th Nov 2004
Location:
Posted: 3rd Aug 2005 01:10
Thanks. Providing something to help folks learn was my motivation behind putting this out here...

Intel Pentium 4, 3.4GHz, 1280MB RAM, NVidia Quadro FX3000/256MB, 240GB HD, XP Pro
Erick G
Retired Moderator
19
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 4th Aug 2005 21:32
nice stuff, I would like to convert this to DarkSDK.
G Man
19
Years of Service
User Offline
Joined: 17th Nov 2004
Location:
Posted: 5th Aug 2005 00:54
Go for it! It would be cool if you posted the converted source code back in here though for others to use.

Intel Pentium 4, 3.4GHz, 1280MB RAM, NVidia Quadro FX3000/256MB, 240GB HD, XP Pro
Erick G
Retired Moderator
19
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 5th Aug 2005 07:46
Ok, hopefully I can have a look at it this weekend

Thanks for the awsome code !
Erick G
Retired Moderator
19
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 8th Aug 2005 08:30
here is the DarkSDK code. For those interested in how easily code ports between db pro and the DarkSDK, this took about 20 minutes to convert. However, I am using Visual Assist, so it made life a whole lot easier. There are 1 or 2 funnies though, but here is the code.

Thanks gman and LIT for some awsome code.

Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 8th Aug 2005 12:52
It was all based on GMAN's idea. I just helped him work around a few bugs in it It really is a simple and pretty effective code that will be alot faster and better if the DBP collision commands are ever fixed and stay fixed.

G Man
19
Years of Service
User Offline
Joined: 17th Nov 2004
Location:
Posted: 9th Aug 2005 01:38
So what kind of frame rate do you get with it running in DBP versus DarkSDK?

Intel Pentium 4, 3.4GHz, 1280MB RAM, NVidia Quadro FX3000/256MB, 240GB HD, XP Pro
Erick G
Retired Moderator
19
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 10th Aug 2005 08:17
Quote: "So what kind of frame rate do you get with it running in DBP versus DarkSDK?"


I never even looked at that I will have a look for you tonight and report back.
Cian Rice
19
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 1st Sep 2005 23:20
Ah... I get a problem

If I use a .dbo I made to test it with the collision without altering the code except for changing the model (just to see what everything looks like in DBP) however it always crashes on start. Any explantion? I changed the code for 5.8 and everything. o_O

Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 2nd Sep 2005 07:40
Will the model load by itself without the rest of the code?

Cian Rice
19
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 2nd Sep 2005 19:02
Yes it will.

Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 2nd Sep 2005 23:04
Interesting. Any chance of making the model available (either on the forum or send it through email)? I might be able to find out why it crashes.

Cian Rice
19
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 4th Sep 2005 22:47
Sure I'll put it on filefront later since its only a test level and it wont be used in the final product.

G Man
19
Years of Service
User Offline
Joined: 17th Nov 2004
Location:
Posted: 17th Sep 2005 06:56
I've used this with .DBO models with no probs whatsoever... You do have all the media files you need in the same directory as the model right? Not having them there would cause a crash.

Intel Pentium 4, 3.4GHz, 1280MB RAM, NVidia Quadro FX3000/256MB, 240GB HD, XP Pro

Login to post a reply

Server time is: 2024-05-18 09:34:53
Your offset time is: 2024-05-18 09:34:53