Menu

Tree [r43] /
 History

HTTPS access


File Date Author Commit
 chapter10 2014-10-09 ganovelli [r41] added google analytics
 chapter2 2014-10-09 ganovelli [r41] added google analytics
 chapter3 2014-10-03 ganovelli [r21] added
 chapter4 2014-10-09 ganovelli [r41] added google analytics
 chapter5 2014-10-09 ganovelli [r41] added google analytics
 chapter6 2014-10-16 ganovelli [r42] small bug
 chapter7 2014-10-09 ganovelli [r41] added google analytics
 chapter8 2014-10-09 ganovelli [r41] added google analytics
 chapter9 2014-10-09 ganovelli [r41] added google analytics
 css 2014-10-06 corsini [r36]
 img 2014-10-06 corsini [r34]
 js 2014-10-06 corsini [r34]
 lib 2014-10-08 ganovelli [r40] debug log removed
 media 2014-10-04 ganovelli [r29] added
 media_remote 2014-10-04 ganovelli [r29] added
 globals.js 2014-10-03 ganovelli [r21] added
 index.html 2014-10-17 ganovelli [r43] web update
 readme.txt 2014-10-03 ganovelli [r28] ongoing

Read Me

/*
 Introduction to Computer Graphics: a Practical Learning Approach
F. Ganovelli, M. Corsini, S. Pattanaik, M. Di Benedetto

How to use the code provided with the book
*/


=== How to modify the clients ===

One uncompressed, see the following folders and files:

nvmc
--chapter2
--chapter3
--chapter4
--chapter5
--chapter6
--chapter7
--chapter9
--chapter10
--lib
--media
--media_remote
--globals.js
--readme.txt
--style.css


Each folder contains the client introduced in the corresponding chapter of the book. Each client is 
inside a numbered folder, for example:

chapter2
--0
----0.html
----0.js
----shaders.js

There are two ways to run the client in your machine:

1. WITH A LOCAL WEB SERVER
If you have a local webserver, then all you have to do is to set the document root to "nvmc". Then you can type in your web-enabled browser:

localhost/chapter2/0/0.html


2. WITHOUT A LOCAL WEB SERVER
If you do not have a local web server then you must uncomment the last line of file globals.js. This will prefix a string containing a url
to the remote server  where to load  resources (geometry and textures)

In this case you can just open directly any client file (like chapter2/0/0.html) and it's done. 

NOTE: if you are NOT connected to the internet and you have NOT a web server installed, you can still directly open the html files with the browser,
but clients after chapter5/0 won't work poperly because they need geoemtry models and textures.


=== Tools for developing ===
In principle you only need a text editor