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 / MikeS's Unofficial ODE docs with example program

Author
Message
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 9th Jun 2006 20:02
For one of my next projects I needed to use ODE, nothing more and nothing less than what the wrapper currently supports. So I spent some time playing around with ODE, and here's what I have.

The download includes a sample program that'll show you the basics of getting and using ODE. The docs are about 1/4 complete. They really aren't there as a tutorial, but more to help out those who've already attempted to use the ODE wrapper but couldn't quite understand.

If nothing, the most important part of the download is a function I've included to properly load and use any type of triangle mesh(static of dynamic) in your programs.

If you'd like to build on my ODE docs, know of some ODE documentation elsewhere(for DBP), found any bugs, or anything else related to ODE, lemme know.

I can't promise any fixes, or major updates to the docs, but just thought it'd be better to release them as is, then not to release them at all. As I've mentioned, the triangle mesh is the most important part, as it was previously thought bugged(Yet it was just a case of proper use).

Enjoy, hope this helps out some.



A book? I hate book. Book is stupid.
(Formerly Yellow)

Attachments

Login to view attachments
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 9th Jun 2006 20:08
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 14th Jun 2006 13:36
sweet, thats great

夢の海に目覚めること - Into the sea of waking dreams - I am by John Clare
Oolite
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 14th Jun 2006 15:28
awesome, i really like ODE and i'm glad to see its getting more support.
I already know the basics and more, it has potential, it just needs some c++ whizz to tap into it.
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 14th Jun 2006 19:05
great - thanks

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 14th Jun 2006 21:09
Thanks guys, glad to see lots more interested. I'll be sure to keep adding to this as I find out more information.



A book? I hate book. Book is stupid.
(Formerly Yellow)
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 15th Jun 2006 20:07
Can't Wait mike This is really useful

Stunt man 2 http://forum.thegamecreators.com/?m=forum_view&t=79827&b=8&p=0
WHITEKNUCKLE IS BACK! Check the wip boards for more info
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 18th Jun 2006 00:28 Edited at: 18th Jun 2006 00:28
Working on another example, but have encountered a problem.



As you can see from the screenshot, the objects stop moving once they're done interacting with each other. Anyone else have this problem? I want to ensure that gravity works on all objects even once they're done moving so they can move again.

Sorry if that sounds kind of confusing, not sure how to explain, but take a look at the source.


The Source Code(A bit messy, but will be cleaned up later)




A book? I hate book. Book is stupid.
(Formerly Yellow)

Attachments

Login to view attachments
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 18th Jun 2006 02:01
MikeS, I'm glad you got ODE going, as I gave up due to errornous oddities on different machines. I did a DBP plugin a while back, (my site under the portfolio section)

Anyway, your gear looks cool.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 18th Jun 2006 02:32
Thanks Paul, and I remember your wrapper from a long while back.



A book? I hate book. Book is stupid.
(Formerly Yellow)
Juso
22
Years of Service
User Offline
Joined: 23rd Sep 2002
Location: Finland
Posted: 14th Jul 2006 12:01
What ode dll version you need to run example.dba lying in mikes_unofficial_ode.zip ?

And what dbpro? 5.9 or 6.1 or 6.2 or 6.2b ?
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 15th Jul 2006 00:31
I believe this was using ODE 5.9 and DBP 6.1. All samples should still work with the latest ODE and DBP updates.



A book? I hate book. Book is stupid.
(Formerly Yellow)
Oolite
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 15th Jul 2006 02:28 Edited at: 15th Jul 2006 02:32
@Mike: Regarding the example, do you mean that once you have deleted a block with a sphere resting on it, it doesn't move?
I may have a solution if that is the case.


OFFTOPIC: [Also, your forum isn't sending me an activation code]
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 15th Jul 2006 20:40
Yup, that was the original problem.

Send me an e-mail at yellow1dbp at hotmail.com and I'll take care of your account for you.



A book? I hate book. Book is stupid.
(Formerly Yellow)
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 23rd Jul 2006 16:12
Hi, I've got dbpro 6.2 but when I compile your examples, I don't have the same things at all : in the first one, all objects won't collide and move oddly. In the second one, all spheres are near the origin (only a few units). So I wonder if you have an other version of the ode dll.

Thank you and good luck for your doc .
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 23rd Jul 2006 21:14
Yeah, the examples aren't compiling properly with the old dll, so I'll have to update them. The examples should still work properly once copy and pasted if everything is the newest version though.



A book? I hate book. Book is stupid.
(Formerly Yellow)
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 23rd Jul 2006 21:27
I also had troubles compiling the following examples with DBPro Version 6.2(The boxes was just floating odly around in the air and so on). So what I did was I downloaded the extras for DBPro 6.2 and took the new ODE dll from that folder and overwrote it with the old ODE dll, and it all worked perfectly again

Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 23rd Jul 2006 22:57
That's better now thank you, man.

Login to post a reply

Server time is: 2024-11-25 11:50:04
Your offset time is: 2024-11-25 11:50:04