OgreOde, thanks Monster!

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
Wraithdrit
Halfling
Posts: 64
Joined: Thu Jul 29, 2004 6:30 pm

OgreOde, thanks Monster!

Post by Wraithdrit »

Well, this is another one of those 'I just got OgreOde working! I want to thank Monster!' threads.

Thanks Monster!

I'm looking forward to Gangsta (heh). But until then OgreOde seems to be just what I was looking for. Why I did not start with it (instead of trying Nogredex and OgreNewt) I don't know, but I should have! Terrain support out of the box, easy integration, very straightforward samples... all the things I needed.

So uh, again... thanks. 8)

- Wraithdrit

User avatar
monster
OGRE Community Helper
OGRE Community Helper
Posts: 1098
Joined: Mon Sep 22, 2003 2:40 am
Location: Melbourne, Australia
Contact:

Post by monster »

Glad you like it!

Gangsta eh?
Image

User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19265
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

Just as an aside, I added MovableObjectFactory support to Dagon over the past few days, so the hack required to OgreMain for ragdolls should no longer be necessary. You can now register your own MovableObject factories, and even override the core ones if you want (e.g. createEntity calls your custom factory to create your custom Entity subclass - caution advised though!). Hope this will help...

Wraithdrit
Halfling
Posts: 64
Joined: Thu Jul 29, 2004 6:30 pm

Post by Wraithdrit »

Okay, starting to add physics support to my robots (heh, I love the robot... it has so grown on me... :P). They start out above the terrain and fall down, as intended (yeah). Now, when they get to ground level (I'll actually probably go back and 'set' them at ground level) they topple all over the place.

How do I set them so they always stand upright, no matter the slope of the terrain they are on?

I think it has to do with setting a torque to keep them pointed upward, but in the Ode docs there is information about the loop the physics engine goes through, but I'm not sure where in OgreOde that I set forces on bodies.

Sorry to be such a Physics engine newbie. I'm trying to read and search for the answer, but am coming up with a big old nothing. :)

I did find the picture you have of a FPS player on your sight Monster, and I think that will be how I implement the infantry setup in my game, but I gotta understand a little more about OgreOde (and Ode in general) before I get to that point.

- Wraithdrit

Wraithdrit
Halfling
Posts: 64
Joined: Thu Jul 29, 2004 6:30 pm

Post by Wraithdrit »

Having dug through the Ode docs, I found that with each step all force and torque is set to zero. Hmm, okay so how and where do I set torque and force?

Found the code for preStep in the sampleScene and the addtorqueandforce() function. Played around with the code till I got that to implement (registered it with the stepper, etc).

Going to try iterating through my robot objects and setting a torque on them to always be up and see if that does what I'm after.

Poke me if I'm not on the right track so I don't waste too much time on this. :)

- Wraithdrit

Drew_Benton
Halfling
Posts: 95
Joined: Sun Apr 03, 2005 6:58 pm

Post by Drew_Benton »

monster wrote:Glad you like it!
Gangsta eh?
Do you have any time frame in mind to when a released version of that will be out. I mean just a rough estimate. Reason being I plan to use OgreODE in our game and if your new library is going to come out in so much time, then I wouldn't want to spend too much time tweaking OgreODE :wink: That and not to mention learing all of ODE...unless your new lib will also use ODE, to which I will start early now!

User avatar
walaber
OGRE Expert User
OGRE Expert User
Posts: 829
Joined: Sat Oct 02, 2004 2:20 pm
Location: California, USA
Contact:

Post by walaber »

sorry to hijack the thread--- could you mention what trouble you had with Nogredex and OgreNewt? I personally would like to know so I can possibly improve OgreNewt. although with the upcoming Gansta system I doubt anyone'll be using it much longer :P
Go Go Gadget OGRE!!
Image

Wraithdrit
Halfling
Posts: 64
Joined: Thu Jul 29, 2004 6:30 pm

Post by Wraithdrit »

The ONLY issue I had with OgreNewt was no built in support for collision with terrain from the terrain scene manager. With OgreOde I just feed it the terrain config file and it does what it needs to provide terrain collision.

- Wraith

User avatar
monster
OGRE Community Helper
OGRE Community Helper
Posts: 1098
Joined: Mon Sep 22, 2003 2:40 am
Location: Melbourne, Australia
Contact:

Post by monster »

@ Drew_Benton
Hopefully it'll be available towards the end of the month.

FYI; at least for the immediate future OgreNewt is likely to better support the specialised features of the Newton engine, whilst Gangsta aims for cross-engine compatibility. And doesn't currently have a specialised terrain collision primitive either.

Drew_Benton
Halfling
Posts: 95
Joined: Sun Apr 03, 2005 6:58 pm

Post by Drew_Benton »

Thanks Monster for the reply and all the hard work! As well to everyone else thath helps out around tehe boards, regular members and those of the Ogre MVPS. Especially Sinbad! :wink:

Post Reply