On this post I will show you what we can get with canvas and a little javascript code. I will try to implement game loop, game draw, simple 2D physic, and key input method with this little demo of bouncing ball. on this simple tutorial we using keymaster.js simple micro-library for defining and dispatching keyboard shortcuts in our little project.

Last time I already create day night cycle with smooth light and fog transition. now I will perfected last day night cycle in this article by adding Skybox transition from day and night just like the demo bellow. For this functionality we need a custom skybox shader that contain 2 type of skybox and blend factor with range [0-1] type to get combination of 2 skybox texture.

Do you curious about day night cycle in Skyrim, Oblivion and FallOut? here is a simple way to implement it in your Unity3D game. This tips will be divided into 2 section, first is to make rotating sun, transition in light intensity, transition in fogs and ambient light transition. the next tips will be how to create Skybox blending technique to smoothly transition from day skybox to night (stars & moon) skybox that can be read here. It’s a little modification from Day Night Controller on here

Using unity3d is easy to create awesome terrain with first person camera. We can create an island scene with it’s sea, river, tree, and other objects. We could get a nice sun effect with built in directional light and flare assets, we could great sky with adding Skybox to our game, even we could get near-far ‘feel’ by enabled the fogs.

But there something missing, the camera render normally when we underwater, there is no different between underwater view and above water view. This feel is necessary when we create scene that have more water than land, or the player can go swimming or diving in our scene. so we need underwater effect script to complete our scene. for the demo you can see here

create new c-sharp script and name it Underwater, and copy code bellow. (more…)

"I read a lot of interesting content here. Probably you spend a lot of time writing, i know how to save
you a lot of work, there is an online tool
that creates readable, SEO friendly posts in minutes, just type in google - laranitas free content source"

"I read a lot of interesting articles here. Probably you spend a lot of time writing, i know how to save you a
lot of time, there is an online tool that creates high quality, google
friendly articles in minutes, just type in google
- laranitas free content source"

"I read a lot of interesting posts here. Probably you spend a lot of time
writing, i know how to save you a lot of work, there is an online
tool that creates high quality, SEO friendly posts in minutes, just search in google - k2seotips unlimited content"