Newton + Ogre

Share with us how are you using the powerrrr of the force

Moderator: Alain

Postby walaber » Tue Dec 07, 2004 10:47 pm

this morning I completely re-structured my classes... I realized I was going about it the wrong way.

so I re-designed the class heirarchy, and am much happier with the new setup.

next I'm hoping to work out object dragging, and then go after joints, including the vehicle joint. :D Hopefully I'll have some kind of simple OgreNewt demo pretty soon...
Independent game developer of (mostly) physics-based games. Creator of "JellyCar" and lead designer of "Where's My Water?"
User avatar
walaber
Moderator
Moderator
 
Posts: 393
Joined: Wed Mar 17, 2004 3:40 am
Location: California, USA

Postby The unProfessional » Wed Dec 08, 2004 3:54 pm

Yeah, I'm using the tree collision for a very large piece of terrain, and newton seems to be handling it remarkably well.

A quick look (not Ogre, just commenting on the tree collision issue)
http://theunprofessional.com/screenshot ... rsmoke.jpg

I've yet to try the heightmap implementation... I'm sure I will at some point :)

Note: my skybox * and fog is off... so just ignore the distant background.
The unProfessional
 
Posts: 131
Joined: Sun May 02, 2004 9:08 pm
Location: Southern California

Postby walaber » Sun Dec 12, 2004 1:34 am

this morning before coming into work I got the vehicle joint up and running in Ogre! it parses everything about the vehicle from a config file, so I can change everything about the vehicle without re-compiling... so far I have it loading the chassis, and setting up the wheels, and filling the class with all of the necessary variables.

now I need to write the update routine that calculates the torque and steering, and I'll be on my way to my mini-game :)

but first, I need to implement the debug visualization system, to make sure the tires are being created correctly...
Independent game developer of (mostly) physics-based games. Creator of "JellyCar" and lead designer of "Where's My Water?"
User avatar
walaber
Moderator
Moderator
 
Posts: 393
Joined: Wed Mar 17, 2004 3:40 am
Location: California, USA

Postby walaber » Sat Jan 01, 2005 12:41 pm

small vehicle demo

here's a small WIP demo of the vehicle running in Ogre...
still needs a lot of tweaking, but I think I'm off to the right start...

Image
Image

DOWNLOAD LINK

p.s. if you edit the smart.vehicle file, you can chance everything about the vehicle, from the position of the tires, to the suspension, to the engine power curve.

I'm now modelling some other cars, here's a screenshot of a WIP Ford Mustang
Image
Independent game developer of (mostly) physics-based games. Creator of "JellyCar" and lead designer of "Where's My Water?"
User avatar
walaber
Moderator
Moderator
 
Posts: 393
Joined: Wed Mar 17, 2004 3:40 am
Location: California, USA

Postby bal » Sat Jan 01, 2005 1:33 pm

So great, please continue this great work :).
User avatar
bal
 
Posts: 18
Joined: Wed Nov 10, 2004 10:03 am

Postby _Tux_ » Sat Jan 01, 2005 3:44 pm

wow, that is a great demo :o
_Tux_
 
Posts: 81
Joined: Wed Sep 08, 2004 10:38 am
Location: UK

Postby Robomaniac » Mon Jan 03, 2005 9:25 pm

I am working on a Newton-Ogre binding i like to call Newtogre. Its very basic, and meant to be. My goal in creating this binding is to make ogre work with newton with the majority of the features as simply as possible.

You can see some screenies of it in my blog:
http://centaurforce.sf.net/blog/

and download a demo of centaur force with the basics implemented at:
http://www.centaurforce.com/releases/CF_02_Binaries.rar
(sorry, windows only)
Stephen Eckenrode
Lead Programmer/Project Head
Centaur Force
User avatar
Robomaniac
 
Posts: 7
Joined: Mon Jan 03, 2005 9:17 pm

Postby Quimbly » Tue Jan 04, 2005 5:23 pm

I can't get the demo to work, Walabler. Well, I can get it to work with the OpenGL rendering subsystem, but I get a painful frame rate of < 1 / sec.

Here's a few lines from the log file:

Code: Select all
14:17:40: D3D9 : Loading 2D Texture, image name : 'spot_shadow_fade.png' with 5 mip map levels
14:17:40: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: -2005530516
Function: D3D9RenderSystem::_render
Description: Failed to DrawPrimitive : Invalid call.
File: \Game programming\Ogre\ogrenew\RenderSystems\Direct3D9\src\OgreD3D9RenderSystem.cpp
Line: 2068
Stack unwinding: D3D9RenderSystem::_render(..) <- <<beginning of stack>>
14:17:40: *-*-* OGRE Shutdown


Any thoughts?
Quimbly
 
Posts: 35
Joined: Wed Nov 03, 2004 6:45 pm

Postby walaber » Wed Jan 05, 2005 9:43 am

hmmm... I'm still very new to Ogre... so i don't know all of the 'quirks'... what version of DirectX do you have? also what are your system specs?
Independent game developer of (mostly) physics-based games. Creator of "JellyCar" and lead designer of "Where's My Water?"
User avatar
walaber
Moderator
Moderator
 
Posts: 393
Joined: Wed Mar 17, 2004 3:40 am
Location: California, USA

Postby Quimbly » Wed Jan 05, 2005 4:05 pm

I tried it at work:

DirectX 9.0c

Win XP SP2
Pnetium 4 - 1.7GHz
1024 RAM
Radeon VE 32MB
Quimbly
 
Posts: 35
Joined: Wed Nov 03, 2004 6:45 pm

Postby tomek » Wed Jan 05, 2005 5:18 pm

maybe it's that old radeon??
tomek
 
Posts: 102
Joined: Wed Jun 23, 2004 12:34 pm

Postby walaber » Sun Jan 16, 2005 4:15 am

just an update, I'm about ready to release 2 demos created in Ogre+Newton, basically updated versions of the two demos shown in this thread.

I'll be releasing the new demos along with the Ogre source code for those interested.

after this I start working on a simple vehicle game with Ogre+Newton, I'll be using the 2 models shown in the above screenshots, as well as modelling a few other cars/trucks. it's going to be a "stunt playgound" game, where the user can set up different jumps/objects in an arena, and then drive around.
Independent game developer of (mostly) physics-based games. Creator of "JellyCar" and lead designer of "Where's My Water?"
User avatar
walaber
Moderator
Moderator
 
Posts: 393
Joined: Wed Mar 17, 2004 3:40 am
Location: California, USA

Postby walaber » Sun Jan 16, 2005 10:10 am

OgreNewt demo

here's 2 demos that show Newton working with Ogre.

Image
simple primitives demo: move camera around with arrow keys,
shoot spheres with space key

Image
drive the car with ths W,S,A,D keys, shift with Q,Z keys. space bar is the emergency brake. switch between follow and free camera with C key.

the EXEs are included in the "Release" folder, as well as all of the source for both demos.

DOWNLOAD LINK - approx 5MB.
Independent game developer of (mostly) physics-based games. Creator of "JellyCar" and lead designer of "Where's My Water?"
User avatar
walaber
Moderator
Moderator
 
Posts: 393
Joined: Wed Mar 17, 2004 3:40 am
Location: California, USA

Postby The unProfessional » Sun Jan 16, 2005 7:48 pm

That's really awesome Walaber :) Do you know which shadow method Ogre uses?

Oh, is the vehicle demo scaled down somehow? I noticed that when the car is going fairly fast, it still only registers as 3km/h. Feels great though! Looks nice @ 200fps, too.
The unProfessional
 
Posts: 131
Joined: Sun May 02, 2004 9:08 pm
Location: Southern California

Postby monster » Sun Jan 16, 2005 8:52 pm

Ogre can give you three types of shadows; Additive Stencil, Modulative Stencil or Modulative Texture.
There's more details here;
http://www.ogre3d.org/docs/manual/manual_52.html#SEC197
User avatar
monster
 
Posts: 9
Joined: Tue Apr 13, 2004 9:58 pm
Location: Melbourne, Australia

PreviousNext

Return to User Gallery

Who is online

Users browsing this forum: No registered users and 7 guests

cron