dataview Posted July 2, 2013 Share Posted July 2, 2013 Hi I use the sampels of this page http://stemkoski.github.io/Three.js/ in my firefox browser running all Sampel good. But in Chrome the screen freezes, no FPS display, no mouse control!All my browsers are up to date. I find no answers on the Web.does anyone have an idea? THX DV Quote Link to comment Share on other sites More sharing options...
rich Posted July 2, 2013 Share Posted July 2, 2013 Is WebGL enabled in Chrome? If you try running a different WebGL demo does it work? For example the header effect on http://www.creativejs.com Quote Link to comment Share on other sites More sharing options...
dataview Posted July 3, 2013 Author Share Posted July 3, 2013 Hi richthanks for your answer.the examples on the page http://www.creativejs.com work without problems I'm a little confused. the examples on the page http://stemkoski.github.io/Three.js/ work without problems when I go to the page online.I downloaded the samples from github and unpack it on my local hard drivewhen I run the HTML pages locally in Chrome does not work Three.js.I look in the source code but do not see any reference to source on the internet. (<script src"js/Three.js"> </ script>) any idea THX Quote Link to comment Share on other sites More sharing options...
rich Posted July 3, 2013 Share Posted July 3, 2013 You can't run them locally by opening them in Chrome due to sandbox security restrictions. You need to run a local web server. I'd recommend WAMP Server on Windows. It's free. You could add a parameter for when Chrome starts to allow it to access the local file system, but I wouldn't recommend it. Far easier to run an http server locally. Quote Link to comment Share on other sites More sharing options...
dataview Posted July 3, 2013 Author Share Posted July 3, 2013 hi rich I copy the examples in my XAMP server and it all works great.Thanks for your help Quote Link to comment Share on other sites More sharing options...
Psychho Posted July 24, 2013 Share Posted July 24, 2013 Right click on your chrome shortcut, click properties, and paste this at the end of target --allow-file-access-from-files. This will allow chrome to load files locally and without you having to run a local webserver. 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.