sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Vertex Normals Not Smoothing on Plain Geometry

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 4 Posters 399 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.
    • D Offline
      dburdick
      last edited by

      Is this a bug?

      Two simple cylinders. One is plain geometry (circle extruded with push/pull tool) the other is plain geometry and then convereted to a component.

      When I export the faces, the vertex normals are different even though smoothing is turned on for both. The plain geometry object on returns non-smoothed vertex normals, whereas the component object returns smoothed normals. What I want is smoothed normals for both cases - as it is displayed in SU.

      Any ideas on why this happening or should I report this as a bug.

      http://www.skinvue.net/su1.jpg

      http://www.skinvue.net/su2.jpg

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        What software and filetype are you exporting to and what settings are you using?

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • D Offline
          dburdick
          last edited by

          @chris fullmer said:

          What software and filetype are you exporting to and what settings are you using?

          Hi Chris,

          I'm just exporting the faces as a mesh using the Sketchup API (e.g.face.mesh) into a simple .obj format. The problem is that the vertex normals returned are not smoothed unless the Sketchup surface is part of a component. If the surface is free standing, ungrouped, or un-componentized geometry, then SU returns un-smoothed vertex normals even though they are displayed in SU as smooth. So I'm thinking that this is a bug in the SU API.

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            You have a sample code snippet we can look at?

            Thomas Thomassen — SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • soloS Offline
              solo
              last edited by

              Dave, I usually export to .3ds, however when I do export .obj I select 'triangulate all faces' and obviously the swap coordinates (which I'm sure you also do)
              I occasionaly get this issue where I select model and smooth to 40 and it fixes things normally.

              • I'm talking about smoothing in Vue as I notice the render is a Vue one.

              http://www.solos-art.com

              If you see a toilet in your dreams do not use it.

              1 Reply Last reply Reply Quote 0
              • D Offline
                dburdick
                last edited by

                Thanks for all the help. I found the problem. Apparently if you add some geometry to the scene using ruby and then try to export a mesh of non-component geometry, the normals become unsmoothed. An odd quirk.

                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