stef-levesque / vscode-3dviewer

Preview 3D meshes in VSCode
MIT License
96 stars 20 forks source link

Material for .obj missing #22

Open jokil123 opened 3 years ago

jokil123 commented 3 years ago

System: Windows 10 Extension version: v0.2.2 vscode version: v1.59.1

If I load an obj file it's texture / material is missing, the model is instead displayed as white. image

files for error recreation (works with all objs though) files.zip

KelvinHong commented 2 years ago

Same problem here. Seems like an easy issue but there is no solution found.

dfgs commented 2 years ago

Hello. Same problem. It would be usefull to be able to import material.

Degubi commented 2 years ago

Hi! I created a pr for loading .mtl files for .obj files. The extension tries from now on will try to load a .mtl file with the same name as the .obj (the same way you sent the example files.zip) Now it looks like this:

image

The .obj is named: 'test.obj' The .mtl is named: 'test.mtl'