Tag Archives: 3D

Blender 3D – Using OpenGL include addon .

I have many source code to deal with OpenGL. The main goal come when you need to put objects into enviroment.
Even you use C, C++, C#, assembly language or python – PyOpenGL module this will give you some problems when you need to import 3D objects.
With this addon from here, all you need is more good.
The main reason I like this addon come with all data and infos to work with 3D files.
If you think is more simple to use .obj file then you have some hacked problems.
First ths .obj files can be change and if you use just some parts then you need to parse it.
The addon create one .h file header and also has a good structure of date.
Go to the link – show on the top of this tutorial , unarchive and put into:
C:\Program Files\Blender Foundation\Blender\2.73\scripts\addons
If you install Blender 3D , just put into your path under addons folder.
The next pictures will show how to use this:
Use your editor to see the output.

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

How to find free images of high quality – part 001.

You can download for free from pixabay.com.

Over 250,000 free photos, vectors and art illustrations
Finding free images of high quality is a tedious task – due to copyright issues, attribution requirements, or simply the lack of quality. This inspired us to create Pixabay – a repository for stunning public domain pictures. Your source for free vectors, free drawings and free photos. You can use any Pixabay image without attribution in digital and printed form, even for commercial applications.

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

Unity 3D – C# script – countdown timer tutorial.

This tutorial will show us how to make one simple countdown timer.
First go to Asserts tab and click with right mouse button.
Create new C# script and open it with double clicks – left mouse button.
Drag and drop the script into your main camera.
Fill into Mono Developer with this script:

Press Play Button and you will see this.
The GameOver is empty and you can put there your own game over script.

Posted in 3D, All, C#, Game engine, Programming, Unity 3D. Tagged with , , , , , , .

Blender 3D – version 2.7 anf MakeHuman – export file mhx .

New Blender 3D version 2.7 series has been released with new features. Also the MakeHuman 3D software come with Blender 3D export file.
This is fix and make more easy to working with 3D file – mhx.
After you create and export your character under MakeHuman you need to make some settings under Blender 3D.
First go to File – User Preference – Addons (tab) and search this addon and check it:
If you receive this error then is need to activate Python.
This it’s simple to do it. Just use same path : File – User Preference – File (tab). .
The character created with MakeHuman will be insert into 3D Blender view.
See the next image rendered with Blender 3D.
One good feature of MakeHuman is the way to make the character object.
You can see how easy can be animated under Blender 3D.

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

CRYENGINE – about Lua programming – part 1.

First I make this tutorial because lua language is used not only CryEngine …
Most game engines used this language programming.
Because I used the 64 bits into Cry Engine I will use the LuaCompiler from this folder :
About Lua if you read the official website you will see this :
Lua is a powerful, fast, lightweight, embeddable scripting language.
Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

Also you can read about lua and windows OS here :
Now let’s make a simple example with this programming language.
First we need to deal with three file type: .cgf , .lua and .ent .
The .cgf cry engine file is a file will load into game.
The .lua file is a lua program file.
… and .ent file is a cry engine file ( entity file ).
So I make this files : test001.ent and test001.lua.
I save the test001.ent with this path : C:\CRYENGINE\GameSDK\Entities
and test001.lua come with this path: C:\CRYENGINE\GameSDK\Scripts\Entities\Physics
The content of the test001.ent:

The content of the test001.lua:

The next step is to open your Cry Engine Editor and will see your script working.
Now about the lua script ( test001.lua) is very simple to understand how it’s working.
First line is the name , in this case is test001.
All about this is store with {} and after that will come the functions: OnInit , OnReset and PhysicalizeThis.
Because all this functions come from test001 then the syntax is: test001:your_function() and will end with this word: end.
Also be advice about ; and , under Properties and after that is need to see how is the diff when we use:
self: and self.
All of this tips can be found if you read the test001.lua and try to understand that script.
Also you need to following prefixes on the value name…
Prefix Type
b – boolean
f – float
i – integer
s – string
clr – color
object_ – an object compatible with CryENGINE: a CFG, CGA, CHR or CDF file

You also can read this webpage.

Posted in 3D, All, Game engine, Programming, Windows 8. Tagged with , , , .