Monday, 11 August 2014

Back from holiday...

I am back from a great holiday, it's time to get back to work on the project... and some other things. But let's talk about the project only. I have a car, a track in progress and a playable private apk file with configurable touch and tilt controls.

What should I improve? Well, the physics are pretty simple now, I need to program the tyre physics into a way more realistic one. Well, by realistic I mean still arcade, but more believable. Once I made burnouts, but it was poorly programmed, I need to upgrade it. It'll be good on a mobile device. Tapping the accelerator will be a good way to keep the car stable without spinning out in a slow corner. Maybe I'll use animation curves for setting up the tyre friction for different situations. Also I am thinking to make an indicatior that shows how much the pedals are pressed over the touch area. So the player could "feel" the pedals more. Of course it would be optional, but a helpful thing.

Maybe I won't release more public webplayer demo, because the controls are not really good of keyboard. Or if I will, I have to program a better keyboard control with speed sensitive turning like rFactor has.

That's all for today, I am planning to make a great progress in the following week.

Friday, 1 August 2014

Working on the background...

I don't usually share only one picture, but when I do, it shows some improvement in graphics.

 Unity Android Racing Game
Hand-drawn background just made overall look better.


Tuesday, 29 July 2014

Trigger based occlusion culling

Upgraded trigger based occlusion culling script is almost done. Good alternative to Unity Pro's Umbra Occlusion Culling system.

It works, just it needs more testing. It works pretty well using any cameras on the scene. It needs some manual work, setting up the trigger. select the game objects to hide, but now, it works with children too, so it's not needed to put all the objects one-by-one if they are parented. So the workflow is way faster than before. Combined with the basic frustum culling, it is a pretty good way to keep the triangle / draw call count low.

Also clever level design is important too. Placing objects that can cover other things can help a lot with the combination of this script.

Occlusion Culling in Unity Free
Occluders

The pit lane is not ready yet on the current track I am creating, but garages and other buildings will be really good to cover a lot of other things.

Occlusion Culling in Unity Free
Two of the tribunes and some trees are hidden as they are not needed to be visible.

Unity free trigger based occlusion culling
It's that simple. Make a game object with trigger collider, place the culling script, set it to Occluder layer and it should work. Main camera needs an other object with kinematic rigidbody, which copies the camera position and when that enters the occluder, it'll hide the given game objects or game objects' children. Easy to setup and works pretty well. just good positioning of the occluder is important.

Monday, 21 July 2014

Low-poly tribune with fans

Low-poly tribune


Tribune design for old school Formula 1 style racing game for Android. I overall, it currently has 6 textures including all ad boards and fans. Stairs are flat, and the whole object consists of 570 triangles. I made a low poly man character in 3ds max which is less than 500 triangles. I made different textures and poses for it, and rendered as texture. I'll make more with different cloth style also I'll need female fans too! 

Sunday, 29 June 2014

Facebook - Racing game photo album

I made some little progress on the racing game project for Android. Here is the current screenshot album on Facebook. For more, please like my Facebook page!

Tuesday, 11 March 2014

Simple iframe for Unity Webplayer (with instructions and download)

I made an easy way to embed Unity games into websites. Download link: https://dl.dropboxusercontent.com/u/85819592/Unity/SimpleFullFillTemplate.zip
(Extract the WebPlayerTemplates folder into your project's assets folder and select the template at Edit->Project Settings->Player)

To use it with iframe, put this into your html / php's <body>:

<iframe height="95%" src="your_webplayer_url/webplayer.html" width="100%" ></iframe>

Also works with any CMS. In some situation, you should modify the height to a fixed value in your webplayer html and in the iframe too. If you want to get rid of the default iframe border, use this attribute: frameBorder="0"

The following example is sized to 700px high. The reason is just because it is embedded at an other site where this size was set.

Racing game? It'll be done!

I started a racing game back then, but I didn't make any progress in the last months. It doesn't mean, I forgot about it or I gave it up! I was working on that Flappy Bird clone. Also I had problems with the car physics.

James Hunt McLaren M23
A pretty old screenshot...
Good news, I found a pretty good way to make the cars work with the wheel collider component of Unity. It will be a little bit arcade style, but also it'll be fun. And it will be pretty stable at high speeds too. Nothing to worry about!

James Hunt McLaren M23
...and a newer one.


Also I'll make the tracks low poly, but detailed. It'll work on PC and Android too. What I learnt from my Flappy Bird project is handling MySQL databases through Unity. I think it'll be a useful thing for online lap time comparison.

Friday, 7 March 2014

My first game!

Do you know Flappy Bird? Maybe you are one of the unlucky persons who knows that game. And guess what? I made a Flappy Bird clone. There are hundreds of them! And I made one too. The main character is an F1 driver who jumps out from his smoking car. Probably you know who I am talking about. That photo of him was a great target of Photoshoppers. And a good target of me to create a game of it.

Click on the image to start the game!

It's not 100% finished, I need to fix some things, but it's working. Final version is coming soon! You can play it here: https://apps.facebook.com/flappymax/