Thursday, March 13, 2008

Tortured by an Ogre (3D)

This was 4.16am, and iwas still in front of my pc, and all this stay up late is because of my itching hand went to update my ogre3d to latest version, directly from official cvs. the latest ogre3d make 2 of my projects couldn't compile and/or crashed at runtime. and my ego make the things worse, i decided to tamed the new monster instead of going back to the old one. so here i'm, coding at 5am in the moring.

this is not good, today's news said main sleep less then 5 hours can cause overweight problems. i must take note all the problems that i encounter today so that i won't repeat them again

1) my ogre3d framework suddenly complain material for AmbientOneTexture couldn't be found, this is a easy one, just need to add Examples.material to media folder that all, but the reason why new version need these file still unkown

2) my 9th life copy couldn't compiled. this was due to Ogre3d 1.4.7 removed Entity::setNormaliseNormals and Renderable::getWorldOrientation and Renderable::getWorldPosition. they took me awhile to discover setNormaliseNormals and getWorldXXXX are no longer required, can remove them entirely without searching for new subtitute. getWorldOrientation and getWorldPosition for other class (SceneBode) can use _getDerivedPosition instead

3) after my 9th life compiling, it crashed at runtime, at reported all particle file not found! wth? and this b*tch, wasted my 4 hours go and debog the new ogre3d line by line, started from initialiseAllResourceGroups() to OgreParticleSystemManager::parseScript(), after 4 hours then i relised new ogre3d used new script compiler, which compined *.os, *.material, *particle... to one, and this caused serious problem to me. and the solution is simply add OGRE_NONCLIENT_BUILD;FREEIMAGE_LIB;OGRE_USE_NEW_COMPILERS=0 to preprocessor! good lesson, never used cutting edge IT product, never!

my eye was a little bit not cooroperate. i actually there was still one problem bugging me, that was from my the other project. the smartfoxserver don't me to upload file to my server, i still searching for solution for it, sigh... good night

1 comment:

Nerrad said...

Sinbad, ogre3d's project leader pointed out that, the particle system problem can be simpy solve by adding particle_system header to each *.particle file.