| author | Radek Brich <radek.brich@devl.cz> | 
| Thu, 24 Apr 2008 18:12:32 +0200 | |
| branch | pyrit | 
| changeset 83 | e3a2a5b26abb | 
| parent 66 | c5b89d16497a | 
| child 94 | 4c8abb8977dc | 
| permissions | -rw-r--r-- | 
| 4 
c73bc405ee7a
multi-threaded rendering via pthreads
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 1 | ================== | 
| 
c73bc405ee7a
multi-threaded rendering via pthreads
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 2 | Pyrit Ray Tracer | 
| 
c73bc405ee7a
multi-threaded rendering via pthreads
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 3 | ================== | 
| 
c73bc405ee7a
multi-threaded rendering via pthreads
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 4 | |
| 44 | 5 | |
| 6 | File Organization | |
| 7 | ----------------- | |
| 8 | /bin -- output directory for binary objects | |
| 9 | /ccdemos -- ray tracer demos in C++ | |
| 10 | /demos -- ray tracer demos in Python | |
| 11 | /include -- header files | |
| 12 | /models -- common models for use by demos | |
| 13 | /src -- ray tracing library source code | |
| 14 | /tests -- test programs for classes | |
| 15 | ||
| 16 | Classes organization throughout header files is explained in DEVNOTES. | |
| 17 | ||
| 18 | ||
| 19 | Building | |
| 20 | -------- | |
| 66 | 21 | Type 'scons all' to build everything and 'scons -h' for list of targets. | 
| 44 | 22 | |
| 23 | Requirements: | |
| 66 | 24 | SCons | 
| 44 | 25 | pthreads (see bellow) | 
| 26 | Python 2.4 or newer for Python module and demos | |
| 27 | PIL (Python Imaging Library) for Python demos | |
| 28 | SDL for interactive C++ demos | |
| 29 | libpng and zlib for rendering to PNG file from C++ demos | |
| 30 | ||
| 14 
fc18ac4833f2
replace Plane with axis-aligned Box (because infinite Plane is not usable with kd-tree)
 Radek Brich <radek.brich@devl.cz> parents: 
6diff
changeset | 31 | |
| 4 
c73bc405ee7a
multi-threaded rendering via pthreads
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 32 | Pthreads | 
| 
c73bc405ee7a
multi-threaded rendering via pthreads
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 33 | -------- | 
| 
c73bc405ee7a
multi-threaded rendering via pthreads
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 34 | Threads can be used to render rows of picture paralelly. Arbitrary number | 
| 
c73bc405ee7a
multi-threaded rendering via pthreads
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 35 | of threads can be used, even numbers like 17 are acceptable. | 
| 
c73bc405ee7a
multi-threaded rendering via pthreads
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 36 | |
| 
c73bc405ee7a
multi-threaded rendering via pthreads
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 37 | To completely disable this feature just remove "-DPTHREADS -pthreads" | 
| 
c73bc405ee7a
multi-threaded rendering via pthreads
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 38 | from flags in makefile. | 
| 6 
d8d596d26f25
pthreads and other fixes for Windows
 Radek Brich <radek.brich@devl.cz> parents: 
4diff
changeset | 39 | |
| 
d8d596d26f25
pthreads and other fixes for Windows
 Radek Brich <radek.brich@devl.cz> parents: 
4diff
changeset | 40 | For Windows + Mingw32, get pthreads library here: | 
| 
d8d596d26f25
pthreads and other fixes for Windows
 Radek Brich <radek.brich@devl.cz> parents: 
4diff
changeset | 41 | http://sources.redhat.com/pthreads-win32/ | 
| 44 | 42 | |
| 43 | ||
| 44 | License | |
| 45 | ------- | |
| 46 | This software is published under terms of MIT license. | |
| 47 | See COPYING for full text of license. | |
| 48 | ||
| 49 | ||
| 50 | Website | |
| 51 | ------- | |
| 52 | Latest version can be obtained at http://wiki.fiction.cz/Pyrit |