I've hit a roadblock. After scouring all relevant threads I could find, none quite match up with my issue.
The aim is to export and texture map a model in either .JSON or .JS format to render the same as an .OBJ version when viewed through WebGL. The image below illustrates the situation:
Configuration: Windows 7, Blender 2.77, Three.js (downloaded on 5/22/16), Three.js (.json) Blender Exporter, Python OBJ > .JS converter script (convert_obj_three.py)
python convert_obj_three.py -i xxx.obj -o xxx.js
Steps taken:
- Model exported from WoW ModelViewer as .OBJ
- Model imported into Blender
- "Remove Doubles" function used in Blender Edit mode
- Export from Blender to .OBJ
- Using Three.js THREE.OBJLoader() script for web testing
Yields a "GOOD" outcome (left case in image)
- Export from Blender to .JSON (experimenting with various configurations)
- Testing using Three.js THREE.JSONLoader() script on the web
Results in a "BAD" scenario (middle case in image)
- Export from Blender to .OBJ
- Utilizing CMD line Python script for conversion from OBJ to .JS
- Testing again with Three.js THREE.JSONLoader() script on the web
Ends in a "WORSE" example (middle case in image). This time not only the Hair texture but also parts of skin on the model's face appear distorted.
You may observe slight variations in lighting rendering in each case as well.
Upon inspecting the .JSON and .JS files, I'm at a loss with regards to manual editing if necessary.
Could it be that certain models just won't texture correctly?