DotScene with collision

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
User avatar
galdrusa
Gnoblar
Posts: 10
Joined: Tue Aug 31, 2004 1:22 pm
Location: Spain

DotScene with collision

Post by galdrusa »

Hi

I would like to do a little program using DotSceneOctree which detects any collision with surface, walls and objects. Has anybody done something like this? It would be very fine if I could take a look to that example program...

Thanks ;)

User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 4
Contact:

Post by haffax »

DotSceneOctree has an interface that lets you retreive vertex and index buffer for the static scene (DotSceneManager::GetVerticesPtr() and the corresponding methods). You can use these to create a TriMesh Geometry with a Physics/Collision library of your choice. Look at OgreOde in the ogreaddons to see how this can be done with ODE.

Edit: Last time I checked this DotSceneOctree interface was broken, but this was some month' ago.
team-pantheon programmer
creators of Rastullahs Lockenpracht

User avatar
galdrusa
Gnoblar
Posts: 10
Joined: Tue Aug 31, 2004 1:22 pm
Location: Spain

Post by galdrusa »

Ok, I will try with OgreOde. Thanks for your answer

User avatar
aloknarula
Gnoblar
Posts: 8
Joined: Mon Dec 20, 2004 8:00 am
Contact:

you can use coldet for collision

Post by aloknarula »

Hi

What i did was implemented DotSceneOctree in ogreTokamak. using sensors in tokamak simulator you can check intersection. But its a bit complecated. So i also added Coldet collision lib. with vertex soup from TriMesh object.

cYa
Alok

Post Reply