Moi3d obj export question

Next
 From:  Matadem
11895.1 
Good day
So I am working on a project which I need to use Moi and Nvil3d together.

The issue I am having is when I save to obj and import in Nvil is way off in size.
So I made 2 cylinders 157cm from center to center export as obj...import back in Moi and it is 10 times smaller. Moi dimensions are set in cm.
So where am I going wrong here?
So I guess I have an issue in Moi or in Nvil or in both lol.
and what is the difference in save obj and export as obj.

Tnx!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  PaQ
11895.2 
10x scale i a bit weird.

.obj doesn't store any unit system. When you work in cm in MoI, a box of 10 cm means 10 units. It's up to the .obj loader in Nvil to decide what to do with the unit (cm, m, mm etc).
If you create a 10x10x10cm centred box, working in cm in MoI, vertex should be between (-5.00,-5.00,-5.00) and (5.00,5.00,5.00). (.obj is a plain text format, so you can check it with a simple note editor).

So usually when you have scaling issue, it's often by 100, 1000 ... maybe Nvil default is decimetre ?

MoI have a few option if the export setting, like scaling factor, that can help to get a match MoI>Nvil ... but Nvil>MoI might still be off.

- Check if you can set NVIL default unit as cm (and check if there are any import/export options when it comes to unit conversion)
- Use .FBX (FBX format store the unit system, so loader can do a better scaling conversion)

"Save As" save the complete MoI scene, "Export" only save the selected geometries.

EDITED: 7 Jan by PAQ

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Matadem
11895.3 In reply to 11895.2 
Ok I just did another test for some reason it seems good in Moi.
2 cylinders 20cm apart export as obj...import obj remeasure and it is good.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
11895.4 
Something very easy to make! :)

Draw a line as any measure you want!
Say 1 meter
Import your OBJ

Transform / Oriente/ Line - Line
4 cllicks et voilĂ ! :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11895.5 In reply to 11895.3 
Hi Matadem, what are you using for the .obj import back into MOI?

If it's Max Smirnov's _ImportObj script, that resizes the import by default.

To stop that add a parameter "exact" to the command in your keyboard shortcut.

So set up the shortcut like this:

_ImportObj exact

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Matadem
11895.6 
I have created a cube 10x10x10cm

I have exported as obj and imported in back with both Max import obj and create subD and both are imported just fine. right size.
weird but it works ...so now I have to look at Nvil3d import settings...

almost there..

As I tried other shapes came up with some weird measurements(50cm come in at 14.7cm)....used the import exact...came in at 100x smaller..
so I upped the export 100x in Nvil3d and it seems to open in Moi good.

Tnx!

EDITED: 7 Jan by MATADEM

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All