Thursday, March 5, 2015

Playing with Unity 5 - skybox - terrain - third person controller

Okay so I want to quickly create a game where I can control the character running around a beautiful area with beautiful sky and the control feel like World of Warcraft, and I noticed quite a bit of difference of how things work in Unity 5

1. Skybox
- To do this is, you first need to create a new material, choose shader type skybox-> 6 sided

- download the sky texture here https://www.93i.de/products/media/skybox-texture-set-1
- put 6 texture into front, back, left, right, top, bottom

- Finally on your camera , add component-> rendering -> skybox, and attach the material to your skybox

2. Create Terrain
-> On top of your screen, Game Object -> 3D Object -> Terrain

-> Use the brush to quickly draw some mountain to your terrain


3. If you want to create First Person Controller
-> On top of your screen, Assets -> Import -> Character

-> then drag the "FPSController" Prefab into your scene, put the position 0,0,0 you can play your character instantly


4. If you want to create Third Person Controller
-> drag the "thirdpersoncontroller" prefab into your scene
-> create a camera rig to follow your character, watch the video below if you dont understand my step

-> you download or copy the "camera script" from http://pastebin.com/zGn4HBUS
-> then you drag the "camera script" to your camera
-> then you drag your character into the "target" of your camera script
-> now you can zoom in using "mouse wheel", right click and drag to rotate
(Its now same like world of warcraft camera control, super cool)

There you go, hopefully you have fun same like I do

3 comments:

  1. VSCO is a highly rated iPhone camera app with a cool minimalist interface and a social twist. In addition to giving users extensive manual controls, the app allows them to also explore and find curated photographic content from a vibrant international community. More VSCO features are available via an in-app purchase.

    ReplyDelete
  2. VSCO is a highly rated iPhone camera app with a cool minimalist interface and a social twist. In addition to giving users extensive manual controls, the app allows them to also explore and find curated photographic content from a vibrant international community. More VSCO features are available via an in-app purchase.

    ReplyDelete
  3. VSCO is a highly rated iPhone camera app with a cool minimalist interface and a social twist. In addition to giving users extensive manual controls, the app allows them to also explore and find curated photographic content from a vibrant international community. More VSCO features are available via an in-app purchase.

    ReplyDelete