Is three.js ObjectLoader capable of loading textures?

后端 未结 2 1352
天命终不由人
天命终不由人 2021-01-28 13:40

three.js version 0.0.70, blender version 2.73a

I have a scene exported from blender to three.js json format using new io_three

相关标签:
2条回答
  • 2021-01-28 14:24

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

    0 讨论(0)
  • 2021-01-28 14:42

    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"
        }]
    
    0 讨论(0)
提交回复
热议问题