Export Coordinates Problem

l0die

11-04-2006 18:42:27

I exported a couple of simple meshes out of 3ds using the 3rd party exporter found on ogre3d.org (export to XML per mesh and XML to .MESH).. it all worked nicely, the coords in Ogre where all the same but the relative coords where still fine after the export:

http://www.arjenboutsema.nl/prj/1.jpg so everything was in the right place.

Now i installed oFusion (after which my exporter didn't work anymore :roll: ) and use its exporter, it takes a lot less stepps to get a usable .mesh so i'd like to keep using it, but the coords are all.. differant :x

with the same mesh files, on the same coords in Ogre i get.
http://www.arjenboutsema.nl/prj/2.jpg.

Any idea's on how to get around this problem?

danharibo

11-04-2006 20:11:35

it looks like ofusin is exporting all the objects to the same spot

l0die

11-04-2006 20:17:59

Yes, so it's like there pivot point is set to 0,0,0 in max before the export (or in any case in the .mesh file it has lost its global coords from max).. but it has also rotated them slightly.

praetor

11-04-2006 21:18:27

select all, reset xform?

Evak

11-04-2006 22:17:16

Is this a Ogre thing, because the Engine I just came from hardly ever required a reset Xform. Not unless you were doing something weird.

So far the easiest way I have found to export things is to add them all to a group, and move the groups local pivot to 0,0,0 before I export. Then I don't have to reset the xforms so much.

l0die

11-04-2006 22:55:26

thnx for rply's

have done both.. same results..

I don't think its an ogre thing but an oFusion thing.. i wouldn't know what the exporting differance is between the 3rd party 3ds exporter and the one in oFusion.. there's obviously a differance because i export exactly the same file.. ?

i don't know what else it would be..

Lioric

12-04-2006 17:37:07

This will be solved with a "Reset XFrom" for all objects in the scene

What is the display in oFusion viewport?
Are you using the exported scene and the scene loader lib?
Or are you just using the meshes?

In any case, look the tutorial posted in this thread, it will show you how to prepare your scene

Support Tutorial 1299_00

If you prefer, send me the scene and i will take a look at it

l0die

12-04-2006 20:00:05

Thnx!

Xforms are resetted, at the moment it looks like somethings going wrong reading OSM coords. Will try the examples/tut's