author | Radek Brich <radek.brich@devl.cz> |
Sat, 10 May 2008 14:29:37 +0200 | |
branch | pyrit |
changeset 95 | ca7d4c665531 |
parent 94 | 4c8abb8977dc |
child 96 | 9eb71e76c7fd |
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 |
----------------- |
|
94 | 8 |
/build -- output directory for binaries and other generated files |
44 | 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 |
|
94 | 15 |
/tools -- auxiliary programs |
44 | 16 |
|
17 |
Classes organization throughout header files is explained in DEVNOTES. |
|
18 |
||
19 |
||
20 |
Building |
|
21 |
-------- |
|
94 | 22 |
Type 'scons pyrit' to build and 'scons -h' for list of targets. |
44 | 23 |
|
24 |
Requirements: |
|
66 | 25 |
SCons |
44 | 26 |
pthreads (see bellow) |
94 | 27 |
libpng, zlib |
44 | 28 |
Python 2.4 or newer for Python module and demos |
29 |
SDL for interactive C++ demos |
|
94 | 30 |
|
31 |
It should build with these compilers: GCC, IntelC, MSVC |
|
32 |
GCC is default in Linux, MSVC is default in Windows. |
|
33 |
||
34 |
||
35 |
Downloading model files |
|
36 |
----------------------- |
|
37 |
Not all models are included in distribution. To download the large |
|
38 |
Stanford models, type 'scons download-models', which will download |
|
39 |
end extract the archives to appropriate location. |
|
40 |
||
41 |
The download script uses 'tar' and 'wget' utilities. |
|
42 |
||
43 |
For Windows, these are available here: |
|
44 |
http://gnuwin32.sourceforge.net/packages/wget.htm |
|
45 |
http://gnuwin32.sourceforge.net/packages/libarchive.htm |
|
44 | 46 |
|
14
fc18ac4833f2
replace Plane with axis-aligned Box (because infinite Plane is not usable with kd-tree)
Radek Brich <radek.brich@devl.cz>
parents:
6
diff
changeset
|
47 |
|
4
c73bc405ee7a
multi-threaded rendering via pthreads
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
48 |
Pthreads |
c73bc405ee7a
multi-threaded rendering via pthreads
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
49 |
-------- |
94 | 50 |
Threads can be used to render rays paralelly. Arbitrary number |
51 |
of threads can be used. |
|
4
c73bc405ee7a
multi-threaded rendering via pthreads
Radek Brich <radek.brich@devl.cz>
parents:
diff
changeset
|
52 |
|
94 | 53 |
For Windows, get pthreads library here: |
6
d8d596d26f25
pthreads and other fixes for Windows
Radek Brich <radek.brich@devl.cz>
parents:
4
diff
changeset
|
54 |
http://sources.redhat.com/pthreads-win32/ |
44 | 55 |
|
56 |
||
57 |
License |
|
58 |
------- |
|
59 |
This software is published under terms of MIT license. |
|
60 |
See COPYING for full text of license. |
|
61 |
||
62 |
||
63 |
Website |
|
64 |
------- |
|
65 |
Latest version can be obtained at http://wiki.fiction.cz/Pyrit |