asafbibas / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

OBJ Loader fail to read vertex texture when space between values #518

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Problem :
When loading an obj model, the loader fail with an "empty String" message. If 
the model file contain several spaces between the two numeric values of "vt" 
element, then the problem appears. some tools (Wings3D, UVMapper) do put those 
spaces to align values.
(JME3, nightbuild of 25/06/2012)

Source :
It seems this comes from the readVector2 function, that is used to read vertex 
texture (vt). the splitting of the line is not correctly working.

Possible solution : 
use a //s++ instead of //s to split the line, or use the same method as 
readVector3 (which is not sensible to the same problem)

Original issue reported on code.google.com by mgpa...@gmail.com on 11 Jul 2012 at 10:15

GoogleCodeExporter commented 8 years ago

Original comment by normen667 on 5 Sep 2012 at 2:01

GoogleCodeExporter commented 8 years ago

Original comment by ShadowIs...@gmail.com on 5 Sep 2012 at 9:58

GoogleCodeExporter commented 8 years ago

Original comment by ShadowIs...@gmail.com on 5 Sep 2012 at 9:58