Google

Hydrax 0.5.1 and Ogre 1.7 Terrain setup questions

Ready-to-go libraries to render pretty water scenes (Hydrax) and skies & storms (SkyX).

Moderators: OGRE Team, Hydrax Moderator Group

Hydrax 0.5.1 and Ogre 1.7 Terrain setup questions

Postby Cryogenik28 » Sun Oct 31, 2010 2:06 am

I have successfully built Hydrax 0.5.1 against Ogre 1.7 and followed the demo examples on setting things up for Hydrax in code, but I don't see it with the new terrain system. In my ogre.log I do get the message "Error loading texture HydraxDepthReflectionMap", and I did follow many forum threads about this, but none work. I have my resources file setup correctly. It really doesn't seem Hydrax can work with the new terrain system. But I have had experience in setting up Hydrax successfully in the past with previous version against the OLD Ogre terrain system, which Hydrax still seems setup to use. So, has anyone successfully setup Hydrax 0.5.1 with Ogre 1.7 and the new terrain system?

Also with the new terrain system there is a call to the material of the terrain which would be used for reflections:

mHydrax->getMaterialManager()->addDepthTechnique(
static_cast<Ogre::MaterialPtr>(Ogre::MaterialManager::getSingleton().getByName("Island"))
->createTechnique());

And since I use blendmaps with the new terrain system, this wouldn't seem to work if I changed "Island" to another material name -- what would it be? and it doesn't make sense about the HydraxDepthReflectionMap error, unless I needed to define one somehow, but I saw nothing specific about that. People have mentioned commenting the code relating to HydraxDepthReflectionMap out in one of the cpp files, but wouldn't we need a reflection map since I am not seeing reflections? I'm not seeing anything except my frame-rates drop. I realize that the problems I have pertain to setting up the terrain material for the water to deal with correctly. Anyway, if someone has some details on making this work.
Cryogenik28
Gnoblar
 
Posts: 8
Kudos: 0
Joined: 04 Jan 2010

Return to Hydrax & SkyX

Who is online

Users browsing this forum: No registered users and 2 guests