4/20/2010

Room - Production Team



This is the production chart as assigned by John in studio today. I made a very simple chart so that everyone could have a look at the position and roles.

The team should also take into consideration of the following:

Concept Team
- Mass Model or plan.

Production Team.
- Inventory of rooms. (Taxonomy)

Engine Team.
- Stress Test.
- R&D (reading)


These are some of the points that we discussed earlier that could be taken into consideration.
- Rigging.
- Upload rooms to the server.
- Game aspect.
- Challenge limitations.
- Health.
- Timer.
- Over world? FF7/SMB3
- In game map. 
- Gather "DOTS" Pacman.
- Music Player.
- Premise (threat, death, goal, rewards)
- Machinima.
- 3D music video.
- Direction.
- Look & feel.

Next meeting will be on Tuesday, 27 April 2010, 3.00 p.m.

Razeef Mohd.

4/12/2010

Want to go full frame in ze browser?

Check this: 

If you take a look at the default HTML file generated when building a webplayer, you'll notice that the size of the webplayer is specified there in "width" and "height" HTML properties.
Replacing these specific dimensions with "100%" will scale your web player to the full size of the browser window.
Remember to save your modified HTML file in a different location than where you're building new webplayers to or at least rename it. Otherwise new rebuilds of the webplayer will overwrite your changes.
Also notice that most browsers have a default margin set which will result in a white frame around your content if you set it to 100%, 100%. To remove that, you'll need to add a bit of CSS to the section of your HTML:
<style type="text/css" media=screen>
   body
   {
      margin: 0px;
      padding: 0px;
   }
style>
Source - Unity Answers

4/11/2010

Animated light effects (strobe, puls, flicker, etc)

In case some you want to go crazy with light effects, this script does the trick. It's a multipurpose one, and you just play around with the variables till you get the effect you want. Have fun!


// Properties
var waveFunction : String = "noise"; // possible values: sin, tri(angle), sqr(square), saw(tooth), inv(verted sawtooth), noise (random)
var base : float = 0.0; // start
var amplitude : float = 1.0; // amplitude of the wave
var phase : float = 0.0; // start point inside on wave cycle
var frequency : float = 0.5; // cycle frequency per second

// Keep a copy of the original color
private var originalColor : Color;

// Store the original color
function Start () {
originalColor = GetComponent(Light).color;
}

function Update () {
var light : Light = GetComponent(Light);
light.color = originalColor * (EvalWave());
}

function EvalWave () {
var x : float = (Time.time + phase)*frequency;
var y : float;

x = x - Mathf.Floor(x); // normalized value (0..1)

if (waveFunction=="sin") {
y = Mathf.Sin(x*2*Mathf.PI);
}
else if (waveFunction=="tri") {
if (x < 0.5) y = 4.0 * x - 1.0; else y = -4.0 * x + 3.0; } else if (waveFunction=="sqr") { if (x < 0.5) y = 1.0; else y = -1.0; } else if (waveFunction=="saw") { y = x; } else if (waveFunction=="inv") { y = 1.0 - x; } else if (waveFunction=="noise") { y = 1 - (Random.value*2); } else { y = 1.0; } return (y*amplitude)+base; }



Source:
http://forum.unity3d.com/

4/09/2010

3D Masters

Jin and Kevin have been making some pretty wild models!

Some ran into so-called facing problems (some surfaces appear invisible from one side) today.
This is created by so-called 'face normals' facing the wrong way.

The renderer sees every 3D face with a front and a back and will not render the back.

If you need a technical fix for this, like how to 'flip' the face normals, perhaps ask Kevin or Jin.

The walls in Jin's room have two sides: a side facing out and a side facing in.
This way, the walls always appear solid whichever angle you see them from.

Teleport 1.1 (putting the script on)

The Unity Scripting Reference is a good primer.

Some of us were stuck at the point where we 'put the script on the object'.
Hopefully this will help:

To create your script:

Assets > Create > Javascript

In the (script) editing window, paste in the script (see Ole's post), then save.

The script will appear as an item in the 'Project' folder (should be visible in the GUI; you may have to scroll).

Once you find it, drag the script onto the game object in the 'Assets' folder.

My bad script for triggering sound!

function OnTriggerStay() {

audio.Play();

}



I hope somebody can make a better one. I would love to have one that only trigger sound once and stuff. Just drag and drop this script to your object. Remember to also drag and drop a sound to the same object. Tip: Do not use scripts on the objects themselves, but rather on invisible (turn of mesh render) boxes surrounding them. Remember to check them off as IsTrigger.


Source:
Reading the Unity instructions

Teleport

var destination : Transform;

function OnTriggerEnter (other : Collider) {


if (other.CompareTag ("Player")) {
other.transform.position=destination.transform.position;


}


}


put that on the object that you want to cause the teleport and check trigger on its collider in the inspector panel, make sure there player is tagged player, and that you drag an object onto the destination var


when the player touches the teleport object it will be moved to the object you put in the destination var


source:
http://forum.unity3d.com/viewtopic.php?t=8425

4/08/2010

AIM 2010 - Project and Assignment Deadlines


Here is a graph I made of all the deadlines remaining this semester. Click here to download a PDF.

4/02/2010

The Room Deadline

For those who aren't sure when the room is due (apparently most of us), it is the 12th of April. So good luck to all!

Sam