webgl

所属分类:WEB开发
开发工具:Others
文件大小:2857KB
下载次数:19
上传日期:2017-03-05 18:56:30
上 传 者虎虎虎虎
说明:  webgl的初学案例,本案例中包括了大量的webgl源代码,适合新手学习
(Webgl beginner case, this case includes a large number of webgl source code, suitable for novice learning)

文件列表:
webgl源码教程 (0, 2012-08-21)
webgl源码教程\index.html (1080, 2012-08-15)
webgl源码教程\clip_image010_0002.png (134221, 2012-08-21)
webgl源码教程\.project (268, 2012-08-14)
webgl源码教程\.DS_Store (6148, 2012-08-15)
webgl源码教程\lesson16 (0, 2012-01-17)
webgl源码教程\lesson16\WebGLExport.py (14251, 2012-01-17)
webgl源码教程\lesson16\webgl-utils.js (5946, 2012-01-17)
webgl源码教程\lesson16\ObjToJSON.html (4186, 2012-01-17)
webgl源码教程\lesson16\moon.gif (143547, 2012-01-17)
webgl源码教程\lesson16\macbook.obj (697069, 2012-01-17)
webgl源码教程\lesson16\macbook.json (1266822, 2012-01-17)
webgl源码教程\lesson16\macbook.blend (858628, 2012-01-17)
webgl源码教程\lesson16\macbook.3DS (282653, 2012-01-17)
webgl源码教程\lesson16\index.html (30769, 2012-01-17)
webgl源码教程\lesson16\glMatrix-0.9.5.min.js (12444, 2012-01-17)
webgl源码教程\lesson16\crate.gif (67585, 2012-01-17)
webgl源码教程\lesson15 (0, 2012-01-17)
webgl源码教程\lesson15\webgl-utils.js (5946, 2012-01-17)
webgl源码教程\lesson15\index.html (17920, 2012-01-17)
webgl源码教程\lesson15\glMatrix-0.9.5.min.js (12444, 2012-01-17)
webgl源码教程\lesson15\earth.jpg (156018, 2012-01-17)
webgl源码教程\lesson15\earth-specular.pdn (136128, 2012-01-17)
webgl源码教程\lesson15\earth-specular.gif (38092, 2012-01-17)
webgl源码教程\lesson14 (0, 2012-01-17)
webgl源码教程\lesson14\webgl-utils.js (5946, 2012-01-17)
webgl源码教程\lesson14\Teapot.json (57705, 2012-01-17)
webgl源码教程\lesson14\index.html (17301, 2012-01-17)
webgl源码教程\lesson14\glMatrix-0.9.5.min.js (12444, 2012-01-17)
webgl源码教程\lesson14\earth.jpg (156018, 2012-01-17)
webgl源码教程\lesson14\arroway.de_metal+structure+06_d100_flat.jpg (111989, 2012-01-17)
webgl源码教程\lesson13 (0, 2012-01-17)
webgl源码教程\lesson13\webgl-utils.js (5946, 2012-01-17)
webgl源码教程\lesson13\moon.gif (143547, 2012-01-17)
webgl源码教程\lesson13\index.html (23166, 2012-01-17)
webgl源码教程\lesson13\glMatrix-0.9.5.min.js (12444, 2012-01-17)
webgl源码教程\lesson13\crate.gif (67585, 2012-01-17)
webgl源码教程\lesson12 (0, 2012-01-17)
... ...

Some lessons in WebGL --------------------- This repository contains a series of simple lessons in WebGL, plus some related examples. The folders named lesson01, lesson02, and so on are a sequential tutorial and are best understood using the explanatory text at: The form of the first ten lessons is *very* loosely based on NeHe Productions' well-known OpenGL tutorial, which can be found here: The lessons from 11 onwards are not related to the NeHe ones. The folders named example01 etc are example code for interesting stuff outside the scope of the tutorial, and have their own README.txt files with details. Problems seeing the lessons? ---------------------------- When experimenting with the lessons later than #5 you may encounter errors resulting from "cross-origin" file access. This is caused by the browsers' security systems: * Browsers want to stop pages from one server ("origin") from gaining access to data from another origin except under closely-controlled circumstances. (For example, imagine if a hostile website tried to gain access to data from the online banking window you had open in another tab.) * Unfortunately, when files are loaded from the filesystem, the browser sees each file as a separate origin. So when one of these examples tries to load, say, a texture to display on a cube, it will fail. There are two ways you can work around this. The best, safest way is to use a local webserver, but an alternative if you're careful about it is to temporarily disable the cross-origin restrictions. The dangerous way ~~~~~~~~~~~~~~~~~ Switch off the same-origin policy. This is perfectly safe if you're only going to use the browser for testing your own code, but isn't a good idea in general (it's all too easy to casually browse over to an internet site without thinking about it). Still, if you want to do this: * Firefox: set the security.fileuri.strict_origin_policy setting in about: config to "false". * Chrome: use the the --allow-file-access-from-files and --disable-web-security switches command-line options (ideally just the first). If you're using a Mac, Stuart Carnie has written a convenient application bundle for this here: The safe way ~~~~~~~~~~~~ Here are instructions on how to run a local web server to host these lessons using Apache under Mac OS X; GNU/Linux will be similar. If you're on Windows, check out Xampp at 1) Add an entry for webgl-lessons.local in /etc/hosts. This will need to be done as the root user using your preferred editor: $ sudo /etc/hosts Add the following line and save the file: 127.0.0.1 webgl-lessons.local Tell the operating system to flush and reload the local DNS cache: dscacheutil -flushcache Test to see if http://webgl-lessons.local/ is working: $ dscacheutil -q host -a name http://webgl-lessons.local/ name: http://webgl-lessons.local/ ip_address: 2) Add an Apache vhost configuration: This will need to be done as the root user using your preferred editor: $ sudo /private/etc/apache2/extra/httpd-vhosts.conf Add the following vhost configuration replacing with the actual path on your filesystem: ServerName webgl-lessons DocumentRoot / > Options +Indexes +FollowSymLinks +MultiViews +Includes AllowOverride All Order allow,deny Allow from all DirectoryIndex index.html After making the change in the Apache vhost configuration first confirm the syntax for the Apache configuration is still correct: $ apachectl configtest Syntax OK If the syntax is OK then restart Apache: $ sudo apachectl restart Now you can open the webgl-lessons in any local browser at this url:

近期下载者

相关文件


收藏者