The goal of this lab is to simply get familiar with the basics of Unity through exploration. There are a few things that you should look into - listed below - but otherwise, you are free to make whatever you like. Sort of like playing in a sand box.
You need to install Unity 3D on your own machine before you start. You get the latest version from the Unity 3D download page.
MainCamera, giving you a point of view into the environment you are constructing, and the
DirectionalLight, which illuminates all objects from a particular direction (the position of the light source does not matter, only its orientation). Now add a third object, which will serve as your ground. From the main menu select GameObject→3D Object→Plane, this will add a large flat object to the scene. If you now selct your
Main Cameraobject from the Hierarchy panel, you may see from the little Camera Preview pop-up window that this ground is not visible due to the relative position of these two objects. You can place objects precisely in the world by adjusting the
Positionproperty of the object in the Inspector pane. From Hierarchy select
Main Cameraand then in the Inspector give the camera the position (0,1,-3) in the Transform component. Now select the
Planeand give it the position (0,0,0). You should now be able to see the ground in the camera preview. Press the Play (in the play control panel above the scene) button to confirm that when you run your environment you will see the ground below you and the sky behind it. Press the Play button again to stop running the scene (there is no stop button!).
Directional Lightobject you already have in the Hierarchy panel, and play with its orientation to see how that changes the way things look. You can switch between position (straight-arrows in a cross) and orientation (two round arrows) manipulation of objects in the tool-bar right above the Hierarchy panel. Bring in more objects, both lights and geometry, and experiment with their placement (manipulating them in the scene view) and properties (through the Inspector panel).
Directional lightand change the
Shadow Typeproperty to
No Shadows. Feel free to play with other settings and choose something you are pleased with.
Assets→StandardAssets→Characters→FirstPersonCharacters→Prefabsand you should see that it contains two “pre fabricated” (Prefabs) character controllers. Drag the
FPSController.prefabonto your plane in the Scene view (it will get added in that location and also appear in the Hierarchy view. You then have to position this object such that it is standing on top of your ground and facing your other objects. When you press Play you can now walk around your environment in first person.
NavyGridand drag it onto your plane in the Scene view. To adjust the scale of the texture, make sure the
planeis selected, expand the
NavyGridmaterial in the Inspector panel and change the
tilingparameters under Main Maps.
FPSControllerobject in the Hierarchy to reveal the
FirstPersonCharactersub-object. Select it. Use the Add Component button in the Inspector view to add a new Image Effect below the
There are two options for handing each lab in after completion: (1) Zip up the EXE file along with the data folder and upload into MySchool (make sure you just build the scene you were working on), or (2) take a screen shot and upload it into MySchool. MySchool will be open for upload until midnight on the same day as the lab. If you miss that deadline, you can email this (or a link) to the instructor.