Fog with hydrax

scratchyrice

09-03-2009 21:08:03

Is there any way to use ogre fog with hydrax? If not, Can i disable fog on a hydrax water plane? Because atm with fog enabled the hydrax water plane does not react to camera distance, it is always fogged no matter where i am.

Cheers

Scratchy

scratchyrice

10-03-2009 07:22:48

Anyone?

Cheers

Scratchy

Xavyiy

10-03-2009 09:58:27

I'll reply you(and other new post) tonight, I've an exam this evening :(!

nargil

10-03-2009 10:50:40

Good luck! Sadly not an exam about ocean simulation ? ;)

scratchyrice

10-03-2009 17:04:14

Ah ok. Good luck! Im sure you will do well.

Cheers

Scratchy

DanielSefton

10-03-2009 19:00:02

I'll beat him to it in the meantime. :) (good luck!)

Basically, you need to add

(D/W)M_Technique_Pass0->setFog(true, Ogre::FOG_NONE);

to all techniques in Hydrax's MaterialManager.

Well, I added it to all techniques, but it didn't actually work until I put them in the "reload()" function I think.

Iceman1540

08-04-2009 01:24:03

@ DanielSefton, you can elaborate a little, I'm trying to get fog working also.
Thanks in advance.

mundh

22-12-2009 08:55:21

I had the same problem when applying Ogre built-in Fog with Hydrax.

Advices above were of great help

Refer to the attached Hydrax/MaterialManager .cpp file.

Regards,
Duhwan

CorPetit09

06-04-2010 08:10:39

Hi,
I have replaced the default MaterialManager.cpp from Hydrax with your MaterialManager.cpp. Fog works fine but I'm using this with Caelum and the moon and the sun become white square when they disappear under water. This is an example with the moon:


If anyone knows how to fix this it would be fantastic. Sorry for my english and thanks.
Regards,
CorPetit09