Ludum Dare #30 Entry

2014-09-01 00:07:09

My second LudumDare and it was as much fun as the first. The theme was "Connected Worlds". And to start off here are some screenshots of my entry.

image image image
read on ...

Reuse skybox cubemap on reflective materials [Shader]

2014-08-10 08:51:14

With this shader you can reuse your skybox cubemap for reflection materials. The built-in shader gives nice results but using the cubemap from the skybox, the coordinates are inverted. Here's a modified version of the built-in Reflect-Glossy shader.

Shader "WB/WB-Skybox Reflection" {
Properties {
	_Color ("Main Color", Color) = (1,1,1,1)
	_ReflectColor ("Reflection Color", Color) = (1,1,1,0.5)
	_SpecColor ("Specular Color", Color) = (0.5, 0.5, 0.5, 1)
	_Shininess ("Shininess", Range (0.01, 
read on ...

Serializing Vector3 in Unity

2014-07-08 07:24:06

In Unity Vector3 is not marked as serializable.
So, if you try to serialize a class of our own containing a property of type Vector3 you will get the following error:

SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.

To make this work, one way is to make a converter class based on the Vector3 type, which is really simple and fast to do, so...

Let's go!

You probably have your class definition like so:

public class MyClass {
	public Vector3 someVect
read on ...

Mezmerizing Canvas

2014-04-15 19:33:09

I wanted to get my hands dirty on the canvas element. So this is what came out :)
read on ...

Playstation 3 Controller Mapping in Unity 3D

2014-04-13 21:56:46

I found myself a few times in need of the mapping of the PS3 Controller in Unity. Searching on the net I didn't find much, so I made a quick overview myself.
Use it like "joystick x", where x is the number of the input you want.
PS3 Controller Mapping