XYZ coordinates Blender to Oolite

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
d8sconz
Poor
Poor
Posts: 4
Joined: Mon Nov 26, 2012 3:38 am

XYZ coordinates Blender to Oolite

Post by d8sconz »

I can't get the orientation correct when I export from blender to the .obj file, and from there into Oolite. There are options for stipulating which axis is up and which is forward when you export to .obj from Blender. It seems that no matter what I try, the orientation is wrong by the time I get it into the game. Also, the result seems to have nothing in common with my choices in the export options (if I choose 'Z' up, it is facing forward in the game etc.). Can someone advise, what are the correct 'Up' and 'Forward' options in Blender when exporting. Many thanks.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: XYZ coordinates Blender to Oolite

Post by Wildeblood »

Y is up, Z is forward.
d8sconz
Poor
Poor
Posts: 4
Joined: Mon Nov 26, 2012 3:38 am

Re: XYZ coordinates Blender to Oolite

Post by d8sconz »

Thanks Wildeblood, but I managed to finally get it done through trial and error. Interestingly, the coordinate choices for export that worked were the opposite of your suggestion (I used 'Y' forward and 'Z' up). That may have something to do with me reorienting the model in Blender as well. Also, for others who may be grappling with this issue, I spent a lot of time aligning the exhaust plume to the model. The wiki says the x,y,z coordinates for that effect are measured from the origin of the model. In fact the coordinates are from the world origin in Blender, which is a whole different kettle of fish. Once I've sorted out these things I'll try to put together a quick tutorial for other Blender users out there.
User avatar
Zieman
---- E L I T E ----
---- E L I T E ----
Posts: 680
Joined: Tue Sep 01, 2009 11:55 pm
Location: in maZe

Re: XYZ coordinates Blender to Oolite

Post by Zieman »

Funny thing about the Y - Z switching, in Oolite Z positive is forward (for example, if you increase a subentity's z-coordinate, it will be positioned more forward relative to main entity).

Model origin vs world origin: any models you make for Oolite this should be the same. Having any single object centered already in 3D program makes life a lot easier when fixing the .plist to make said object to appear in Oolite.
...and keep it under lightspeed!

Friendliest Meteor Police that side of Riedquat

[EliteWiki] Far Arm ships
[EliteWiki] Z-ships
[EliteWiki] Baakili Far Trader
[EliteWiki] Tin of SPAM
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: XYZ coordinates Blender to Oolite

Post by Commander McLane »

d8sconz wrote:
The wiki says the x,y,z coordinates for that effect are measured from the origin of the model. In fact the coordinates are from the world origin in Blender, which is a whole different kettle of fish.
I think that's exactly the same fish. The origin of the coordinate system in your 3D-modeling program automatically becomes the origin of this model in Oolite. That's kinda the point of it all, isn't it?

So, if you for some reason decide to create your model in front of the blue/red/green coordinate arrows in Blender (instead of around them), the origin of your model in Oolite will be behind it.

That's also why it's a good idea to centre your model in your 3D-modeling program.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: XYZ coordinates Blender to Oolite

Post by Smivs »

d8sconz wrote:
...I'll try to put together a quick tutorial for other Blender users out there.
There is already a Blender Tutorial here on the BB :)
Commander Smivs, the friendliest Gourd this side of Riedquat.
Post Reply