markqian / webgl-loader

Automatically exported from code.google.com/p/webgl-loader
0 stars 0 forks source link

WARNING: s ignored in line [...] #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

If I am loading .obj files either generated from 3ds max exporter or converted 
by the open asset import library i get the error.
WARNING: s ignored in line [linenumber]

as far as i know s stands for the smoothing groups aka vertex normals in the 
.obj file format.

Got this info from here: http://en.wikipedia.org/wiki/Wavefront_.obj_file
"Smooth shading across polygons is enabled by smoothing groups."

Are smoothing groups not recognized in the exporter?

Here is a link to a obj file causing the issue:
http://threever.org/demos/problem/waranHigh.obj

Original issue reported on code.google.com by guntr...@googlemail.com on 27 Oct 2012 at 4:32

GoogleCodeExporter commented 9 years ago
For the purposes of rendering, webgl-loader treats "s" groups like "g" groups. 
In fact, it doesn't really do much, because it uses the available per-vertex 
normals. In other words I'm expecting that, the modeling software that exported 
the OBJ should have already computed the normals.

What do you think?

Original comment by wonchun on 23 May 2013 at 3:42