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 » Sat Jan 15, 2005 11:42 pm

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 ;)
0 x

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

Post by haffax » Mon Jan 17, 2005 1:03 am

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.
0 x
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 » Mon Jan 17, 2005 5:14 pm

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

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

you can use coldet for collision

Post by aloknarula » Wed Feb 09, 2005 6:23 am

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
0 x

Post Reply