Projects

OBU

Urbi for Ogre+Bullet (OBU)

>>> Go to Download link


Ogre is a famous open-source 3D renderer used in many games and simulation applications. Bullet is an open source physics engine that can be coupled to Ogre to create a complete virtual environment with gravity, forces, etc.

We have just finished a first version of a binding between Ogre+Bullet and Urbi (codename: OBU), which allows you to spawn 3D meshes and apply forces, joints and effects on them from within urbiscript. With urbiscript you can benefit from parallel and event-based abstractions to animate your world.

Here is an example of code that we are currently using to generate a thruster on a rocket, with a key binding to activate it:


class Global.Thruster
{
	var force;
	var effect;
	var position;
	var direction;
	var entity;

	function init(_entity, _force, _position, _direction, key)
	{
		force = _force;
		direction = _direction;
		position = _position;
		entity = _entity;

		effect = Effect.new(entity, "Examples/JetEngine1", 13);
		effect.setVisible(0);
		effect.setPosition(position);
		effect.setDirection(direction);

		var move = Tag.new("move"+key);

		at (Keyboard.pressed?(key))
		{ 
			effect.setVisible(1);			
			move: every(5ms) entity.applyForce([direction[0]*force,
			                                    direction[1]*force,
			                                    direction[2]*force],
			                                    position);
		};

		at (Keyboard.released?(key))
		{
			effect.setVisible(0);
			move.stop;
		};

	};
};

Here is the current release, for Windows only (mac is on its way):

 >>> OBU: urbiworld.zip <<< (latest release: 29/09/2010)

Follow the instructions of the README file in the archive to start or to compile the project.

Check the dedicated forum topic to ask questions and discuss the project.

History of releases:

DateComment
29/09/2010Includes a working Visual Studio Pro solution to recompile the project
28/09/2010Upgrade to Urbi 2.3
26/09/2010Add support for a movable cursor on the terrain (use keypad)
25/09/2010Add support for terrain rendering
21/09/2010Fix a bug that prevents world.bat to work in certain configuration
19/09/2010Initial release. Includes source code and binary, for windows only

Options: