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.

Program Announcements / Newton Game Dynamics WRAPPER v1.30

Author
Message
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 4th Dec 2004 15:10 Edited at: 4th Dec 2004 15:12
Well here it is at last, the newest version of my Newton Game Dynamics SDK wrapper for DBPro.

lots of new features in this version, heres a short list:

New collision primitives (Cylinder, Ellipsoid, Cone, Chamfer Cylinder, Capsule, Convex Hull )
Vehicle system
Improved Ragdoll system
Improved wrapper interface (removed some commands, added others)
RayCast system
and much more!

DEMO SCREENSHOTS:

Collision Primitives DEMO


Joints DEMO


Materials & Collision DEMO


FPS Example DEMO


Vehicle DEMO


Buoyancy DEMO


Simple Ragdoll DEMO


DEMO EXE DOWNLOAD (rar archive, about 11MB)

----------------------

Wrapper includes:
NDB.dll (now with Newton.dll built in)
source code to all 8 demos
Brand new Rigid BodyDesigner tool for making complex bodies easily.
Documentation for all commands!
Keywords file for highliting in IDE
Ragdoll tutorial

WRAPPER DOWNLOAD - rar archive, about 4MB.

don't forget I have a forum just for the wrapper that gets pretty good traffic... post any questions/comments in this thread, or on my forum (at my WEBSITE)

Let the physics begin!

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
French gui
20
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 4th Dec 2004 15:46
Wonderful!!! Downloading now! (PS:I love you!)

My English is not so good I'm just French
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 4th Dec 2004 19:35
hoot hoot

go walaber

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
BealziBob
20
Years of Service
User Offline
Joined: 9th Jul 2004
Location: The Grim North (UK)
Posted: 4th Dec 2004 19:44
I've been grinding my teeth waiting for this.

Good work walaber!

The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 4th Dec 2004 20:39
when i try to run the code (In dbpro) it say "Could not understand line ..."

In every demo i try it stop at the line were there stand "NDB_NewtonCreate"




WHY!! PLEASE HELP




The Nerd

wanna join Waggames?
then visit our site at : http://www.freewebs.com/waggames
my old forum name was: The Nerd
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 4th Dec 2004 20:45
read the README file... you haven't installed the wrapper properly.

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 4th Dec 2004 21:02
Downloading now.

Walaber I also love you!!!


The word "Gullible" cannot be found in any English Dictionary.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 4th Dec 2004 21:45
Looks very interesting. I'll begin experiments. THis oculd be very very useful

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 4th Dec 2004 21:51 Edited at: 4th Dec 2004 21:53
I got a problem

When I compile any of the demos I get this error:

Command in DLL command-table duplicated (NDB.dll:NDB_DestroyVehicle)

then the program runs very wierd or just crashes.


The word "Gullible" cannot be found in any English Dictionary.
DEANO
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United States
Posted: 4th Dec 2004 22:00 Edited at: 4th Dec 2004 22:26
Just Totally Awesome!
This is by far some of the coolest things to happen to DBP.
GREAT work! I love the joint demo, my mind is on over load, thinking of ways to use it.


Deano

"When I examine myself and my methods of thought, I come to the conclusion that the gift of fantasy has meant more than my talent for absorbing positive knowledge."
-ALBERT EINSTEIN
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 4th Dec 2004 22:24
yes awsome the vehicle demo works for me now for some reason

we`ll never have to wory about game physics again :p


hmm
21
Years of Service
User Offline
Joined: 11th Oct 2003
Location:
Posted: 4th Dec 2004 22:25
Awesome, though i am having a couple of probs. The programs run very slow when making new objects, and the message box at the top flickers constantly. Also, the materials demo doesn't work for me. I just get a plain blue screen and can fire balls...

Still, excellent piece of work, and im very excited about starting some vehicle demos

coincidence? how about pure cosmic convergence!
Oliver
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 4th Dec 2004 22:29
@Flashing Blade
Try updating darkbasic to v5.7, that worked for me. The demos now work fine, however I still the same error message at the beginning everytime.

@walaber
Very, very nice
jwurmz
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: Arizona, USA
Posted: 4th Dec 2004 22:31 Edited at: 4th Dec 2004 22:36
walaber: i'm having the same problem as Flashing Blade... except mine won't even compile


"Creativity is knowing how to hide your sources" - Einstein

Attachments

Login to view attachments
dj chainz
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 4th Dec 2004 22:32
Very cool! I cant wait to make a physics mini game - maybe a boat race game i thought?

I am the lead programmer at red spark studios
I also have a blog on how to make a game engine
http://www.dbgame.blogspot.com
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 4th Dec 2004 22:47
@ Oliver, I'm on 5.7

Most of the demos compile & run, but they don't look right. The ones that work the text instructions flicker and seem to run at low fps. The FPS demo compiles and runs but is virtualy un-controlable.


The word "Gullible" cannot be found in any English Dictionary.
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 4th Dec 2004 22:52
Redownload and install.

Make sure you put both the new Newton.dll in the project folder and the new NDB.dll in the plugins folder.
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 4th Dec 2004 22:52 Edited at: 4th Dec 2004 22:56
I had 2 entries for NDB_DestroyVehicle in the string table... I've fixed the NDB.dll, and am uploading a fixed version of the wrapper now.

those who have already downloaded can get the fixed NDB.dll by clicking on the download button in this post.

for those having problems
with the new wrapper, you ONLY need NDB.dll in your plugins-user directory. there is no longer any need to Newton.dll to be anywhere on your system, it's built into the wrapper. if you have Newton.dll in your plugins-user directory, or your program directory, delete it! have a look at my demos, none of them use Newton.dll

also, I did all of this with DBPro version 1.055, so I'm not sure if there are any problems with other versions... I was too scared to update to 1.057 mid-project

anyone having problems, please post your Windows version, and what version of DBPro your using!

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB

Attachments

Login to view attachments
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 4th Dec 2004 22:57
@ Walaber thanx - d/loading now

@ Chris K - I think the NBD.dll now has Newton.dll built in so I don't think you need newton.dll in project folder.


The word "Gullible" cannot be found in any English Dictionary.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 4th Dec 2004 23:08
Quote: "walaber: i'm having the same problem as Flashing Blade... except mine won't even compile"


Have you got two copies of newton in the plugins-user directory?

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 4th Dec 2004 23:13 Edited at: 5th Dec 2004 00:08
Don't get error now but programs demos still run same

Most flicker and run slow
FPS one is un-controlable.



*Edit*
DBpro 5.7
DirectX 9.0c

*Edit 2*
Just downloaded example exes - wow! Damn I'm jelous of all of you who have it working.


The word "Gullible" cannot be found in any English Dictionary.
hmm
21
Years of Service
User Offline
Joined: 11th Oct 2003
Location:
Posted: 4th Dec 2004 23:33
Yeah, same here. Must be due to DBPro versions.

coincidence? how about pure cosmic convergence!
BealziBob
20
Years of Service
User Offline
Joined: 9th Jul 2004
Location: The Grim North (UK)
Posted: 4th Dec 2004 23:47
Works perfectly here with:

DBPro U5.7
DirectX9.0c
Enhancement, EZRotate, NuclearGlory 3, BlueGUI2 and Cloth&Particles packs installed.

This is top notch stuff Walaber. Playtime!

Oliver
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 4th Dec 2004 23:57 Edited at: 4th Dec 2004 23:57
This is brillant!!!



In under 30 seconds i added rag dolls to the FPS game. All I need now is a vechile (though that will probably another 30s) and I'll have the next halo game done by this evening!

Attachments

Login to view attachments
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 5th Dec 2004 00:13 Edited at: 5th Dec 2004 00:36
Quote: "if you want the help files to work in the IDE, copy all of the HTM files from the "help" directory into your DarkBasicPro "Help" directory!"


I couldnt find a help folder included with the zip file, did you mean the docs folder?

[edit] Amazing things can be done with this wrapper, thanks Walaber



WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 5th Dec 2004 00:18
Yippee got it working.
I recently re-instaled DBpro but never updated IDE. Just updated IDE and works fine now.

This is top stuff - well done Walaber.




The word "Gullible" cannot be found in any English Dictionary.
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 5th Dec 2004 00:52
i cannot get newton to compile it just halts on the compilation screen no error just does nothing , i have win 98se and dbp 5.7 or something the latest one anyways


Narf The Mouse
20
Years of Service
User Offline
Joined: 16th Jul 2004
Location:
Posted: 5th Dec 2004 02:36
Neat!

The physics reactions in the vehicle demo need toning down, though. It's nearly uncontrolable.

Cheese!
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 5th Dec 2004 03:41
This works quite well on my machine. However, I have one question. Even if I set the sync rate to 0, the maximum frame rate it hits is 60. I know that my machine can go higher, is it something in the DLL itself that maximizes the sync rate?

Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 5th Dec 2004 03:43
Yayyy.........................
Downloading....

Quote: "I've seen the word programming and I'm not sure what it means. Anybody please explain?"


Quote: "We shouldn't sacrifice the truth to preserve "balance"."
Cpt Caveman
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: New Zealand
Posted: 5th Dec 2004 04:23
I got a problem, the precompiled demos run flawlessly, but when I try to compile my own, they start at 33fps max where as the precompiled demos start at 66fps. Use can see the newton objects being made in my compiled demos, but the precompiled demos you dont. Also the vehicle demo stops as the truck is being created and says file not found

I have also tried the new dll that was posted after the initial release of the wrapper

Im using Windows XP SP1, DBpro version 5.7
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 5th Dec 2004 04:35
Run it in "Fullscreen Exclusive Mode".
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 5th Dec 2004 04:36
Very very nice Walaber . May take me a while to get used to the commands, but I will .

The vehicle seems to be driving on ice though, or it just has super wheel spin or something, cos if you get up to a certain speed, turning just makes the car spin. Any idea how to counteract this effect?

Isn't it? Wasn't it? Marvellous!
Cpt Caveman
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: New Zealand
Posted: 5th Dec 2004 04:40
set display mode 1024,768,32 that at the beginning fixes my problem
Mr Underhill
21
Years of Service
User Offline
Joined: 23rd Apr 2003
Location: The Forgotten Worlds...
Posted: 5th Dec 2004 05:15 Edited at: 5th Dec 2004 05:35
I can't get it to work...
The program compiled and everything, but when it starts I just get a black screen and eventually the program quits itself (or I quit it via Control-Alt-Delete). I rem'd the subroutine out of the program, and it compiles and runs as normal. What am I doing wrong??

Here's the initialization routine, for anyone who's interested:

Thanks in advance to anyone who can help!
~Underhill

{PS} I'm running DBP 5.7 under Windows XP SP2. I've tried the code in BlueIDE and TwilightIDE, and it failed both times. The demos compile and run fine.

Quote: "A kilobyte is 1024 bytes, not 1028.
I mean.... not.. that i.... new that already.... i figured... maybe... CRUD! IM A NERD! -Ion Stream"

I feel your pain, man. Wait...pain?!
Cpt Caveman
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: New Zealand
Posted: 5th Dec 2004 05:31 Edited at: 5th Dec 2004 05:50
If I make the torque=315

if keystate(17)
ACCEL = 1
Torque# = 315.0
endif

and steering angle=35

MaxSteeringAngle# = 35.0 - ((vel#/100.0)*35.0)

Then it drives alot slower but the ice driving disappears
ChrisyB
20
Years of Service
User Offline
Joined: 28th Feb 2004
Location: UK
Posted: 5th Dec 2004 06:29
I'm having problems compiling the demos, I get 2 illigal ops then nothing happens, I'm just sitting looking at the ide.

Using Win98SE and DBPro 1.055.

I tried upgrading to v1.057 but then nothing compiles at all.
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 5th Dec 2004 06:44
yeh most dll`s give me 2 illegal op`s but they usually compile and work, seems win 98se has some issues

@christy b i got exact sae prob as you although the earlier version of this wrapper worked fine.


ChrisyB
20
Years of Service
User Offline
Joined: 28th Feb 2004
Location: UK
Posted: 5th Dec 2004 07:04
Yer all earlier versions of the wrapper that I have used have worked fine after a couple of illigal ops it's just now it's started with the major problems.

Hopefully this doesn't mean I have to upgrade my perfectly safe Win98 PC to the brightly coloured evil that is XP.
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 5th Dec 2004 07:06
Don't worry, you can set it to Classic mode like me.

Green start button? Are you kidding me?!
ALPHA ZERO PRODUCTIONS
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 5th Dec 2004 07:38
well its the first version to work on my pc with no problems............................nice work walaber


ALPHA ZERO PRODUCTIONS
NEW WEBSITE ONLINE
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 5th Dec 2004 08:50
Flashing Blade - glad you got it working!

Oliver - very cool! does shooting the ragdolls work without any modification? i think it should...

Merix - sorry, that's a typo. it's the "docs" folder!

dark coder - seems to be a Win98se problem... the old wrapper had problems for Win98se users too... perhaps I can try recompiling the DLL in Debug mode, and see if that changes anything for you...

Hamish McHaggis - the vehicle demo is VERY simple, and in a real game, you would want to do something other than just set torque to a constant value. I think it's slipping because the tires have too much torque constantly, so they lose traction and spin too fast. There are lots of resources on the net about coding a "gearbox", adding something like that would probably help a lot. at the very least, having the torque ramp up from 0 slowly would also probably help a lot. the suspension settings of the truck also come into play. I have it set really "bouncy" in the demo.

Mr Underhill - couple problems with your code. in general you're missing steps. for example:
Quote: "ndb_player=NDB_NewtonCreateConvexHull(3)
NDB_BodySetDBProData ndb_player,3"

the CreateConvexHull command creates collision geometry. this is just a description of the shape. then you must call NDB_NewtonCreateBody() on that collision to make it into a Rigid Body. after that call the SetDBProData command.

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
jwurmz
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: Arizona, USA
Posted: 5th Dec 2004 09:49 Edited at: 5th Dec 2004 09:49
walaber: great job, everything works here. i was just wondering, is there a way to limit how far the bouyance plane's reach is? (instead of it stretching for the whole newton world size)

"Creativity is knowing how to hide your sources" - Einstein
walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 5th Dec 2004 10:03
jwurmz, no, a plane is by definition infinite. you need to perform some kind of check on your own, and turn buoyancy on/off based on if the body is in your "water volume" or not.

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB
Mr Underhill
21
Years of Service
User Offline
Joined: 23rd Apr 2003
Location: The Forgotten Worlds...
Posted: 5th Dec 2004 10:31
Quote: "Mr Underhill - couple problems with your code. in general you're missing steps. for example:

Quote: "ndb_player=NDB_NewtonCreateConvexHull(3)
NDB_BodySetDBProData ndb_player,3"

the CreateConvexHull command creates collision geometry. this is just a description of the shape. then you must call NDB_NewtonCreateBody() on that collision to make it into a Rigid Body. after that call the SetDBProData command."


Yeah, just found that out from reading demo #1. I was probably looking for an object that doesn't exist, hence the hold-up. I'll try again, and I'll report my results. Thanks, man!

Quote: "A kilobyte is 1024 bytes, not 1028.
I mean.... not.. that i.... new that already.... i figured... maybe... CRUD! IM A NERD! -Ion Stream"

I feel your pain, man. Wait...pain?!
jwurmz
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: Arizona, USA
Posted: 5th Dec 2004 10:45
walaber: figured so, shouldn't be a problem making zones. another question (hope you don't mind) - is there a way to load a prefab mesh (X mesh), scale it about the x, y, or z axis (each axis allowing for different amounts), and create tree collision from it that takes into account the new xyz scales? i've tried a few things, but i'm stuck...

"Creativity is knowing how to hide your sources" - Einstein
tiresius
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 5th Dec 2004 10:50
The help files weren't working for me until I deleted file BIDEkeywords from the directory so Blue IDE could re-build. Just thought I'd pass that along!
Mr Underhill
21
Years of Service
User Offline
Joined: 23rd Apr 2003
Location: The Forgotten Worlds...
Posted: 5th Dec 2004 11:00 Edited at: 12th Dec 2004 01:16
OK, I'm back from fixing the code...no luck . It still gives me a blank screen and shuts itself off. Here's the troublemaking code:

My problem is that I don't see a problem . It should work fine, right?
Ah, well. I'll just re-make the whole program to make it work. It's not like I had much to begin with , I mean,60+% of the old code was physics to make it work, and Newton pretty much makes that obsolete already.

Quote: "A kilobyte is 1024 bytes, not 1028.
I mean.... not.. that i.... new that already.... i figured... maybe... CRUD! IM A NERD! -Ion Stream"

I feel your pain, man. Wait...pain?!
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 5th Dec 2004 11:12
I am getting two weird issues with the FPS demo but I think it has to do mainly with slope. Sometimes the ability to jump just completely goes away, also I've noticed if you jump you also seem to bob back up a tiny bit after you land. But on certain parts of the level (the terrain is uneaven and hilly so like I said, it might be slope) you can't jump at all.

The second part is similar, sometimes you can't shoot. The bullet isn't placed and nothing you shoot is affected. It seems to turn on and off randomly.

And I still can't get above 60 FPS. Any ideas?

walaber
21
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 5th Dec 2004 11:17
jwurmz - not currently, because when you access the vertex data, DBPro doesn't account for scale. the object is scaled with it's rendered, it's base data doesn't change. however I think I have an idea for a solution that may be in an upcoming release. for now, just pre-scale in your modeller!

Go Go Gadget DBPRO!

Athlon XP 2400+ || DDR-SDRAM 1GB || Nvidia GeForce 4 Ti4200 AGP 8x 128MB

Login to post a reply

Server time is: 2024-11-25 11:07:37
Your offset time is: 2024-11-25 11:07:37