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.

Bug Reports / OBJECT Collision problems... May been a bug?

Author
Message
Space Fractal
20
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 29th Sep 2005 18:26
After a 2-3 weeks trouble to get the code right, I guess this may been buggede or something I does not know:

Look in the Attached Picture, the code is here too.

I do not known If it a bug or have forgot something?

he best way was to use a polygon to polygon check, after having used a box to box check. Maybeen.

There are no limbs used (wich you can see on the road in the picture down) and is just a really simple boxes and rectagle object with no texture.


NB. All Object are picthed 90 degree down, due that way they was made in Deled.

http://www.PlayITgame.org

Attachments

Login to view attachments
Space Fractal
20
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 29th Sep 2005 18:44
Here is a another picture, that have a clear bug problem with the collision system..... It still some grass objeact that touch the building, but it dosen't (it really far from).

The objects size is 4096x4096 units big, dothis matter? Should I scale them down?

http://www.PlayITgame.org

Attachments

Login to view attachments
spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 29th Sep 2005 19:03 Edited at: 29th Sep 2005 19:03
Without some code and probably the objects as well, it is too difficult to diagnose the problem.

Can you create the smallest code snippet you can, together with the objects and any textures the objects need, put them all in a zip file and upload the zip file. This forum accepts large attachments.

Boo!
Space Fractal
20
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 29th Sep 2005 23:35 Edited at: 29th Sep 2005 23:37
here we go.

Had created a example code with the problem.

- Move the object with the mouse
- Click to remove the touched blocks. AS you can se, it just removed to much. It here the problem is.

http://www.PlayITgame.org

Attachments

Login to view attachments
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 29th Sep 2005 23:52
DBP's collision commands are almost completely useless in DBP 5.8 public. If you can get ahold of the 5.8 sdk version it is perfect though. Somehow they broke them again along with alot of other things that were fixed for the final 5.8 release.

See this thread for more info on the collision bugs.

http://forum.thegamecreators.com/?m=forum_view&t=15146&b=15

spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 30th Sep 2005 00:39 Edited at: 30th Sep 2005 00:39
The gas station is just a tad too big so adding this line after loading it helps;

scale object object_pick,99,99,99

If you then set collision to boxes for both the gas station and the grass by either setting it when you load them, or changing your last function to;

if object exist(a) and object exist(b)
SET OBJECT COLLISION TO BOXES b
SET OBJECT COLLISION TO BOXES a
res=OBJECT HIT(a,b)
endif

Your code then works perfectly, and only two bits of grass are removed per mouse click.

Boo!
Space Fractal
20
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 30th Sep 2005 01:11 Edited at: 30th Sep 2005 18:17
the only problem it doing the same thing with Grass_Insect.x (wich is a much smaller grass in size) object. It remove 6 bits. I have tried to scale, but it diddent help. Maybe I need to make my own that calculate the whole thing (it detect size of them fine).

The best thing is to using a Polygon to Polygon test, but by down it detect anything, when SET OBJECT COLLISION TO XXXX was used.

[EDIT]
Can NG Collision DLL (wich I planing to bying) doing the same thing?

It shold been much better than these, as I can see in the another it a bit buggede and inacuate?

[/EDIT]

NB. I do not like scaling the object, because it may rotated and it use topleft as a center, that work perfectly in editor.I guess it scaled down in the created center.

NB. Im using 5.8 version. I heard it may messed in that version?

http://www.PlayITgame.org

Login to post a reply

Server time is: 2024-04-26 08:54:42
Your offset time is: 2024-04-26 08:54:42