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.

DarkBASIC Professional Discussion / Polygon Collision Problem...

Author
Message
Mike Inel
23
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Sa upuan ko po...
Posted: 29th Nov 2003 06:05
I still can't figure out why my BG object can't become polygonal in collision ("Set object colision to polygons,id")

It always turn out to be box, even "Set object colision to spheres,id".

I use 3dsmax for making this object. Why is this problem???



You're lookin' at the ZOE2 freak, y'know.
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 29th Nov 2003 06:25
The inbuilt polygon collision in DBPro is built for simplicity and speed, but personally I find it so simple the constraints make it complicated.

There are various solutions to polygonal collision, here's what I use: http://www.liquid-hosting.com/banshee/pResourceInfo.htm.

There is also a dll by Nuclear Glory, although i've not tried it myself so I cannot advise on it.


God created the world in 7 days, but we're still waiting for the patch.
nuclear glory
22
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 30th Nov 2003 11:23
We have released version 2.01 for DBPro.

Check us out at: http://www.nuclearglory.com

Feel free to post any questions.

Lead Programmer/Director
Powerful Collision DLL for DBPro: http://www.nuclearglory.com
Mussi
23
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 30th Nov 2003 23:30
note: if you scale youre object in DBP the collision fails

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb ddr sdram
nuclear glory
22
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 1st Dec 2003 00:47
If the object is scaled BEFORE calling the CollisionTypePRO() command for the object, then scaling works.

Lead Programmer/Director
Powerful Collision DLL for DBPro: http://www.nuclearglory.com
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 1st Dec 2003 03:44
Intersect Object.

Everything you ever wanted from a collision detection system except understood.


God created the world in 7 days, but we're still waiting for the patch.
Mike Inel
23
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Sa upuan ko po...
Posted: 1st Dec 2003 12:10
I don't want any includes, Dlls, or something, I just want a simple "Set object collision to polygons,id".
This command still worked at DBC but in DBPro, problems came...
Oh, yeah... I haven't scaled my model, if you'll ask.

Any ideas of this problem???

You're lookin' at the ZOE2 freak, y'know.
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 1st Dec 2003 16:57
Intersect Object.


God created the world in 7 days, but we're still waiting for the patch.
Mike Inel
23
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Sa upuan ko po...
Posted: 2nd Dec 2003 10:52
No... What I meant to say is that instead of polygons are the collisions, it became box, as if I entered "Set object collision to box,id", But I entered there "Set object collision to polygons,id".


You're lookin' at the ZOE2 freak, y'know.
M00NSHiNE
22
Years of Service
User Offline
Joined: 4th Aug 2003
Location: England, UK
Posted: 2nd Dec 2003 14:09
ive not tried it but nuclearglory's dll is the only way to go if you want decent collision....either half the board has joined together and lied about how good it is, or its a damn good piece of coding.

ZEDWARE website coming soon... //END TRANSMISSION//
Soundbox
22
Years of Service
User Offline
Joined: 30th Nov 2003
Location:
Posted: 2nd Dec 2003 19:09
I'm having the exact same problem here when I use the
"Set object collision to polygons,id" command it just doesn't seem to work. How does this come?? About the scaling, yes I tried putting the scale command above, didn't work. I also didn't scale at all but it still didn't work. What am I doing wrong??
nuclear glory
22
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 2nd Dec 2003 19:24 Edited at: 2nd Dec 2003 19:44
@Soundbox
You were using our DLL with the scaling command right?

I don't know if scaling affects the "Set object collision to polygons,id" or not.

When using our system, it is important to put the block of constants at the top of the program. Otherwise everything will get pushed through as 0 and make trouble.

Make sure to examine our download, as it does work well.

One problem you could be having with our DLL, is if you're using a loaded .3ds model, as the triangle data seems to be corrupted in the memory block so our DLL receives a bunch of garbage data. If this is the case, try converting it to an X model and give it a run.

EDIT:
@M00NSHiNE
I do know that you were looking forward to a version of our DLL that handled corners better without jittering around.

We have released v2.01 (in case you didn't know) and it does have a lot better handling of corners without jumping around.

Just want to make sure you knew we had a new version out

Lead Programmer/Director
Powerful Collision DLL for DBPro: http://www.nuclearglory.com
Soundbox
22
Years of Service
User Offline
Joined: 30th Nov 2003
Location:
Posted: 2nd Dec 2003 20:51
No I haven't used your dll. I was just wondering why the normal darkbasic pro command for polygon collision doesn't work?
But there seems to be no other option than to use your dll, I only find it a bit weird that darkbasic hasn't a proper command for this.
(sorry for my bad english, Im not english )
Mussi
23
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 2nd Dec 2003 22:29 Edited at: 2nd Dec 2003 22:30
well, even if it would work...DBP's standart collision system is slooooooooooooooooow so why don't you try kensupen's .X collision code or nuclearglory's .DLL

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb ddr sdram
Mike Inel
23
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Sa upuan ko po...
Posted: 3rd Dec 2003 11:43
... But how am I suppose to make "set object collision to polygon,id" work???


You're lookin' at the ZOE2 freak, y'know.
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 4th Dec 2003 03:00
If you really really really want to be use rudimentarry collision then you can use set object collision to polygon. You will not get the results that you are after as one check object HAS To be cuboid, only the object you are checking against can by polygonal.

The reason it has taken this long to get to this answer is because we really are trying to help you by saying there are much simpler & faster methods of collision than the very generic method included.

Also included is the command intersect object, this will give you all the power you need to do ANY collision task in DBPro. My download based upon Kensupens research help to teach some of what you can do with this command to you, if you dont like the #include command because your allergic to the hash key, then just use it to learn from.

Failing that use the .dll from Nuclear Glory, it is widely supported here and very popular. It is also simpler to use than the inbuilt collision system, faster and from what I gather more accurate.


God created the world in 7 days, but we're still waiting for the patch.
Kjelle
23
Years of Service
User Offline
Joined: 29th Sep 2002
Location:
Posted: 4th Dec 2003 21:50
I tried to use nuclearglorys very promising code. 2.01 demover.
However, it seems that i cant rotate objects that I want to make Polymesh detection on, it seems that the DLL remembers the initial position of the object and work as if it still was in that position when colliding. Any suggestions ? Any way to reset and start from the new position? (Ultimate Performance is not needed, rather excellent collision detection)

It surely looks promising, and i'll be the first one who buys it if they get the rotation to work properly. I have a project that is depending on this solution.
nuclear glory
22
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 4th Dec 2003 22:48
Greetings,

Yes, it wasn't coded to handle rotation/scaling yet (only movement)

I have made notes to put in rotation/scaling support for the release.

Thanks for the post

Lead Programmer/Director
Powerful Collision DLL for DBPro: http://www.nuclearglory.com
Lampton Worm
23
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 4th Dec 2003 22:52
Hi,

Can you please confirm if 2.01 has rotatation/scaling support?

Thanks in advance
nuclear glory
22
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 4th Dec 2003 22:56
Greetings,

Version 2.01 does not have rotation/scaling support. I will add that in the upgrade for v2.02. (All buyers get free upgrades, for anyone who doesn't know)

Lead Programmer/Director
Powerful Collision DLL for DBPro: http://www.nuclearglory.com
Lampton Worm
23
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 4th Dec 2003 23:31
Thank you, that's good news. Man, you guys are QUICK off the mark! Not only excellent support from the live php stuff on your site, but you represent your stuff on the forums... kudos. I'm very impressed Great DLL btw. Well worth it,

Cheers.
nuclear glory
22
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 4th Dec 2003 23:48
@LamptonWorm
Thanks a million. I'm glad we could help

As you may already know, we have placed testimonials on our website to assist in the promotion of the DLL. Would you be so kind as to let us use your last post as a testimonial on our website? No obligation. And if you're okay with that, is there a name you would like placed next to the testimonial?

Again, thanks a lot

Lead Programmer/Director
Powerful Collision DLL for DBPro: http://www.nuclearglory.com
Lampton Worm
23
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 5th Dec 2003 11:14
Yup, no problem with that. Stick "LamptonWorm" down for the name.
Jaze
22
Years of Service
User Offline
Joined: 20th Nov 2003
Location: Connecticut, USA
Posted: 5th Dec 2003 11:25
How about Joe Schmoe - its a business page man - LamptonWorm?
Cool handle but I would venture to say he's asking for your NAME

hehe

-=/Jaze/=-

Login to post a reply

Server time is: 2026-07-26 20:16:25
Your offset time is: 2026-07-26 20:16:25