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 / ODE physics help files?

Author
Message
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 22nd Aug 2010 21:13
I have the latest 1.075 release of db and thought I'd have a play at using physics for my latest project, instead of faking it as I am doing at present(gravity that is not physics lol).
However I seem to have a problem with the commands and their relevant help files. If I try a command I know of say ode set gravity, it highlights ok, but has no parameters listed. Pressing F1 takes me to the help screen but just the basic menu screen no help. I found an old keywords file and that has solved the parameters issue, if I can trust one from 2006 to be up to date.
Still I need the html files for the help if they exist? I was hoping for an editor update to fix this but there doesn't seem to be a separate download anymore, so can only figure I have the latest one.
I must be missing something somehow. Does anyone else have this problem? Is there somewhere with the latest help files available?

http://s6.bitefight.org/c.php?uid=103081
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 23rd Aug 2010 13:19
MikeS wrote some Unofficial ODE documentation here:

http://forum.thegamecreators.com/?m=forum_view&t=81194&b=1
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 23rd Aug 2010 17:06 Edited at: 23rd Aug 2010 18:09
Thanks! That will help a little, Although I am at a loss as to why it is included in DB as standard with no help reference built in at all, apart from it just highlighting blue.
Anyway, if theres no support theres no support, I will just have to muddle through. i have played about with a fairly basic program to start. The familiar ball dropping program.

I have got this going but, the object works perfectly until it comes to rest. Then it falls through the object and loses it's collision on the rest. I have tried a few of the commands I have seen off your docs to solve this, but none have had any effect on it (stopping it falling through), the bounce etc was effected and such but always falls through when coming to rest.
What command if any am I missing here? I have Dark Physics too and never had this issue, unless it fell through because of it's collision check rate(can't remember the exact command name lol).
Any ideas? Oh one last question, the gravity doesn't seem to work unless I put in a command to apply a force of some kind in the loop. Even if it is 0. Seems odd to me. Again am I doing something wrong?

Edit - After playing a little more I can see it is not when it comes to rest, it is when it stops bouncing that it falls through the static object.

http://s6.bitefight.org/c.php?uid=103081
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 24th Aug 2010 03:51
BUMP- Sorry but would like to see if anyone knows why this code has this horrible bug/error.

http://s6.bitefight.org/c.php?uid=103081
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 17th Nov 2010 01:41
Yeah, I get the same result.
There seems to be a bug in ODE physics, there is a current bug report about this, hopefully it will get fixed.
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 17th Nov 2010 03:15 Edited at: 17th Nov 2010 03:19
ODE Physics seems to have changed in update 7.5. I have started a thread http://forum.thegamecreators.com/?m=forum_view&t=177278&b=1. I was having a problem with Dark Principals ODE tutorial. Also, Avoth is having problems getting the ODE section of Hands on Vol2, to work http://forum.thegamecreators.com/?m=forum_view&t=177712&b=7. Since, I have went back to using update 7.4. Your code is working fine, here!

Brian

Have netbook will travel.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 17th Nov 2010 10:03
Does that mean ODE is broken in 7.5 or just different?

I was going to start learning for a game I'm working on...

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 17th Nov 2010 18:29 Edited at: 17th Nov 2010 18:37
Broken until they fix it in DBPro 7.5.
Seems to work OK in DBPro 7.4
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 19th Nov 2010 02:32
Ah news! The bug report was mine! Lol. At least theres a fix. Will continue my exploration of the physics in 7.5 then. or go back a version if I can't wait, which I doubt. Cheers for the update!

http://s6.bitefight.org/c.php?uid=103081
Slayer93
19
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 28th Nov 2010 00:24
Played around with it a bit and I guess you might have to clear the ode messages for it to work correctly. It's a weird bug and not sure why it happens yet (maybe it overflows)

Adding this into the loop, to clear all collision messages, and it works fine.



DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 28th Nov 2010 20:14 Edited at: 8th Dec 2010 18:26
Really? I will have to try it! Physics would be a nice addition to my current project. Was waiting for a fix in the next update but if that works then problem solved!

Edit yes works a treat! Thanks for the heads up!

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

Login to post a reply

Server time is: 2024-05-02 13:42:26
Your offset time is: 2024-05-02 13:42:26