Exporting .bullet and .obj

Game Engine, Players & Web Plug-in, Virtual Reality, support for other engines

Moderators: jesterKing, stiv

Post Reply
Posts: 2
Joined: Sat Sep 15, 2012 12:45 pm

Exporting .bullet and .obj

Post by Brett12345 » Sat Sep 15, 2012 1:00 pm

I'm using blender to create scenes and export the scene to my game engine. I've managed to do this with .obj files by exporting the scene and flipping the axis (Y-up), which works nicely.

Now I want to export physics to my game engine by exporting the .bullet file but the problem is that the object transformations for all my game objects are on the blender axis (Z-up).

Is there a way of exporting the physics as Y-up as I can with the .obj file? (or ideally adjusting blender to be Y-up instead of Z-up, which I doubt)

Posts: 3645
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Sat Sep 15, 2012 5:51 pm

Bullet, like a lot of scientific and engineering apps and Blender itself, uses Z up. No idea what is in the .bullet file, but likely you will have to transform the coordinates when you export them. Or process the file afterwards.

There is no nice way to change the Blender coordinate system.

Posts: 2
Joined: Sat Sep 15, 2012 12:45 pm

Post by Brett12345 » Sat Sep 15, 2012 10:07 pm

Thanks. I managed to get the result I wanted by rotating the entire Blender scene around the origin and on the X axis by -90 degrees before exporting the .bullet file then exporting the .obj as Y-up -Z-forward.

Posts: 13
Joined: Thu Apr 04, 2013 5:59 pm

Post by rraallvv » Thu Jun 20, 2013 5:53 pm

I'm using this script to do the exporting stuff

Code: Select all

import PhysicsConstraints
Do you know ho ca it be done with code, so I can add it before my code

I'd appreciate any help

Posts: 2
Joined: Sun Jul 14, 2013 9:55 am

Post by tango » Sun Jul 14, 2013 10:45 am

transforming the coordinates worked for me too.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest