Three.js Loading .OBJ error in Azure but not Locally

前端 未结 4 2035
北海茫月
北海茫月 2020-12-19 19:41

I am using three.js for webGL to load .obj but I have a problem when loading .obj in Windows Azure runnning Windows Server 2008 I using Google chrome browser and it gives th

4条回答
  •  时光取名叫无心
    2020-12-19 19:59

    [SOLVED] LOADING .OBJ (Wavefront) FILE IN WINDOWS HOSTING RETURN 404 ERROR [SOLVED]

    As I was Working with Three.js and loading a .obj file works great for me in localhost but when running the files from the Windows Hosting it return 404 for the .obj file.

    So, we need to add this lines to the web.config file of the project root folder (if you don't have the file in your project root folder then go ahead and create one. )

    web.config

            
            
                
                     
                            
                     
                
            
    

    Place the web.config to correct location and Enjoy :)

提交回复
热议问题