About This Course

The Babylon 101 course will lead you on a step by step journey to produce scenes that use some of the basic features of the Babylon Engine. There will be references for more details at each stage.

So you can get started without any fuss the course starts out with the First Step by showing you how to use the Playground to create a scene. Throughout the course you will find examples built in the Playground ready for you to explore and edit. You can of course write your own code in the Playground, just click on the NEW button, edit and write your code and hit the RUN button.

Playground example -

In this playground example, you will see that this scene contains a camera, lights and a sphere. A sphere being one of the shapes readily available for you to add into your scene. Many more shapes, or meshes as they should be called, are available for you to easily create. In addition to the well known fixed shapes such as boxes, sphere and cylinders it is also possible to create shapes using techniques such as extrusion and lathing. The next two steps of the course show how to add some of these.

Having added shapes to your scene you will want to know how to position and rotate them so that is next. So far the shapes are all bland and grey so next it is onto adding color and texture to the meshes in the form of materials.

How do you want to view your scene, from a distance orbiting around it or do you want to immerse yourself into it and do a walkthrough as in a first person shooter? Choose the correct camera and you choose your view, just move onto the next step to see how this is done. The way you light a scene can affect the atmosphere. Checkout the range of lights by moving onto the next section.

Starter steps completed and you are walking tall so now is the time for some dynamism. Get those elements of your scene animated but watch out for collisions between the camera and a mesh and between meshes themselves. Or perhaps you want the mouse pointer to collide with a mesh so you can pick it. All possible by following the next set of steps. Want to know if one mesh is in the line of sight of another or if they are on a straight path to collision? Cast a ray and see what it hits.

Sometimes all it takes to enliven your scene is a simple animated 2D character in your scene, so the next step will introduce you to sprites and sprite animation. Sprites can also be used to form particles to produce effects such as fire, smoke, glitter and faery dust. Learning about particles is next.

Other improvements to your scene environment are next. They include adding sky or fog to your scene followed by enhancing the landscape by producing a ground with hills and valleys and finally how about some shadows for those meshes helping to anchor them to the ground.

And now let's take the First Step