Category Archives: Blender 3D

Blender and Python – First steps.

On console, you use command ./blender or blender.exe (if you use windows OS).

This is need to see the output of script.

Split your window on two . Click right on bar and select Split Area like on next image.

3D

As we see in the image below, you need to create a new file .

3D

You can use COPY and PASTE to copy some python scripts. You can create NEW scripts, SAVE or EXECUTE SCRIPT.

3D  3D

I create a simple script :

import Blender

import sys

obj = Blender.Object.Get()

print str(obj)

sys.stdout.flush()

Use keys “ALT+P” to run this script .The result should be this :

3D

This output is from my scene ,because has Camera and Lamp objects.

You can use python script with “Controllers” . You must activate the “Enable Script Links”

3D   3D

This is just a simple tutorial how to use python script with Blender 3D.

You can create more complex scripts.

For example to process topographic data or features of Blender 3D.

Posted in Blender 3D. Tagged with .

Blender < 2.5 and MakeHuman - not finish

For this we need two softwares Blender 3d and Makehuman.
The first step will open “makehuman” determines his character and settings (see image below):

mh
Then saves the object collada. In this case “name_of_file”:

mh_col

The next step will load the object through the blender scripts. More specifically through File -> Import -> COLLADA 1.4.
3D

The script will run and we will select these settings:

3D

We will choose the path where we makehuman saved file (see “mesh.dae”) and the result will be:

3D

The script automatically insert more scenes.

3D
Select the row to see where is our character.
We will remove this scene with this button.

3D

And rename with “CG_Girl” like on this image:

3D

Now, we set the object so that we more easily.
First we separate the object depending on the materials.

3D
Select all object from collada with key “A” and use key “Tab” to select “Edit Mode”.

Now select all with see this :

3D

Use key “P” ( on “Edit Mode”) and you see Separate feature. Select “By Material” .

If you change on from “3D View” to “Outliner” will see this :

3D

We apply a few small settings for the object to look better and easier to handle.

Use key “Tab” to change it on “Object Mode”. Than use key “A” to select all object:

Use this settings “Set Smoth” and “Double Sided” like on this images.

3D

3D

The result is much better.

3D

Because our subject has a skeletal. We move in different layer.

On “Object Mode” select the head mesh. Now use the key “M” and select the layer.

3D

We will do the same for others meshs.

3D    3D

3D3D

Now select layer where we moved and we find that our model has no eyes.
3D
Now select layer where we moved and we find that our model has no eyes.
We will do the following trick. Get back to the skeleton layer, then select the mesh eye (is two).
3D
Use the keys “Ctr + D to duplicate.
Press “M” and moving them on the other layer.
3D
If you move on the second layer you will see the result:
3D

You have to put the teeth, tongue and skeletal in a Vertex Group.
In Object Mode select them all using the key combination of keys Shift.Use Ctr + J to create a single object. See next picture.

3D

We call this selection “skelet”, see picture.

3D
Outliner show the new name “skelet”.

3D

To create an animation should take the following steps:
1. Rename each bone;
2. To give the same names for each Vertex Group of each bone. If the head bone is called “head” then Vertex Group will be called “head”;
3. Armature to assign to the object;
4. To establish the character moves.
How make this ? Follow the next steps.

1. Rename each bone with your options .

Select “Armature” and use Edit Mode to select each bone. Select   bone of skull .

3D

Rename this on Armature Bones tabs (see BO:head from image):

3D

We will do the same for each bone.

2. We will do the same for each bone.
It will be called “head”. Select one vertex with right click in Edit Mode and then press Alt + L. In the next picture you can see the result of selection.

Select the entire head with skull, tongue, eye.
3D

In the tab “Link and Materials” create a new Vertex Group called “head” and click Assign.

We will do the same for the neck and other parts of the body.

3D

See the tab on the right “Modifiers” but this is the next step .

3D

3. Armature to assign to the object;

The next picture shows us how to add modifier. Write on Ob: the name of armature . In this case “Armature”

3D

This tutorial is under construction and will not be finish in the future because is a new Blender in town .

Posted in Blender 3D. Tagged with .

Simple effect in Blender 3D: Depth of Field (DOF)

www.free-tutorials.org

The concept of DOF (depth-of-field)  is to use information about Z values, and use it to blur objects.

The more out of depth they are, the more they are blurred. This is a simple example :

I used a cube. Then I multiplied by the modifier array.
It can use other objects. I selected “Node Editor.
I enabled “Composite Node”, see image below:

www.free-tutorials.org

Add and these “converter-> Color Ramp.
Then add the Add-> Filter-> Blur “and” Add-> Vector-> Map Value “.
Then connect them this way.

I marked in red areas to be modified with numbers from 1 to 3.
Change the numbers 1 and 2 so you get a result of the final image (see 3).

As you can see “Color Ramp” is directly linked with the “Composite”.

3D

Do it again , but like  the picture below:

www.free-tutorials.org

The result will be that:

www.free-tutorials.org

Posted in Blender 3D. Tagged with .