Jump to content

Apache server setup for Sponza demo


Cacuser
 Share

Recommended Posts

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!

 

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

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!

sponza_1.PNG

Link to comment
Share on other sites

  • 1 year later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...