sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Big Problem with obj export/import

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    5 Posts 2 Posters 1.4k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Aerilius
      last edited by

      The dense black lines indicate that the edges of the colored frame are split into many line segments (50-100!). Every broken line forces the triangulation to create another long thin triangle. It could be possible that the uv coordinates are messed up because of rounding issues on these thin triangles.

      Try this: Use the select tool and click on such a line. Does it highlight only a small line segment or if you select with the selection rectangle and Entity Info shows many selected entities?
      Then use "Repair Edges" of Cleanup, and try to export again.

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        With the 'Pro' OBJ exporter you can elect NOT to triangulate exported faces - although triangulation IS most common.
        With my 'Free' OBJexporter it automatically exports faces as triangles.
        What did you use to make the OBJ file ?
        This triangulation is because most third-party apps that will import such files expect them to define triangulated facets - most are renderers and as the edges are never used the number of triangulated facets is unimportant.
        Reimporting an OBJ back into a SKP will inevitably lead to this kind of triangulation...
        Materials that have be 'distorted' need re-UVmapping by the OBJexporter - this is not always perfect... Can you not subdivide the faces, make separate colored versions of this texture and then simply paint them - trying to adjust with Texture can prove awkward. Alternatively are you aware that once you get a material on one face as you want it arranged you can use the Material Browser's eyedropper to 'sample' it and paint other faces with a matching texture with no further adjustment being needed?

        If the facets have the same plane and same material then one of the many Erase/DeleteCoplanarEdges tools will remove those unneeded edges in a selection.
        If they form part of a 'smoothed surface' then using Erase+Ctrl will change 'wiped' edges to be smoothed. Using Erase+Shift will hide such edges. The Smooth context-menu tool will auto-process a whole selection/object and gives you control over what is smoothed and the angle between faces etc...

        TIG

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          OK, you are using my OBJexporter - you should NOT use my OBJimporter - there's a much better/quicker Fluid OBJ importer [find link in Plugins Index].
          I used that on an export I did.
          It was triangulated as you show, BUT editing the sub-groups and select-all + EraseCoplanarEdges does tidy it up a lot, BUT it's never going to be as good as the original.
          Some bits of faces have unique materials returned because you've probably 'skewed' them while editing/placing them - use the eyedropper to clone materials...
          Why are you exporting to OBJ ?
          Why are you reimporting into SKP ?
          It is hardly the best way of doing this...

          Incidentally, I also tried a Pro export - it doesn't split the geometry by material and erasing coplanar edges does mess up the mapping far worse... so I suggest that the Free OBJexporter and the Fluid OBJ importer as the best of a bad lot...

          Here's the 'fixed' re-import for your info...test_after_import+edit.skp

          TIG

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            There's a new version of the OBJexporter about to appear - watch its thread...

            TIG

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              There is a link to an 'earlier version' on the download page.... BUT the latest version should be very similar, both time-wise and it now avoids issues with flipped instances etc...

              TIG

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement