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.

3 Dimensional Chat / Confused about Collisions

Author
Message
BearCDPOLD
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 23rd Dec 2003 06:29
Hi guys,
I made a pitiful attempt at a collision. I have a textured plain in the center of a textured skysphere. I tried making an invisible box that would follow the camera around and serve as a collision object since DarkBASIC classic doesn't allow for camera-collisions. If you guys need me to isolate the code a little bit then just yell at me and I'll fix it.

thanks

Juvenile Industries
Current Project: The First Room (FPS)
Soon to come:An rts, and a snowball fight game
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 23rd Dec 2003 13:13 Edited at: 23rd Dec 2003 13:15
Hmmm, I won't change your code, but here's a couple of things to consider.

Firstly, try making your player object position the same as the camera by positioning it at the camera location before checking collision.

Secondly, the check collision function does'nt appear to specify any objects to check - perhaps it needs the object references - it could be that CamhitX Y and Z are storing object numbers instead of offsets. It could be that it needs to detect an actual collision with OBJECT HIT or something before assigning the offsets to GET OBJECT COLLISION X() etc.


Van-B
P.S. Ignore that source attached to this post, it's just the same thing.


Next time he runs past, GRAB HIM!
BearCDPOLD
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 24th Dec 2003 04:00
Thanks Van-B! I'm tryin' that right now.

Juvenile Industries
Current Project: The First Room (FPS)
Soon to come:An rts, and a snowball fight game
John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 24th Dec 2003 04:07
Try the Nuclear Glory Collision DLL as well.

www.nuclearglory.com

Ha! Beat you to it NG

RPGamer


Dont forget to Join the Forums!
BearCDPOLD
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 24th Dec 2003 05:17 Edited at: 24th Dec 2003 05:24
Your observations really got the clock ticking Van B, thanks man.

@RPGamer I checked out Nuclear Glory's DLL, looked so awesome I had to wipe the saliva off the keyboard. But when I tried the 2.02 demo it wouldn't let me include the NGCollision.dba file. Do I need to get the enhancement pack to use #includes if I already have upgraded to DBClassic v1.13?


thanks & merry christmas eve eve ,
juvy

Juvenile Industries
Current Project: The First Room (FPS)
Soon to come:An rts, and a snowball fight game
nuclear glory
22
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 24th Dec 2003 15:09 Edited at: 24th Dec 2003 15:15
lol @ RPGamer
EDIT: I wasn't slacking by the way. I was building a forum for our website that can now be found under the "Community" section.

@Juvenile Industries
Yes, for DBClassic you need the enhancement pack. As I recall, the enhancement pack is necessary to use DLLs anyway, so there's probably no way around that.

Let me know if you have any other questions.

Lead Programmer/Director
Powerful Collision DLL for DBPro: http://www.nuclearglory.com
BearCDPOLD
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 24th Dec 2003 18:00
Thanks nuclearglory,
As soon as I pull together some mula I'll try your DLL out, all the screenshots on your site look beautiful, and the program that molds matrices to 3d objects was an answer to my prayers as well.

juvy

Juvenile Industries
Current Project: The First Room (FPS)
Soon to come:An rts, and a snowball fight game

Login to post a reply

Server time is: 2026-07-07 03:02:12
Your offset time is: 2026-07-07 03:02:12