Since local mail policies don't allow me to have zip file attachments I
have placed the zip file for this patch at the following URL:

http://www.sci.utah.edu/~butler/obj_patch.zip

Sorry for the inconvenience.

Lee
--------------------------------------
file: src/osgPlugins/obj/ReaderWriterOBJ.cpp Release 2.8.1

The attached ZIP file contains a modified OBJ file format reader which
makes smoothing optional for verticies which do not have a normal
associated with them in the OBJ input file.  The previous behavior was
to always smooth at all verticies which did not have surface normals.
In this new implementation smoothing is on by default to be compatible
with previous behavior.  The user can now specify the "noSmoothing"
option to the reader to use facet normals for verticies where the OBJ
file does not specify a normal.

The patch was tested with the included "boxes.obj" file and proprietary
geometry.  In the "boxes.obj" file the red cube does not have normals
specified for the verticies.

The first test replicates the previous behavior:
% osgconv boxes.obj boxes_smooth.osg

The second test demonstrates the new capability:
% osgconv -O noSmoothing boxes.obj boxes_sharp.osg

The two image files depict the results of each conversion.

Lee Butler

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to