About Store Forum Documentation Contact



Post Reply 
underwater color
Author Message
rogerg Offline
Member

Post: #1
underwater color
hello, I have a small question, I have some blood type water set up like this:

Water.set (*Gfxs("gfx/blood/0.gfx"),*Gfxs("gfx/blood/0.n.gfx"),Gfxs("gfx/fx/reflection.gfx"));
Water.plane(Water.plane()-Vec(0,0.6,0));
Water.color = (1,1,1);
Water.color_underwater0 = (0.20,0.20,0.20);
Water.color_underwater1 = (0.20,0.20,0.20);
Water.wave_scale=0.3;

because I am using a custom water graphic, when I go underwater the color is not red and usualy grey, the Water.color_underwater0
paremeters dont really change the colour to red, but only from grey to white, I tried many different combinations. Is there any way I can make it red underwater too?

also how would I go about implementing swimming? or is it not yet implemented?

thanks
12-19-2008 08:17 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
Re: underwater color
Hi

I've set these parameters and they're working ok

Water.color_underwater0.set(1,0,0);
Water.color_underwater1.set(0,0,0);


automatic swimming isn't implemented yet, you would have to do it manually

oh I think I know whats the problem
this code Water.color_underwater1=(0,2,0); is invalid (I really don't know why C++ allows this kind of thing)
you should use either
Water.color_underwater1=Vec(0,2,0);
or
Water.color_underwater1.set(0,2,0);
12-19-2008 12:11 PM
Find all posts by this user Quote this message in a reply
Post Reply