MoI discussion forum
MoI discussion forum

Full Version: Floating Point Issue from LWO

From: Yanus3D (JANUSZBIELA)
1 May   [#1]
Hi

I have another issue with exporting to LWO (LightWave 3D) format.
It appears that MoI is passing incorrect coordinates of the object.
Here is how it looks:
In LightWave Modeler, everything is fine.
When I import this model into Unity using the LWImporter plugin, I encounter an issue with large floating-point values—the object's layer is shifted from its original coordinates.
I have included screenshots of that.
Can you investigate what might be inside this exported LWO file?
To be clear, I have been using this plugin in Unity (LWImporter) for six years and never encountered these problems until I started using MoI and LWO format from MoI.
Where can be problem?

The only way to remove this error is:
- save LWO MoI file again as new LWO directly from Lightwave
- move layers to another EMPTY layer and save (It looks like he has something locked in layer with object and moving object to empty layer delete issue)

Image Attachments:
image.png 


From: Yanus3D (JANUSZBIELA)
1 May   [#2] In reply to [#1]
I think we wound couse of that!

The Pivot Point of exported object into LWO format is wrong....
It is shifted by big numeric number from orginal Gizmo 0.0.0

Pivot Tool can reset it but looks like issue is on the MoI side during exporting to LWO.

Image Attachments:
Pivot.png 


From: Michael Gibson
1 May   [#3] In reply to [#2]
Hi Yanus3D, does it happen with exporting any object out from MOI like a box, or is it a problem with a specific file?

If with a specific file can you please post the .3dm file or e-mail it to me at moi@moi3d.com so I can examine the generated LWO ?

For the pivot point, MOI does not have a per-object pivot point like animation programs have, it places the pivot point for a LWO mesh layer at the center of its bounding box.

- Michael
From: Yanus3D (JANUSZBIELA)
1 May   [#4] In reply to [#3]
Thank You!

I sent you mail with model.
Details are there.
From: Michael Gibson
1 May   [#5] In reply to [#4]
Hi Janusz, thank you for sending the model.

<edited.,..>

Looks like the problem is with "Scale output units to meters" is set under Options dialog > Import/Export > LWO options.

The pivot point isn't getting the conversion to meters applied to it?

- Michael