sketchucation logo sketchucation
    • Login
    ⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here

    Import OBJ with correct UVs

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    6 Posts 4 Posters 306 Views 4 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.
    • H Offline
      harnstein
      last edited by

      Hi,

      I'd like to build some model in SU, send it to 3Ds, bake a GI'd render to texture and send it back over to SU to get some nicer definition for a "real time presentation".

      Should work fine so far- but I just cant get UVs properly over along with the model.

      I tried TIG's OBJ Importer script which works somehow (sometimes doesnt show the materials but this may be because of me trying different setups) but does not seem to bring over the uvs correctly.

      See pics.

      If OBJ is not an option maybe FBX would be - or is it simply SU which is the bottleneck?

      Thanks in advance πŸ˜‰

      PS: the shown model is NOT the one I'm going to build, just for reference.. πŸ˜‰


      result.JPG


      uv coordinates obj.JPG

      still sketchin'

      1 Reply Last reply Reply Quote 0
      • oceanembersO Offline
        oceanembers
        last edited by

        I have no idea if this will work, but have you made sure the materials are applied to the geometry, rather than the containing groups/components?

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

          Textured Materials applied to containers are unmapped in SUp.
          Textured Materials applied to faces in SUp can be mapped.
          But is your SUp model is 'sloppy' - perhaps with materials on the back-sides of wrongly oriented faces, instead of the fronts, then those materials won't export let alone map, and therefore they won't import back into SUp properly either...

          TIG

          1 Reply Last reply Reply Quote 0
          • H Offline
            harnstein
            last edited by

            After some further research I could narrow some things down:

            @TIG: OBJ files can only contain ONE uvmap channel? Maybe thats the bottleneck in this case? The testmodel was pretty simple, probably does not contain any flipped faces.

            @oceanembers: yes, materials were applied to geometry, not groups πŸ˜‰

            Actually exporting the file as FBX from 3DS (containing auto-unwrapped textures, each group rendered to a seperate generated image file) and using the FBX importer from simlab I managed to get it transfered. πŸ˜‰

            Auto-unwrapping and rendering the final model has some downsides, too- collapsed geometry would need a huge texture size, rendering hundreds of objects in seperate image files may take a while too.. But may worth it- as the result is definitely appealing. If one keeps the render options low this process should be more or less quick.

            80 € for the FBX importer may be a little expensive, though..

            There are other options (if I got it right) like LightUp sending bake-information along with FBX exports in some way, therefor should be useable in a similar way (reimporting to SU if necessary).


            baked back in SU.JPG

            still sketchin'

            1 Reply Last reply Reply Quote 0
            • Rich O BrienR Online
              Rich O Brien Moderator
              last edited by

              Better to create a Texture Atlas from the combined UV maps.

              This will consolidate multiple maps into one image

              Download the free D'oh Book for SketchUp πŸ“–

              1 Reply Last reply Reply Quote 0
              • H Offline
                harnstein
                last edited by

                Thanks Rich! That was very useful!
                I was never using unwrapping on large scenes but single / multiple objects only.
                Actually even for rendering animations this will be MORE than helpful.

                Great, thanks again! πŸ˜„

                still sketchin'

                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