In my spare time this week, instead of building spaceships, playing games or even drinking beer... I will make a game for the Apple App Store using Unity3D.
Next Wednesday I shall announce my failure, or success.
Who will join me? :-)
RAGE!: Unity3D Bug? kills all progress...
Verdict:
Failure. The above bug sucked my will to code for at least two days, though Unity does appear to be behaving now.
What have I got to show for the weeks effort?
1. I know that terrain meshes run acceptably fast on the iPad in the 1500-2000 vertex range. Meshlab does an excellent job of reducing Unity Terrain meshes to usable vertex counts.
2. A reasonable approximation of a car engine, transmission and differential.
3. An objective / waypoint system for running a race around a terrain.
I will revisit this again later. Sad Face.
Tuesday, November 30, 2010
Monday, November 29, 2010
Server Retirement.
Such a Sad Thing.
simon@metaplay:~$ uptime
12:49:18 up 923 days, 4 min, 1 user, load average: 0.00, 0.00, 0.00
Sunday, November 21, 2010
Friday, November 19, 2010
Carrier #2
Thursday, November 18, 2010
Exploding Spacecraft...
What is the point of a nice spaceship model... If you can't blow it up? Not too much I hear you say. Well, now I can blow arbitrary spaceship models apart! w00T! :-)
Labels:
Games,
Spacecraft,
Unity3D
A Fleet is born...
I'm still working on the shaders. I added a toon lighting model which has definitely improved the lighting, but I'm not sure why my edges are so jaggy! Hmmm.
Labels:
Games,
Spacecraft,
Unity3D
Tuesday, November 16, 2010
Monday, November 15, 2010
Spacecraft Development.
Wednesday, November 10, 2010
Non Photo-realistic Rendering.
I'm experimenting with flat shading and full screen pixel shaders. What do you think? Would you buy this game? :-)
Labels:
Games,
Spacecraft,
Unity3D
Monday, November 08, 2010
Font Rendering Problems in Unity3D
OSX Web/HTTP Sniffer Tool.
HTTP Scoop from Tuffcode. Great tool, invaluable if you have to work with HTTP.
Tuesday, November 02, 2010
Automagic GUI Scaling in Unity3D
Step 1. Tell you team that everything must fit within 1920x1080 or 1024x768 or whatever resolution you like!
Step 2. Surround all OnGUI method body code with methods BeginGUI and EndGUI from the below class.
Step 3. Scaling across all resolutions... problem solved!
Step 2. Surround all OnGUI method body code with methods BeginGUI and EndGUI from the below class.
Step 3. Scaling across all resolutions... problem solved!
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class GUISizer {
static float WIDTH = 1024;
static float HEIGHT = 768;
static List<Matrix4x4> stack = new List<Matrix4x4> ();
static public void BeginGUI() {
stack.Add (GUI.matrix);
Matrix4x4 m = new Matrix4x4 ();
var w = (float)Screen.width;
var h = (float)Screen.height;
var aspect = w / h;
var scale = 1f;
var offset = Vector3.zero;
if(aspect < (WIDTH/HEIGHT)) { //screen is taller
scale = (Screen.width/WIDTH);
offset.y += (Screen.height-(HEIGHT*scale))*0.5f;
} else { // screen is wider
scale = (Screen.height/HEIGHT);
offset.x += (Screen.width-(WIDTH*scale))*0.5f;
}
m.SetTRS(offset,Quaternion.identity,Vector3.one*scale);
GUI.matrix *= m;
}
static public void EndGUI() {
GUI.matrix = stack[stack.Count - 1];
stack.RemoveAt (stack.Count - 1);
}
}
Subscribe to:
Posts (Atom)
Popular Posts
-
These are the robots I've been working on for the last 12 months. They each weigh about 11 tonnes and have a 17 meter reach. The control...
-
So, you've created a car prefab using WheelCollider components, and now you can apply a motorTorque to make the whole thing move along. ...
-
Often, when building a game, you need to test if objects are colliding. The objects could be spaceships, rocks, mouse pointers, laser beams....
-
Summary: NodeJS wins. Test Program ab -n 10000 -c 5 http://localhost/ Gevent Code from gevent import wsgi class WebServer(object): def a...
-
Why would I ask that question? Python 3 has been available for some time now, yet uptake is slow. There aren't a whole lot of packages i...
-
MiddleMan: A Pub/Sub and Request/Response server in Go. This is my first Go project. It is a rewrite of an existing Python server, based o...
-
I've just finished refactoring an awful C# class. I had been delaying the job for a while because I didn't want to do it. Then, whil...
-
Dear Lazyweb. Imagine a nice RESTful interface for working with Tags. The URL: /tags/ will return a list of all the tags. The URL: /tags/fo...
-
It is about 8 degrees C this morning. So cold, especially when last week we had high twenties. To help solve the problem, a friend suggeste...
-
We're almost done with our Giant Robot Project. Realising we had only a few hours before the robots would be deconstructed and sent awa...