Is three.js ObjectLoader capable of loading textures?

邮差的信 提交于 2019-12-02 08:21:16

Check out the dev branch. There have been recent commits for texture support for the upcoming r71 release.

Latest format support it like following:

"images":[
    {
        "uuid": "A430CF4-AD77-11E3-914E-00248C62C323",          
        "url": "../models/1024_tornis.png"          
    },
    {
        "uuid": "eka_tv_2_i",
        "url": "../models/eka_tv_2.jpg"         
    },
    {           
        "uuid": "sala_model_0709_map_i",
        "url": "../models/sala_model_0709_map.png"          
    }
],

"textures":[
    {
        "uuid": "1024_tornis",          
        "image": "A430CF4-AD77-11E3-914E-00248C62C323"          
    },
    {
        "uuid": "eka_tv_2",
        "image": "eka_tv_2_i"           
    },
    {           
        "uuid": "sala_model_0709_map",
        "image": "sala_model_0709_map_i"            
    }
],
"materials": [
    {
        "uuid": "3C5CA6AA-055B-417B-97E0-706BA446140B",
        "type": "MeshLambertMaterial",
        "name": "Material.001",
        "color": 16777215,
        "emissive": 0,
        "map": "1024_tornis"
    }]
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!