ORGE::World and OgreOde::World - BSP map and collision

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
User avatar
KingLeonid
Gnoblar
Posts: 15
Joined: Wed Apr 13, 2005 12:57 pm
Location: St.Petersburg, Russia

ORGE::World and OgreOde::World - BSP map and collision

Post by KingLeonid »

Hello,
I'm new to OGRE, so sorry if my question is stupid.
I want to use OGRE::World for loading world geometry from .bsp files, and
OgreOde for game physics and collision detection.
How can I have this two things working together? I mean load bsp from file into
OGRE::World and detect collisions with this world in OgreOde::World.
I want to use one of the Q3 level editors for creating rooms and static objects and translate maps to bsps.
If you can give me some hint, I'll be grateful.
Best regards,
Leo.
User avatar
Olex
Hobgoblin
Posts: 593
Joined: Fri Apr 08, 2005 6:08 pm
Location: WA, USA

Post by Olex »

Nice icon, dude!

@KingLeonid: Hto eto na icone? Ivan durachok? :wink:

I suppose you have already looked at BSPSceneManager? and at BSP Ogre demo?
User avatar
Olex
Hobgoblin
Posts: 593
Joined: Fri Apr 08, 2005 6:08 pm
Location: WA, USA

Post by Olex »

User avatar
KingLeonid
Gnoblar
Posts: 15
Joined: Wed Apr 13, 2005 12:57 pm
Location: St.Petersburg, Russia

Post by KingLeonid »

Olex wrote:Nice icon, dude!

@KingLeonid: Hto eto na icone? Ivan durachok? :wink:

I suppose you have already looked at BSPSceneManager? and at BSP Ogre demo?
Yes, I looked through it, and I've already written the code that loads bsp geometry into my BSP Scene manager, but I'm looking for method (technique) to translate loaded geometry (walls, floor, archs etc) into my ogreode::world. I use ogreode::world for storing my moving objects, applying physics and detecting collisions. So if I didn't translate the walls to my ogreode from bsp scene then my creatures couldn't collide with them.

Any hints?

P.S: Picture was taken from 'Alesha Popovich' cartoon... :lol:
Best regards,
Leo.
User avatar
walaber
OGRE Expert User
OGRE Expert User
Posts: 829
Joined: Sat Oct 02, 2004 2:20 pm
Location: California, USA

Post by walaber »

I think the "BSP Collision" demo uses a BSP room + ODE for physics, so looking at the code for that demo might be useful...
Go Go Gadget OGRE!!
Image
User avatar
KingLeonid
Gnoblar
Posts: 15
Joined: Wed Apr 13, 2005 12:57 pm
Location: St.Petersburg, Russia

Post by KingLeonid »

walaber wrote:I think the "BSP Collision" demo uses a BSP room + ODE for physics, so looking at the code for that demo might be useful...
Yes, you are right, this demo uses ODE for physics and RefApp layer for
integration with BSP, but I'm trying to put together bsp and OgreODE addon
written by Monster. It uses its own World concept and has no connection with
RefApp and OGRE::World.
Best regards,
Leo.
User avatar
elmer
Gnoblar
Posts: 21
Joined: Fri Apr 15, 2005 2:12 am

Post by elmer »

you need to redo yourself the collison with planes like refapp but in ogreode
Elmer is not like the rest of the elephants in the jungle, he's a multi-coloured patchwork elephant!