Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

Water Questions

Discussion in 'General Discussion' started by NathanWarden, Oct 4, 2005.

  1. NathanWarden

    NathanWarden

    Joined:
    Oct 4, 2005
    Posts:
    663
    Hey all,

    I am currently using the Unity demo and am very impressed so far about the workflow over Torque.

    My questions are concerning water:

    1) Are there underwater lighting FX, not necessarily anything elaborate, just something to let the player know, "I'm underwater now". And by this I mean, the player will be above water, walk into the water and become underwater. In other words: I'm not asking if I can make an entire under water level... I already know how to do that.

    2) In Torque, if I shoot a projectile underwater I can produce bubbles or some other effect. Is this sort of thing possible with Unity?

    Thanks,
    Nathan
     
  2. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    1) Nothing premade, but what would be the fun of that? ;) You could set up different zones using trigger collider objects, and then change the lighting you'd want. You'd probably want to change things like ambient light, fog color, and fog density from the script in addition to some directional or point lights, but I think that was a little "oops" that will be fixed soon. http://otee.dk/forum/viewtopic.php?t=736&highlight=

    2) Yeah, there are lots of ways to do this. You could instantiate one shot particle emitters, or write a little script to put a clump of spherical objects using the glass shader. You could simulate the bubbles as particles pretty well by giving the particles some drag, upwards force, and randomized force side-to-side.

    Good luck,
    -Jon
     
  3. NathanWarden

    NathanWarden

    Joined:
    Oct 4, 2005
    Posts:
    663
    Thanks Jon, I appreciate the reply.

    Nathan
     
unityunity