Need some OBJ import help

jmucchiellojmucchiello Posts: 1,503
edited June 3 in New Users

I loaded an OBJ and I it said something about scale 26453%. And in Daz, at 100% scale it is several kilometers in size. I can set the scale to .3% (or whatever works) but I don't want to have to remember that. Will the scale be fixed if I export and reimport it? What format should I use if so? Any other needed steps?

The only interesting text in the log file is "Importing Wavefront Object" if that helps.

EDIT: Nevermind. The scale during import was the issue. Setting it to 100% fixed it.

Post edited by jmucchiello on

Comments

  • Richard HaseltineRichard Haseltine Posts: 110,490

    Right, OBJ doesn't have an inherent scale (well, it might have in the original context - but in practice most applications just take one OBJ unit as whatever their base unit it). You wer, I think, importing with the Poser preset but the mesh itself was exported at 1 unit = 1 cm (which is the Daz Studio default). The same issue arises with respect to the axis system used (Y-up or Z-up). DS allows you to specify scale and orientation, and to use and create presets (which will be correctly inverted between export and import).

  • jmucchiellojmucchiello Posts: 1,503

    Yeah, I was using a few OBJ files from different sources and everyone of them was different. Is the "normal workflow" for loading an OBJ?

    1. load the OBJ.
    2. Figure out what settings were missing.
    3. delete and import again with the missing settings
    4. repeat if necessary.
  • lilweeplilweep Posts: 2,832

    If you have re-scaled something in Daz to be the appropriate size for your scene in Daz and you want to "bake transforms" then yes export and reimport.

  • lilweeplilweep Posts: 2,832
    edited June 3

    jmucchiello said:

    I loaded an OBJ and I it said something about scale 26453%.

    Also this statement doesnt make sense.

    "it said"

    What said?

    Post edited by lilweep on
  • Richard HaseltineRichard Haseltine Posts: 110,490

    lilweep said:

    jmucchiello said:

    I loaded an OBJ and I it said something about scale 26453%.

    Also this statement doesnt make sense.

    "it said"

    What said?

    OBJ Import dialogue, I would assume - if you have it showing options as well as presets then there is a field for scale.

  • Richard HaseltineRichard Haseltine Posts: 110,490

    jmucchiello said:

    Yeah, I was using a few OBJ files from different sources and everyone of them was different. Is the "normal workflow" for loading an OBJ?

    1. load the OBJ.
    2. Figure out what settings were missing.
    3. delete and import again with the missing settings
    4. repeat if necessary.

    It isn't a matter of something missing, it's a matter of the file not specifying what its scale should be (OBJ doesn't have a place for that) so if you don't know where it came from, and have a preset to match, then yes some trial and error may be required - though once you have settings that work for a particular source you can add your own preset to pick it next time. I would start with the modo preset as Y-up, 1 unit = 1m seems to be fairly common.

  • richardandtracyrichardandtracy Posts: 7,742

    When creating obj files yourself it's worth working in cm, that way 100% is a standard and easy figure to remember for import.

    For obj files generated by other people, I always import them into a modeller where I can measure them first to get an idea of the overall size.

    It could be feasible to write a DS script to extract the bounding box size of an imported object, and then possibly ask the user for a desired object size to scale it to. Then you could export that & re-import at 100% to bake in the scale. There are many ways to do this and it could be down to personal preference which way you go.

    Regards,

    Richard

Sign In or Register to comment.