Day 9 – Unity, Blender and .blend import
On 9 I read chapters 7 and 8 of the book Unity 3.x Game Development Essentials and watched Parts 6 and 7 of the video lesson Blender 2.6 Essential training.
In Chapter 7 of the book is built a mini-game where the player has to shoot down all three targets with coconuts to liberate one of four power cells in order to open the door. The only thing interesting about this chapter is the use of coroutine. Actually, later I’ll look deeper into coroutines.
In chapter 8 of the book is built a fire and made a simple mechanic that makes the player lights the fire from a matchbox that is inside the station. The main subject in this chapter is the particle system, as when the book was written was still using the old system, the author made a video showing how to do the same fire in the new system (shuriken).
Part 6 of video lessons talked about textures and more interesting, that I wasn’t sure how it worked, UV Mapping.
Part 7 talked about the types of lighting that Blender has, and showed one by one.
One thing I did today too was to test the interaction of Unity with Blender.
The Unity automatically imports the file .blend that is in the project structure. I created a standard sized cube in Blender and imported to Unity, then I created a cube of size 1 in Unity itself. The cube of the Blender was twice the size in comparison to the Unity. So to maintain the aspect ratio is necessary to put the scale at 0.5 on the properties of import.
After scaling test I took a scene from the video lessons (the room) and imported to Unity. Using scale to 0.5, the size was good, but when importing the material was not with the texture. I need to make a search on how to export Blender material in Unity.
Render of the Room in Blender:
PS: Sorry for the bad english.