Cacuser Posted March 31, 2016 Share Posted March 31, 2016 Hi! I am trying to setup and run the Sponza demo on my local system. Then the scenes don't seem to be loading. I have downloaded the entire samples-master: including the scene content from here: https://github.com/BabylonJS/Samples/tree/master/Scenes/Sponza and the code of the demo from here: https://github.com/BabylonJS/Samples/tree/master/Scenes/Sponza I can see that Sponza.babylon is being downloaded. (from localhost/samplesmaster/Scenes/Sponza/Sponza.babylon) The console displays this: BJS - [15:56:59]: Babylon.js engine (v2.3.0-alpha) launched babylon.js:3 GET http://localhost/samplesmaster/Scenes/Sponza/firePart1 404 (Not Found)h @ babylon.js:3r.LoadFile @ babylon.js:3t @ babylon.js:22t.Parse @ babylon.js:23e.SceneLoader.RegisterPlugin.load @ babylon.js:13u @ babylon.js:13e.onreadystatechange @ babylon.js:3 babylon.js:3 Uncaught Error: Error status: 404 - Unable to load ../../Scenes/Sponza/firePart1e.onreadystatechange @ babylon.js:3 babylon.js:3 GET http://localhost/samplesmaster/Scenes/Sponza/firePart2 404 (Not Found)h @ babylon.js:3r.LoadFile @ babylon.js:3t @ babylon.js:22t.Parse @ babylon.js:23e.SceneLoader.RegisterPlugin.load @ babylon.js:13u @ babylon.js:13e.onreadystatechange @ babylon.js:3 babylon.js:3 GET http://localhost/samplesmaster/Scenes/Sponza/firePart3 404 (Not Found) I am using a WAMP Apache (v2.2.1) server I added the following line to the .htaccess file AddType application/babylon .babylon AddType application/fx .fx AddType application/babylonmeshdata .babylonmeshdata Should I be doing something else or adding some other settings to make this work? Thanks in advance for your help! Quote Link to comment Share on other sites More sharing options...
Wingnut Posted April 9, 2016 Share Posted April 9, 2016 Hi @Cacuser, sorry that you have not gotten any replies. Have you made any progress on your own? Quote Link to comment Share on other sites More sharing options...
adam Posted April 9, 2016 Share Posted April 9, 2016 Have you used this wamp server before? Sometimes windows blocks port 80. If you aren't able to load other pages using the server, I'd try configuring it to use another port like 8080. Quote Link to comment Share on other sites More sharing options...
OMAR Posted April 9, 2016 Share Posted April 9, 2016 I prefer xampp. You can have much more control using xampp than wamp I guess. Quote Link to comment Share on other sites More sharing options...
RaananW Posted April 9, 2016 Share Posted April 9, 2016 This seems like a parse error. Those files don't exist, and are never referenced by any of the files in the repository. Try using the 2.4 preview release and see if it helps. If you can debug a bit further or share a link where we can check this, it would be wonderful. Quote Link to comment Share on other sites More sharing options...
Cacuser Posted April 11, 2016 Author Share Posted April 11, 2016 Thanks for all your replies and suggestions - I'll try some more things using your pointers. Hopefully I'll be bale to get it to work! Quote Link to comment Share on other sites More sharing options...
Cacuser Posted April 11, 2016 Author Share Posted April 11, 2016 Update to 2.4 Preview release fixes the issue! But now there is another issue - the demo plays but does not fill the whole screen. The credits part seems to fill the whole screen, while the actual scenes in the demo are in the upper left hand side of the screen. Please see attached screen shot. Will dig in to see what's up - but any ideas on why this is happening are welcome! Quote Link to comment Share on other sites More sharing options...
JacobSobolev Posted July 12, 2017 Share Posted July 12, 2017 @Cacuser can you please share the files? i having trouble running this on my local xampp server 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.