Project: Gauntlet - Current Iteration

Friday, January 15, 2010

Simple Living Unity Scene - Breakdown

Paying the rent precludes me from giving you the full attention that you so clearly deserve - accept this breakdown instead.



A simple Unity scene, with a few simple scripts and elements added to give it a more dynamic, interesting feel.

Here's a breakdown of what's in there:

Water.

The water is made up of a large plane with a Transparency > Diffuse shader, and the standard Water texture applied. Alpha is at around 70%.

To achieve the depth / shallow appearance of the water, I used a crazy simple technique:
Painted underneath the 'deep' sections with black, and underneath the 'shallow' sections with sand.

Easy, and achieves a relatively nice look.

To achieve the ebb and flow effect, I created a basic script that will raise and lower the water plane within bounds, given a provided (very slow) speed.

Light Cycle

Very simple light cycle - achieved by applying a simple rotation on Update() to a Directional light.

Living Skybox

Another very simple effect - achieved by applying a texture to a giant cylinder, and rotating it on Update().
Also, the cylinder will align it's x and z coordinates with those of the player, so they maintain a specified distance at all times (best to correlate the clip distance to this).

Ripple effect

Probably the most complex effect - but still very basic - the ripple effect is the following:

A simple plane with a transparent background and a white circle painted onto it.

It will start at a scale of 0%.

On Update(), it will roll a random number - and if it is within specified bounds, it will initiate a 'ripple'.

This will effectively scale the plane at a specified rate, until it reaches a certain size, at which stage it will disappear.

The ripple will also lower its alpha as a proportion of it's progress to maximum size.

Too easy!

So what do you think? Relatively 'pretty' for two hours of coding and playing around and such.








Want the code or the prefabs?

Subscribe or comment! Or subscribe to my Youtube channel. Perfect.

15 comments:

Anonymous said...

Awesome! Thanks.

Kevin said...

I would like the scripts and prefabs. kevinkdunlap@gmail.com

Unknown said...

could you send me the code and such at Tabalou10@yahoo.com? if not, it's ok...

Unknown said...
This comment has been removed by the author.
Anonymous said...

Could you send me the code and prefabs please? Jimmiegisclair@att.net
Thanks!

Anonymous said...

Hi I am working on a game (I can't say much at this point) but I am very interested in your Codes if you could send them my way at urban.raptor@hotmail.com that will be much appreciated

*You will of course be credited upon release and informed on the concept of the game once the codes are sent

** I am mainly interested in your water effects but the other ones will be of great assistance too

Anonymous said...

nice scene, especially the water effect. could you send me the code and prefabs? My mail is nana_gramma@yahoo.com .
Thanks!

Anonymous said...

i would like the script and prefabs please
benster9109@hotmail.co.uk

Jamie Eaton's World said...

Hi can you send the codes and prefabs to jamieeaton_downside@hotmail.com This will help me with a college project you will be credited and i will NOT make money from it. Or send me the Package and i can work from that.

Thanks, Nice work I am Training to be a level designer So this stuff will make my World Come a Live.

Like to see my work: www.jeleveldesign.webs.com

Not much but its a start.

Panda said...

Hello! Is it possible to send the code and the prefabs to me at 0902990A@student.tp.edu.sg? Thank you so much!

I'm a student and am creating a game for a school's project. Would really appreciate it if you send the codes and the prefabs! Thank you in advance. :)

Anonymous said...

Hey hello !

Thanks for those great informations.

I'm working on my own project , just to start unity and it will be very nice uif you would like to send my your script for this scene.

bessa.mathis@gmail.com

Anonymous said...

I would really appreciate the the scripts and prefabs.
i'm still learning unity

xenos_sonex@yahoo.com

Anonymous said...

I would love the scripts and prefabs please email me at
seanjustinmccann@gmail.com

Anonymous said...

i would really love to see the script/prefabs or whatever the semantics are in this. specially the water + living skybox.
m.wilkinson.a@gmail.com

thankss

Anonymous said...

Hi, I'm new to unity and I just loved your simple tricks to make a living world! Can you please send me the code and the prefabs so I can learn how they're made? my e-mail is sora91@gmail.com
Thanks much appreciated ;)