OBJ problem with update from r116 to r121

Since I did not work much on the project “Showroom” ( see Circular control used for walkable areas control)
for a while, an update from r116 to r121 was due. Only the following files were exchanged (from 116 to 121).

<script src="js/three.min.121.js"></script>
<script src="js/Reflector.121.js"></script>

<script src="js/GLTFLoader.121.js"></script>

<script src="js/OBJLoader.121.js"></script> 
<script src="js/MTLLoader.121.js"></script>

So far everything is going well. But an obj model remains dark (staircase). Another one (flower) will be presented in a proper way.
Both Obj models are displayed correctly in the Windows 3D-Viewer.

Besides Gltf (girl) I have planned Obj, because there are some free available ones.

Are there differences between 116 and 121 in the use of Obj? :thinking:

Do you also load a MTL file for this model? If so, can you please share both files in this topic?

I downloaded both models some time ago (for free).
staircase_straight.zip (23,9 KB)
flower.zip (1,3 MB)

1 Like

@Mugen87, I am facing the same problem. The same obj and mtl files are working fine with r116 but looking dark with r121.

Sorry, for the delay. This is indeed a bug in OBJLoader but it’s already solved on dev. Should be fixed with r122 which will be released next week. Here is the related PR: https://github.com/mrdoob/three.js/pull/20498


Thanks for your reply @Mugen87. It’s working cool.

1 Like

Your model is missing normals.