OgreOde on OS X

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
zibba
Gnoblar
Posts: 12
Joined: Wed Sep 08, 2004 2:22 pm
Location: Melbourne, Australia
Contact:

Post by zibba »

monster wrote:Cool, is there any difference in performance?
I've done some unscientific comparisons between std::map and stdext::hash_map. By looking at the FPS counter in the demo (eg Chain) it doesn't seem to be different. My guess is that the number of objects in the container isn't large enough to make much of a difference between the 2 search algorithms. I guess there's more time spent doing Ode calculations per object than doing searching. It would be interesting to use something like Apple's Shark to optimise Ode...

btw, has anyone got native Xcode project files (not upgraded) rather than these legacy Project Builder ones???
User avatar
temas
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 390
Joined: Sun Oct 06, 2002 11:19 pm
Location: The Woodlands, TX
Contact:

Post by temas »

I'm working on fully native build setup right now.
User avatar
thegame
Gnoblar
Posts: 23
Joined: Tue Aug 31, 2004 7:50 am

Post by thegame »

This could mean that the path is wrong to the OgreOdeTest.zip which should be in Samples/Media/packs. There's a path defined for this in OgreOdeTestApplication.h (~line81)
well thats not the case, i think. OgreOdeTest.zip seems to be in the correct place, coz I get this :

Code: Select all

Zip Archive codec for ../../Media/packs/fresneldemo.zip created.
Zip Archive codec for ../../Media/packs/OgreCore.zip created.
Zip Archive codec for ../../Media/packs/ogretestmap.zip created.
Zip Archive codec for ../../Media/packs/skybox.zip created.
Zip Archive codec for ../../../Media/packs/OgreOdeTest.zip created.
Removing OgreOdeTest.zip immedietly gives me this :

Code: Select all

An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: Zip::load
Description: Zip archive ../../../Media/packs/OgreOdeTest.zip not found..
So that is defiently not it.I am trying to _trim_ the test application down so I can get something going :wink: , and probably know _exactly_ where it crashed.

Thanks anyway !
Linux Rocks!!!
zibba
Gnoblar
Posts: 12
Joined: Wed Sep 08, 2004 2:22 pm
Location: Melbourne, Australia
Contact:

Post by zibba »

So that is defiently not it.I am trying to _trim_ the test application down so I can get something going :wink: , and probably know _exactly_ where it crashed.

Thanks anyway !
No worries it was worth a try. I'm wondering if you can run it in the debugger and get a stack trace when the exception occurs?
zibba
Gnoblar
Posts: 12
Joined: Wed Sep 08, 2004 2:22 pm
Location: Melbourne, Australia
Contact:

Post by zibba »

temas wrote:I'm working on fully native build setup right now.
Nice! :D If you need a tester let me know.
User avatar
thegame
Gnoblar
Posts: 23
Joined: Tue Aug 31, 2004 7:50 am

Post by thegame »

I'm wondering if you can run it in the debugger and get a stack trace when the exception occurs?
hmm I'll try to do that tonite. :idea:
Linux Rocks!!!
User avatar
thegame
Gnoblar
Posts: 23
Joined: Tue Aug 31, 2004 7:50 am

Post by thegame »

Ok, stepping over instructions in gdb points the culprit :

Code: Select all

(gdb) next

Program received signal SIGSEGV, Segmentation fault.
__gnu_cxx::hash<dxSpace*>::operator() (this=0xfe229033, x=0xa8bbe48) at OgreOdeWorld.h:74
74              {
line 74 is where the custom hash functions are defined

Code: Select all

71:    template<> struct hash<dSpaceID> 
72:    { 
73:        size_t operator()(const dSpaceID x) const 
74:        { 
75:            return hash<dSpaceID>()(x); 
76:        } 
77:    }; 
I think its a problem with the hash defines :wink: ,
Linux Rocks!!!
zibba
Gnoblar
Posts: 12
Joined: Wed Sep 08, 2004 2:22 pm
Location: Melbourne, Australia
Contact:

Post by zibba »

I think its a problem with the hash defines :wink: ,
:oops: I think I gave you bogus information. The 5 hash operators should look like this. Sorry!

Code: Select all

    template<> struct hash<dBodyID>
    {
        size_t operator()(const dBodyID x) const
        {
            return (size_t) x;

        }
    };
User avatar
thegame
Gnoblar
Posts: 23
Joined: Tue Aug 31, 2004 7:50 am

Post by thegame »

It's Alive Its Alive :D
I think I gave you bogus information.
hey...It could happen to any of us :wink: , thanks a ton dude !!
Linux Rocks!!!
eyevee99
Greenskin
Posts: 125
Joined: Tue Jul 22, 2003 11:28 am

Post by eyevee99 »

Is there a native MacOSX/XCode 1.5 OgreODE project floating about?
Cheers
Post Reply