Search

Blender 3D News and Training

Free Tutorial

This script allows you to apply scale to all of your objects including linked duplicates. It will keep linked objects linked, lattice deformed objects deformed properly, and will even correct modifier values so objects with modifiers like bevel don’t look different after applying scale. To load in the script in your own blend file, just open the text editor window and open the py file. Alt + P while hovered over the text editor runs the script. Let me know if you like this script or if you encounter any problems with it. I know the coding’s not the most efficient, but it gets the job done and I’ll update […]

Free Tutorial

A breakdown of the logic and scripting behind the stalking enemy AI featured in the game prototype.

Free Tutorial

Introduction This one’s for the Python dabblers that haven’t been able to figure out localOrientation. Using the function localPosition is easy enough because it returns a list of x, y, and z values. Using localOrientation for rotation values, however, returns a 3×3 matrix. So unless you’re brave enough to handle matrices what we’re going to do in this quick tutorial is convert our object’s matrix to degrees for easier reading and changing. For an intro to python scripting in the BGE, check out my beginner’s python tutorial.   Reading Your Object’s Rotation Open the text editor in Blender and add a new file. Name this “rotation”. Paste in the following […]

Free Tutorial

This tutorial will take you through taking our rigged bow and arrow from the last tutorial and putting it into the game engine in Blender 2.6. You’ll learn how to shoot arrows at different speeds depending on how far back the bow string is pulled, and how to have these arrows stick into whatever they hit. Download the start file Download the finished file VERSION UPDATE: There’s a bug in later Blender versions that make the arrow drop straight down when the bow string is pulled all the way back. To work around this I’ve added 4 lines after the “else” statement and changed the launcher.actuators line and that fixes […]

Free Tutorial

Learning Python! *This tutorial is up to date with the latest version of Blender. If you come across any errors please leave a comment below.* In this beginner’s BGE Python tutorial you’ll learn how to use Python scripting in Blender to make a car move, increase in speed, and stop. Keep in mind the boxcar is simply used as an example of working with Python, not car physics. This tutorial will teach you the basics of Python scripting for the Blender game engine, including accessing and changing logic brick information through scripting. Before getting started, if you’re new to Python and for more general information on Python including formatting, statements, […]