Tag Archives: 3D

Working with GLFW library under Fedora.

Today I will try to use GLFW library.

GLFW is a C library that lets you using an OpenGL context and window, display modes and inputs like keyboard, mouse, joystick and time.

GLFW supports Windows, Mac OS X and Unix, Linux and FreeBSD and any operating systems with the X Window System.

Also you can read more about this library here.

First install the library using root account.

Now let’s see the source code.

First I includes all librarys I need.

In the main function I start to see if the library is working.

The next step is to set some settings, see:

… and also testing the desktop settings.

The settings it’s show on console with cout function.

Now I make the window context using fullscreen option.

I set the title of the window.

I enable the keys.

The next source code it’s close the window.

Testing with time command to see how fast working.

The netbeans IDE make the package in this path.

I make RPM package for Fedora distro.

I test my example and working well.

Posted in 3D, All, C++, Linux, OpenGL, Programming. Tagged with , , , , , .

Using bpy module to select and active some objects

Today I will show something about Blender 3D scripting.

The last version of Blender 3D use Python 3.

This told us : you need to know how to programming in python language.

After you start the Blender application go to Scripting Mode.


The blender application will change the windows and make all for you.


The Blender 3D application use bpy module to deal with all blender stuff.

The bpy module come with some python modules.









The Blender 3D come with autocomplete source code (Ctrl+Spacebar keys) and can be change from Blender 3D menu

File – User Preferences – Input

Let’s try some examples…

I created one python script for selection and make active object.

First rule about selection is: only one can ever be active at a time, but you could have many objects selected .

See the script: the next line will make active the Camera object.

This will show us the active object. In this case will show us : Camera.


The next lines of python source code allow me to:

select all or deselect all objects in the scene:

deselect all objects

select all objects

You can select the object by type: ‘MESH’, ‘CURVE’, ‘SURFACE’, ‘META’, ‘FONT’, ‘ARMATURE’, ‘LATTICE’, ‘EMPTY’, ‘CAMERA’, ‘LAMP’, ‘SPEAKER’.

Also you can select some Blender 3D windows feature.

Let’s change the window mode from 3D windows.

You need to select the default cube or another editable object and use the next line of python source code.

I selected just two objects and will make one list.

Now I will print collect selected objects.

Using for and if we can use all selected objects:

You can try also on your Blender application.

I will come with more complex examples in the future.

Posted in All, Blender 3D, Programming, Python. Tagged with , , , , , .

Using Ivy Generator with Blender 3D version 2.64

I used this addon with blender 2.64 and working well.

I don’t think will be problems with the last version of blender : 2.66 .

To using the Ivy addon , you need to activate this from user preference.

Search the addon “ivy” and check to activate this plugin. See image:


The next step is to add the ivy to mesh. Just press Shift+A keys and select the ivy .

The ivy will be create on cursor point. Select your mesh and point of ivy.


The next step is to make settings for ivy.This is my settings fro the final result.


The ivy will be created with roots and leafs.

Also will need to set two materials for this.

This is the the output :


Posted in All, Blender 3D. Tagged with , , , .

Install povray and arbaro under Fedora .

Install povray-3.6

You need to download it from here.

Unarchive the povlinux-3.6.tgz in your user home folder.

Let’s install it. Press U and select /home/YOUR-USER/.povray. See the output.

As you see the YOUR-USER is your user.

Now , edit the config file to working with arbaro:

Make this settings:

Anyway seam the pov can be used. I set the arbaro folder to render png image.

Install arbaro

Download it from here.

Extract the files and folders into arbaro folder.

Use this command to run it.

As I told you : if the render image is not show in the pov then set the render into arbaro folder.

All the settings of the object tree can be make from the left panel.

Next we can see some images from arbaro.

arbaro povray fedora
arbaro povray fedora
arbaro povray fedora

Posted in 3D. Tagged with , , .

Alice – 3D educational programming environment – installation .

What is Alice?

The www.alice.org – official website provides a quick introduction.

Using an innovative 3D programming environment that makes it easy to create animations or games, the Alice Project seeks to provide tools and materials for a conceptual core of computational thinking, problem solving, and computer programming.
The Alice Suite of educational tools is designed to support teaching and learning across a spectrum of ages, grade levels, and classes in K-12 and in college or university courses.

You need to install jdk and jre from http://www.oracle.com.

Download from official website the installer: www.alice.org.

Make it executable.

See the content of the folder.

Run the script:

This is the first GUI window of installation program.

alice3 educational install linux

Select Alice application and press Next button.

alice3 educational install linux

Accept License Agreement.

alice3 educational install linux

The next step is : select folder for application.

alice3 educational install linux

Press Install button.

alice3 educational install linux

You will see progress of instalation.

alice3 educational install linux

After you can see the logs and details. Press Finish button.

alice3 educational install linux

Accept End User License Agreement.

alice3 educational install linux

This is first IDE for your to Select Project and allow you to select one template.

alice3 educational install linux

The IDE for develop your first project.

alice3 educational install linux

This is first tutorial to install Alice.

I will write more in the future. See you later.

Posted in 3D, Linux, Programming. Tagged with , , , .