three.js: OBJLoader doesn't support 3ds Max's # object
It looks like it assumes “o name” format, but this particular obj file from wavefront does not have them. Its structure looks like this:
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
# File Created: 11.10.2013 19:47:40
mtllib Alesia.mtl
#
# object Alesia_figure
#
v 14.700874 99.412476 -0.028355
v 7.184631 104.040680 -3.556595
...
so you see, objects are only marked in “comments”. Do you think it is good idea to extend regexp to support this?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 46 (38 by maintainers)
Commits related to this issue
- ObjLoader: Ignore silently o/g line declarations that are not followed by any geometry (f) before a new o/g is started. Discussed in #6682. — committed to jonnenauha/three.js by jonnenauha 8 years ago
@NguyentuanMec With my PR https://github.com/mrdoob/three.js/pull/8691 code the model loads correctly. Though her eyes are completely white. Looks like the eyes material is using
map_Dthat does not seem to be parsed at all by mtl loader, so probably that is the reason (?!).