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 / What am I doing wrong?

Author
Message
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 27th Aug 2010 17:13
Hi I posted this in a prior post but seems peeps either didn't know or missed it. So I am reposting afresh.
I am playing with ODE physics and have wrote a simple test program so I can start playing around with stuff. However I am kind of stumped as to why the ball drops and bounces perfectly and then, falls through the floor..


http://s6.bitefight.org/c.php?uid=103081
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 27th Aug 2010 18:36
Quote: "inc y#,.00000000001"
What is this supposed to do?

The fastest code is the code never written.
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 27th Aug 2010 19:10
I hate to say it but since the ODE commands aren't documented they may be messed up.

DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 27th Aug 2010 19:11 Edited at: 27th Aug 2010 19:16
Nothing anymore lol, I was using it to add to the object angular velocity command before I realized I could simply use 0 and gravity took effect. Just ignore that. Forgot to remove it (there are a few lines not really needed in there, remmed most out). For some reason if you don't add any force to the objects they just sit there without gravity at all, not matter how you set world gravity or object gravity it seems. Perhaps it is a bug, but would have thought it a pretty major one.

http://s6.bitefight.org/c.php?uid=103081
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 28th Aug 2010 16:51
I take it that no one here uses ODE physics? Does my program do the same on your systems as mine? Considering the hooha that TGC made about it in the newletter ages ago I would have thought it fairly good. Doesn't FPS creator use ODE?
If I add in two dropping objects to this the effect is made worse, as soon as one object makes contact, the second falls through on next bounce, followed by the first. It seems as if they cancel each others collision out somehow.
Nobody has any ideas?

http://s6.bitefight.org/c.php?uid=103081
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 28th Aug 2010 17:35 Edited at: 28th Aug 2010 17:40
Quote: "I take it that no one here uses ODE physics?"


I hadn't till I saw your post.

Quote: "Does my program do the same on your systems as mine?"


Yes.

Quote: "Nobody has any ideas?"


I haven't yet.

I'd need to study BatVink's tutorial and play with the commands a bit first. The odd thing is that the object falls through the floor after a noticeable delay. Makes me think that a hidden counter or timer is getting reset somehow. I haven't tried two objects yet.

Edit This thread is a good example where a relevant thread title is essential. There probably aren't many people around who use the ODE commands and most of those who do probably wouldn't notice this thread. Surely a more sensible title would have been something like "Why won't this ODE code work crrectly?". If you're lucky a kind Mod might change it for you.
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 29th Aug 2010 00:20
Perhaps, but I thought I would get more takers if I neglected to mention physics in the title . At least I know it's not just my machine now
It does seem like a flag being reset/flagged at some point causing the problem. One object will bounce happily until it comes to rest, or close to it. Two objects cause the collision bug to start as soon as the second object hits, it bounces, then both will drop through the floor next time they hit It is really annoying as it works so well before it bugs out.
I am amazed more people haven't played with it as it's included free as standard. I would have thought anyone who didn't buy dark physics would have tried it at least. I have dark physics, but thought this might be a nice way to have limited physics without the need for external drivers.
I looked for some sort of idle rest command but as yet not found one that seems to fit the bill. Plus the 2 object test shows it is not just the rest bit causing the issue.
It is a shame that TGC doesn't do a good full tutorial on this. Dark Physics included lol, although at least with that this program would work flawlessly.
I will have to search for BatVink's tutorial, don't think I've seen it.

http://s6.bitefight.org/c.php?uid=103081
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 29th Aug 2010 11:50
Quote: "I will have to search for BatVink's tutorial, don't think I've seen it."


Newsletter 34.
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 29th Aug 2010 18:58
Had a look at it, unfortunately, it seems to have the same bug, although, not always.

This is one of the demo programs I have changed it so it can re-run over rather than ending evry time and it fails straightaway on the first reset you try. It certainly seems a little flaky

http://s6.bitefight.org/c.php?uid=103081
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 29th Aug 2010 19:39 Edited at: 29th Aug 2010 20:43
Make a bug report?

Edit Found this. Might be worth a look.

MikeS ODE demo and documentation
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 29th Aug 2010 20:43
I will do. Never done that before, always found some work around to any bugs in the past. this is a little beyond my skills though lol. Thanks for the help. I will update if I get a Eureka moment!

http://s6.bitefight.org/c.php?uid=103081

Login to post a reply

Server time is: 2026-07-23 12:10:48
Your offset time is: 2026-07-23 12:10:48