Compiling Hydrax v0.4 with Ogre 1.4.9 Eihort

Netskate

16-10-2008 12:34:16

To compile Hydrax 0.4 with Ogre SDK 1.4.9 we had to:

GodRaysManager.cpp:
comment this line (96)

mProjectorCamera->setDebugDisplayEnabled(false);

DecalsManager.cpp:
comment this line (106)

mProjector->setOrthoWindow(Size.x, Size.y);

MaterialManager.cpp
change this:

Ogre::PixelFormatList l;
l.push_back(Ogre::PF_A8R8G8B8);
TDef->formatList = l;


with this:


TDef->format = Ogre::PF_A8R8G8B8;

I hope this can help somebody :)

I test this only with 1.4.9 sdk version but should be good for any 1.4.x version, sdk or source.

Quorthon3D

10-02-2009 20:12:00

I find other error when i compile Hydrax on code::blocks.


...\Hydrax\Hydrax\src\Hydrax\Noise\Perlin\Perlin.cpp|143|error: invalid initialization of non-const reference of type 'Ogre::TexturePtr&' from a temporary of type 'Ogre::TexturePtr'|

...\Hydrax\Hydrax\src\Hydrax\Noise\Perlin\Perlin.cpp|152|error: invalid initialization of non-const reference of type 'Ogre::TexturePtr&' from a temporary of type 'Ogre::TexturePtr'|


Any ideia?

Xavyiy

10-02-2009 20:39:28

Just remove the "&" after TexturePtr.

Xavi