Blender - Introduction To Game Engine.pdf

(1410 KB) Pobierz
BSoD/Introduction to the Game Engine
by MalCanDo
Table of Contents
An overview of the tutorial, and skills required......................................................................................... 5
The format of the tutorial...................................................................................................................... 5
Intended Audience................................................................................................................................. 5
What skills will you need to know in advance...................................................................................... 5
Downloading the correct version of Blender......................................................................................... 5
Learning the basics of using the Blender UI.............................................................................................. 6
The basics of the Blender UI, and how to quickly use it....................................................................... 6
Taking a closer look at the default scene............................................................................................... 6
Interacting with the 3D scene................................................................................................................ 7
Changing the 3D scene to Perspective mode......................................................................................... 7
Manipulating objects within the scene.................................................................................................. 8
Selecting other objects within the scene................................................................................................ 9
Adding and removing objects in the scene.......................................................................................... 10
Fixing newly added 3D objects........................................................................................................... 10
Renaming objects................................................................................................................................ 11
Practice, Practice, Practice................................................................................................................... 11
Learning the basics of using the Blender Game Engine........................................................................... 12
Setting up the default scene................................................................................................................. 12
A very useful keypress sequence when working with the GE............................................................. 13
Choosing the correct Shading Mode (or Draw Type) for the GE........................................................ 13
The Main Game Logic Panel............................................................................................................... 14
Visually controlling the GE - Sensors, Actuators, Controller Logic Blocks....................................... 14
Setting up a basic Sensor, Controller, Actuator Logic Block sequence............................................... 15
Breaking down the events in the GE system....................................................................................... 16
Making the default cube move, using no physics..................................................................................... 16
Controlling the cube via the arrow keys.............................................................................................. 17
Adding in additional keyboard controls.............................................................................................. 18
Some GE house keeping...................................................................................................................... 19
Removing logic blocks and connections............................................................................................. 20
Making the default cube move, using physics.......................................................................................... 20
Setting up the game scene................................................................................................................... 21
Making a model physical within the GE............................................................................................. 22
Moving the physical object within the GE.......................................................................................... 23
Controlling the sphere using the arrow keys....................................................................................... 24
Adding some obstacles into the level.................................................................................................. 25
Making some of the objects physical................................................................................................... 25
Completion of the basic GE tutorial.................................................................................................... 26
Creating more complex game levels and interactions.............................................................................. 27
Making the ball jump........................................................................................................................... 27
Restarting the game when a goal is reached........................................................................................ 27
Collecting pickups within the level..................................................................................................... 28
Counting the collected objects............................................................................................................. 29
Adding color to the levels using Materials.......................................................................................... 30
Making a stand-alone version of the game.......................................................................................... 32
Overview of all of the Sensor, Controller and Actuator Logic Blocks..................................................... 33
Additional links and tutorials................................................................................................................... 36
Blender Artists Community Forum - GE Section................................................................................ 36
Links to other Blender or GE related websites.................................................................................... 36
Links to other Blender tutorials........................................................................................................... 36
Links to other Blender related websites............................................................................................... 36
Pag. 3
Pag. 4
An overview of the tutorial, and skills required
The format of the tutorial
This tutorial will show the reader how to create a simple 3D game from scratch in Blender. After
completing the tutorial, the skills learned will allow readers to extend the game levels.
It assumes no prior knowledge of Blender, so experienced users will be able to skip over certain
sections.
Only aspects of Blender that are relevant to making simple games will be touched on. This will
cover only a fraction of Blender's overall functionality, and will hopefully encourage readers to use
Blender for other purposes, such as creating 3D animations.
The tutorial should take around 2 hours to create a working 3D game from scratch.
Intended Audience
This tutorial is aimed at anyone with an interest in making 3D games, but who may have no prior
experience of either Blender or 3D.
It will teach the basics of Blender's Game Engine ("GE") to both new Blender users, and also to
existing Blender users who may not yet have enjoyed this aspect of their favourite application.
Blender is a very powerful 3D modelling and animation package, with an excellent and constantly
improving built-in Game Engine. It is known has having quite a steep learning curve, although
when you get used to the workflow, it is very fast to work with.
What skills will you need to know in advance
This tutorial is aimed at all levels of user, so it doesn't assume any prior knowledge of Blender.
If you are a new user with no experience of Blender, the tutorial will step you through the important
aspects of Blender and the GE, so that you will be able to create your own game.
If you are experienced with the Blender UI with regard to the important GE buttons and areas, you
might want to quickly scan over some of the initial sections.
Downloading the correct version of Blender
This tutorial requires the use of Blender 2.42a. If you have an older version of Blender, please
upgrade to this version. It can be downloaded at
www.blender.org/cms/Blender.31.0.html
Use current Blender version:
If you are using a previous version of Blender, even if it was
version 2.42, you may notice an error when running your game with the stand-alone Game Engine
player. Blender version 2.42a fixes the game engine error that exists in version 2.4.2.
Pag. 5
Zgłoś jeśli naruszono regulamin