About Store Forum Documentation Contact



Post Reply 
Newbie Question
Author Message
Yurci Offline
Member

Post: #1
Newbie Question
Hey.

I put in WE ocean, but how to draw it " in code" ?

The quieter you become, the more you are able to hear.
01-26-2010 11:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Chris Offline
Member

Post: #2
RE: Newbie Question
In InitGame:

Code:
Water.images(Images("water/0.gfx"),Images("water/0.n.gfx"),Images("water/reflection.gfx"));
Water.draw=true;
Water.wave_scale=1.8;

in Update:

Code:
Water.update(Vec2(0.01));
01-27-2010 12:38 AM
Find all posts by this user Quote this message in a reply
Yurci Offline
Member

Post: #3
RE: Newbie Question
Okey, i try this, and i stop at the level of water - to hight. In Water.h aren't any parameter level or something.

The quieter you become, the more you are able to hear.
(This post was last modified: 01-27-2010 02:24 PM by Yurci.)
01-27-2010 02:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #4
RE: Newbie Question
Use Water.plane.

In Rendering/Water tutorial:
Code:
// here you can optionally set different water surface plane
   if(Kb.b(KB_UP  ))Water.plane+=Vec(0,1,0)*Tm.d(); // move water surface plane upwards
   if(Kb.b(KB_DOWN))Water.plane-=Vec(0,1,0)*Tm.d(); // move water surface plane downwards
(This post was last modified: 01-27-2010 03:13 PM by Harry.)
01-27-2010 03:12 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Yurci Offline
Member

Post: #5
RE: Newbie Question
Thx v. much smile

The quieter you become, the more you are able to hear.
01-27-2010 03:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply