mrdoob/three.js — Issue #1260: JSONLoader textures path problems
Author: jlsfernandez
Created: 2012-02-06 19:57:42+00:00
State: open

Hi,

I figured this two:

in the r47 version if you run the example webgl_materials_cars_parallaxbarrier.html you will find that the browser sets that:

http://url…../examples/obj/veyron//VeyronNoUv_bin.bin can`t be loaded,

if you change in three.js the function THREE.BinaryLoader.prototype.loadAjaxBuffers to not add another "/" it runs.

also same with .obj models with textures ( and object with an .obj and .mtl and a subdirectory with images/textures) THREE.JSONLoader is adding an extra "/" to the path as for example:

http://url…./examples/obj/billboard//auto.PNG

some place for understand if this is not an error.

Thanks