hw3web Posted November 13, 2013 Share Posted November 13, 2013 Hi there , I try to load model from blender but .babylon file is in the folder together with pictures (materials) , unfortunatly scene not load : with error as he can not find file jpg as he suspect have it in main folder not subfolder with babylon file ( is any way to set path of materials for babylone file ? Thank you Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 13, 2013 Share Posted November 13, 2013 It should work as we try to load textures side by side with .babylon scene. Could you share the error you got? Quote Link to comment Share on other sites More sharing options...
hw3web Posted November 13, 2013 Author Share Posted November 13, 2013 Status Code: HTTP/1.1 404 Not Found ??!??? I I know , maybe you remeber I ask when I can delete files and is maybe is delete for fast ? is any indication when all texture is loaded ? Quote Link to comment Share on other sites More sharing options...
hw3web Posted November 13, 2013 Author Share Posted November 13, 2013 No I try even not deleting after load still showing error as it is in subfolder ( Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 13, 2013 Share Posted November 13, 2013 Hi, All textures linked to a babylon scene should be in the same folder that the .babylon file, as written here : http://blogs.msdn.com/b/eternalcoding/archive/2013/06/28/babylon-js-how-to-load-a-babylon-file-produced-with-blender.aspxPlease note that the textures and the .babylon file must be side by sideAll textures in a subfolder will not be taken into account. melaugui 1 Quote Link to comment Share on other sites More sharing options...
hw3web Posted November 13, 2013 Author Share Posted November 13, 2013 they are in texture , but together with babylone file they all are in subfolder and that some problem ?! Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 14, 2013 Share Posted November 14, 2013 Can you share the piece of code that do the loading please ? Quote Link to comment Share on other sites More sharing options...
hw3web Posted November 14, 2013 Author Share Posted November 14, 2013 is nothing really to share it is standard BABYLON.SceneLoader.Load("", "temp/test.babylon", engine, function (scene) { scene.executeWhenReady(function () { all is working if model do not have any texturejust this texture can not be find in temp folder wiht error Status Code: HTTP/1.1 404 Not Found ! but is there simple jpg Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 14, 2013 Share Posted November 14, 2013 Hey, Can you try to run this : BABYLON.SceneLoader.Load("temp/", "test.babylon", engine, function (scene) {It should work better Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.