Vertex Normals Not Smoothing on Plain Geometry
-
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.
-
What software and filetype are you exporting to and what settings are you using?
-
@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.
-
You have a sample code snippet we can look at?
-
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.
-
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.
Advertisement