I got hydrax running under Ogre 1.4.9, however I am unable to use it. If I load the components from Tropical.hdx (from the editor) or manualy with mHydrax->setComponents I simply get a black screen. What could be wrong? (I suggest that it has something to do with the depth Component, because if I only load this component i get an black scrren and with other not...)
If I don't load a cfg and just use this code everything works great, except that there are not any options set, so it looks rather unimpressive....
Here's the code i was taking about:
= new Hydrax::Module::ProjectedGrid(// Hydrax parent pointer
// Noise module
new Hydrax::Noise::Perlin(/*Generic one*/),
// Base plane
// Normal mode
// Projected grid options
I'm currently using the latest version from hydrax!
If somebody has any idea what's wrong I would be happy hearing about it.
Can you post some screenshots of the problem?
If I set the depth component, I only get an black screen
If I don't use any component, it looks rather bad
It's very extrange, I think it's non-hydrax related, something wrong in your app or similar. Depth component only renders the scene in another Rtt with depth material and uses it in the water shader.
Are you using something compositors, or similar?
Disable caelum fog management too(Or see Nature demo sources for an example of Hydrax/Caelum integration).
I had not problems with the depth component i had problems with the module Module=ProjectedGridVertex, I changed it to Module=ProjectedGridRtt and now it works a lot better.
However I have a new problem, if I look down to the water the water gets transparent...
Heres an screen shot how it should be:
and here a screenshot how it is if i change the camera position:
Maybe your terrain is not an Ogre::Entity and you've forgot to add the hydrax depth technique...
I don't find another reason.
And the demo works for you?
It's very extrange.. what have you in the scene? Hydrax, caelum and ..?
that's it, and the ogremax scene loader, but this should not interfere with hydrax.
the demo works great!