Reputation: 23352
I copied and pasted the Three.js code given here into an HTML file and downloaded the three.js
package from the website, and configured the <script>
tag to point to the location of the file three.min.js
.
Nonetheless, when I open the HTML file, it displays a blank white screen.
What am I missing?
Upvotes: 2
Views: 3426
Reputation: 1
I had the same problem. Windows hides the file extensions by default. I change it in folder options and it worked.
Upvotes: 0
Reputation: 2198
well I tryed the exact same thing and I'm seeing the wireframe cube rotating on screen. A few things to try.
1) drop the three.min.js right in the root folder and copy/paste the example code again without any alterations.
2) did you get the three.min.js from the zip package under the build directory? Or did you navigate the git repo and copy/paste it? If copy/paste was used be sure to click the "Raw" button to get the code without the wrapper HTML.
3) try the latest Firefox or Chrome browsers first. If it works there but not in say Safari, there are a few steps you need to take to enable WebGL in Safari first.
4) your video card may be blacklisted due to driver incompatibilities.
If none of these help, then post up the code, where you got the Three.js package, what browser and video card your using and I'll see what else I can do to help :)
Upvotes: 2