Gapti Applications Rotating Header Image

unity3d

How to order by shader using a perspective camera

Firstly i am using Sprite Manger 2 its a really good script for creating 2d graphics you can see it here . SpriteManager2
I had a problem when using a perspective camera i couldent get the GameObjects to order proply when moving my camera around the GameObjects would move from the front to the back which is very annoying.
So on asking on irc i spoke to Squax which advised me to use another method called “Order by shader”.

What you have to do to cut it short is place a “Tags {“Queue” = “Transparent+1″ } +1 to get the shader to order by the camera. So +1 is at the very back to say +3 front.

You can see in action here

Shader "Alpha Blended On Top"
{
Properties
{
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
}
Category
{
SubShader
{
Tags {"Queue" = "Transparent+1" }
Pass
{
ColorMaterial AmbientAndDiffuse
ZWrite Off
ZTest Always
Cull Off
Blend SrcAlpha OneMinusSrcAlpha
SetTexture [_MainTex]
{
//constantColor [_Color]
Combine texture * primary, texture * primary
//Combine texture * constant DOUBLE, texture * constant
}
}
}
}
}

You can read more info on it here

Zilla Coming to a Iphone near you!!

I have been really busy porting the zilla game onto the Iphone/Ipad and its coming along just great. Just to show you a little teaser i have made this short video… hope you like it as much as i do.

I wasn’t happy with the graphics on that zilla port so here is a update on the graphics

New zilla Graphics

Latest Update

Latest Update

Artist Wanted!

I am looking for an artist to join me in creating some games, he or she has to have a real passion for drawing and playing video games.

Please contact me at mark@gapti.com to get more information.