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.

Newcomers DBPro Corner / Collision Slow-mo

Author
Message
Levanthus
21
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 27th Mar 2010 00:07
I have a wierd problem i have never encountered before, I have made a small room, 4 walls and floor, 1 solid object. I set collision to polygons, but when i try and move an object within the "room" it moves really slowly, even when not touching any walls or the floor, if i turnthe collision off, it moves at normal speed.

Any ideas?

Windows 7 64 bit, AMD Phenom II x4 Black edition, 4 GB Ram, Radeon HD 4650, 540 GB HDD

I can see from your smile, you're not here for the sunset.
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 27th Mar 2010 01:21
What kinda collision do you have?....do you use sparky´s ?

cheers.

I'm not a grumpy grandpa
Levanthus
21
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 27th Mar 2010 01:34
Sparky's? wassat?

Windows 7 64 bit, AMD Phenom II x4 Black edition, 4 GB Ram, Radeon HD 4650, 540 GB HDD

I can see from your smile, you're not here for the sunset.
Dia
19
Years of Service
User Offline
Joined: 16th Jan 2005
Location:
Posted: 27th Mar 2010 05:56
show us your code and it might help.

for example if you are calling some intensive routine every game loop instead of using it once before your main loop etc

This is not the Sig you are looking for....
Levanthus
21
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 27th Mar 2010 13:17 Edited at: 27th Mar 2010 13:19
ok.. my code is a bit messy at the moment as i'm just testing a few things.



Now i am aware that i don't need the Matrix in there, thats just from where i first tried to make the camera controls and had no objects.

Windows 7 64 bit, AMD Phenom II x4 Black edition, 4 GB Ram, Radeon HD 4650, 540 GB HDD

I can see from your smile, you're not here for the sunset.
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 27th Mar 2010 21:24
Quote: "Sparky's? wassat?"

If you use sparky´s collision, you`ll gain a lot of speed, and this dll is completly free...just serach in TGC Forum.

I can´t see where could be the problem , perhaps the quantity you dispace the model , or your camera...

Have you tried to increment the amount of displacement ?...I don´t know either if it is a proble of your object .x , is it to big??
Could you compres you code and all media in a rar file, and post it in the forum ?...that could help.


Cheers.

I'm not a grumpy grandpa
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 27th Mar 2010 22:22
Quote: "I set collision to polygons"


This will slow down your game, regardless of whether or not you use sparky's collision. Whether you are actually colliding with something or not makes no difference, it still has got to check very polygon. To get the best speed, I would suggest that you get sparky's dll (look on the dll board and check for sparky) and set up your crypt3.x file as a complex object, then set up your sphere as a regular object with sphere collision. The speed increase you will find with sparky's is definitely worth the time to learn how to use it. There are many threads about sparky's on this forum.

Levanthus
21
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 28th Mar 2010 10:43 Edited at: 28th Mar 2010 11:52
Ok so i got sparky's DLL... but i don't understand it. Maybe it's cuz i haven't slept all night but i just can't figure out how to use it, i pretty much figure that SC_SetupComplexObject is the basic command i'd have to put after loading my level and SC_setupObject would be after making the "player" object and the like... but thats about as much as i can figure out

*edit*
Ok i messed with it a bit, and i pretty much used one of the demo codes just changing the "level" entity, and i copied the code exactly.... but there is no collision going on, i just go stright through the walls

Windows 7 64 bit, AMD Phenom II x4 Black edition, 4 GB Ram, Radeon HD 4650, 540 GB HDD

I can see from your smile, you're not here for the sunset.
Levanthus
21
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 28th Mar 2010 12:02
never mind... problem solved

Windows 7 64 bit, AMD Phenom II x4 Black edition, 4 GB Ram, Radeon HD 4650, 540 GB HDD

I can see from your smile, you're not here for the sunset.

Login to post a reply

Server time is: 2024-11-24 17:50:12
Your offset time is: 2024-11-24 17:50:12