|
24 | Cuda Ray Tracer
25 |
26 | |
27 |
73 | 1.8.19
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/include/oneweekend/sphere.cuh:
--------------------------------------------------------------------------------
1 | #ifndef SPHERE_CUH
2 | #define SPHERE_CUH
3 |
4 | #include |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
77 | 1.8.19
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/docs/html/dir_a034f12e10456ed9baa6c2174620f736.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
77 | 1.8.19
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/docs/html/dir_cb5a55d9e9c1b47934843b044d803335.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
77 | 1.8.19
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/docs/html/dir_b5ed2bba80ecaac353b1d8be0f5c3722.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
77 | 1.8.19
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/include/nextweek/mediumc.cuh:
--------------------------------------------------------------------------------
1 | #ifndef MEDIUMC_CUH
2 | #define MEDIUMC_CUH
3 |
4 | #include |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
81 | 1.8.19
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/include/nextweek/perlin.cuh:
--------------------------------------------------------------------------------
1 | #ifndef PERLIN_CUH
2 | #define PERLIN_CUH
3 |
4 | #include |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
81 | 1.8.19
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/docs/html/classTexture-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
This is the complete list of members for Texture, including all inherited members.
70 || value(float u, float v, const Point3 &p) const =0 (defined in Texture) | Texture | pure virtual |
77 | 1.8.19
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/include/nextweek/hittables.cuh:
--------------------------------------------------------------------------------
1 | #ifndef HITTABLES_CUH
2 | #define HITTABLES_CUH
3 |
4 | #include
56 |
57 | The one in below at 640x360 in 30.4133 seconds with 20 samples and 10 bounces.
58 |
59 |
60 |
61 | I don't remember the settings for this one. But it includes perlin noise so.
62 |
63 |
64 |
65 | The one in below at 800x450 in 49.5292 seconds with 500 samples and 500
66 | bounces.
67 |
68 |
69 | The one in below at 640x360 in 106.365 seconds with 500 samples and 500
70 | bounces
71 |
72 |
73 | The one in below at 480x270 in 101.325 seconds with 40 samples and 20
74 | bounces
75 |
76 |
77 |
78 | ## Features
79 |
80 | - Most of what you get in Ray Tracing In One Weekend and in Next Week.
81 |
82 | - Multiple images in different sizes and channels.
83 |
84 | - Perlin Noise
85 |
86 | - Constant Medium Volume Rendering
87 |
88 | - A simple GPU friendly acceleration structure, a.k.a DA List, Foley et. al.,
89 | 2013, p. 1081.
90 |
91 | ## Planned
92 |
93 | - Asset loading with assimp.
94 | - Hopefully pdf handling in near feature.
95 | - Background handling.
96 |
97 |
98 | ## Known Issues
99 |
100 | I managed to fix the rng problem around nw-final branch. It was such a simple
101 | fix that i kind of feel stupid to let it sit there for so long.
102 |
103 | For previous branches, just change the line
104 |
105 | - `rcolor += ray_color(r, world, randState, bounceNb);` to
106 |
107 | - `rcolor += ray_color(r, world, &localS, bounceNb);`
108 |
109 | This increased significantly the rendering times so all of the rendering times
110 | above are compromised. By significantly, I mean it increases about two times
111 | more.
112 |
113 |
114 |
115 | Cheers
116 |
--------------------------------------------------------------------------------
/docs/html/classMaterial-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
This is the complete list of members for Material, including all inherited members.
70 || scatter(const Ray &r_in, const HitRecord &rec, Vec3 &attenuation, Ray &scattered, curandState *local_rand_state) const =0 (defined in Material) | Material | pure virtual |
| scatter(const Ray &r_in, const HitRecord &rec, Vec3 &attenuation, Ray &scattered, curandState *local_rand_state) const =0 (defined in Material) | Material | pure virtual |
78 | 1.8.19
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/docs/html/structKernelArg-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
This is the complete list of members for KernelArg< T >, including all inherited members.
70 || arg (defined in KernelArg< T >) | KernelArg< T > | |
| free() (defined in KernelArg< T >) | KernelArg< T > | inline |
| length (defined in KernelArg< T >) | KernelArg< T > |
79 | 1.8.19
80 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/docs/html/structstbi__io__callbacks-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
This is the complete list of members for stbi_io_callbacks, including all inherited members.
70 || eof (defined in stbi_io_callbacks) | stbi_io_callbacks | |
| read (defined in stbi_io_callbacks) | stbi_io_callbacks | |
| skip (defined in stbi_io_callbacks) | stbi_io_callbacks |
79 | 1.8.19
80 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/include/nextweek/sphere.cuh:
--------------------------------------------------------------------------------
1 | #ifndef SPHERE_CUH
2 | #define SPHERE_CUH
3 |
4 | #include |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
This is the complete list of members for SolidColor, including all inherited members.
70 || SolidColor() (defined in SolidColor) | SolidColor | inline |
| SolidColor(Color c) (defined in SolidColor) | SolidColor | inline |
| SolidColor(float red, float green, float blue) (defined in SolidColor) | SolidColor | inline |
| value(float u, float v, const Point3 &p) const override (defined in SolidColor) | SolidColor | inlinevirtual |
80 | 1.8.19
81 |
82 |
83 |
84 |
--------------------------------------------------------------------------------
/docs/html/classPerlin-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
This is the complete list of members for Perlin, including all inherited members.
70 || noise(const Point3 &p) const (defined in Perlin) | Perlin | inline |
| Perlin() (defined in Perlin) | Perlin | inline |
| Perlin(curandState *loc) (defined in Perlin) | Perlin | inline |
| turb(const Point3 &p, int depth=7) const (defined in Perlin) | Perlin | inline |
| ~Perlin() (defined in Perlin) | Perlin | inline |
81 | 1.8.19
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/docs/html/classHittable-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
This is the complete list of members for Hittable, including all inherited members.
70 || bounding_box(float t0, float t1, Aabb &output_box) const =0 (defined in Hittable) | Hittable | pure virtual |
| center (defined in Hittable) | Hittable | |
| hit(const Ray &r, float d_min, float d_max, HitRecord &rec) const =0 (defined in Hittable) | Hittable | pure virtual |
| hit(const Ray &r, float d_min, float d_max, HitRecord &rec) const =0 (defined in Hittable) | Hittable | pure virtual |
| mat_ptr (defined in Hittable) | Hittable |
81 | 1.8.19
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/docs/html/classNoiseTexture-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
This is the complete list of members for NoiseTexture, including all inherited members.
70 || noise (defined in NoiseTexture) | NoiseTexture | |
| NoiseTexture() (defined in NoiseTexture) | NoiseTexture | inline |
| NoiseTexture(float s, curandState *loc) (defined in NoiseTexture) | NoiseTexture | inline |
| scale (defined in NoiseTexture) | NoiseTexture | |
| value(float u, float v, const Point3 &p) const override (defined in NoiseTexture) | NoiseTexture | inlinevirtual |
81 | 1.8.19
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/docs/html/structstbi__io__callbacks.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
73 | Public Attributes | |
| 75 | int(* | read )(void *user, char *data, int size) |
| 78 | void(* | skip )(void *user, int n) |
| 81 | int(* | eof )(void *user) |
92 | 1.8.19
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/docs/html/classPerlin.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
73 | Public Member Functions | |
| 75 | __device__ | Perlin (curandState *loc) |
| 78 | __device__ float | noise (const Point3 &p) const |
| 81 | __device__ float | turb (const Point3 &p, int depth=7) const |
92 | 1.8.19
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/docs/html/classTexture.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
76 |
82 | 85 | Public Member Functions | |
| 87 | virtual __device__ Color | value (float u, float v, const Point3 &p) const =0 |
98 | 1.8.19
99 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/docs/html/dynsections.js:
--------------------------------------------------------------------------------
1 | /*
2 | @licstart The following is the entire license notice for the JavaScript code in this file.
3 |
4 | The MIT License (MIT)
5 |
6 | Copyright (C) 1997-2020 by Dimitri van Heesch
7 |
8 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software
9 | and associated documentation files (the "Software"), to deal in the Software without restriction,
10 | including without limitation the rights to use, copy, modify, merge, publish, distribute,
11 | sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
12 | furnished to do so, subject to the following conditions:
13 |
14 | The above copyright notice and this permission notice shall be included in all copies or
15 | substantial portions of the Software.
16 |
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
18 | BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
20 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
23 | @licend The above is the entire license notice for the JavaScript code in this file
24 | */
25 | function toggleVisibility(linkObj)
26 | {
27 | var base = $(linkObj).attr('id');
28 | var summary = $('#'+base+'-summary');
29 | var content = $('#'+base+'-content');
30 | var trigger = $('#'+base+'-trigger');
31 | var src=$(trigger).attr('src');
32 | if (content.is(':visible')===true) {
33 | content.hide();
34 | summary.show();
35 | $(linkObj).addClass('closed').removeClass('opened');
36 | $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');
37 | } else {
38 | content.show();
39 | summary.hide();
40 | $(linkObj).removeClass('closed').addClass('opened');
41 | $(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
42 | }
43 | return false;
44 | }
45 |
46 | function updateStripes()
47 | {
48 | $('table.directory tr').
49 | removeClass('even').filter(':visible:even').addClass('even');
50 | }
51 |
52 | function toggleLevel(level)
53 | {
54 | $('table.directory tr').each(function() {
55 | var l = this.id.split('_').length-1;
56 | var i = $('#img'+this.id.substring(3));
57 | var a = $('#arr'+this.id.substring(3));
58 | if (l|
24 | Cuda Ray Tracer
25 |
26 | |
27 |
This is the complete list of members for Dielectric, including all inherited members.
70 || Dielectric(float ri) (defined in Dielectric) | Dielectric | inline |
| Dielectric(float ri) (defined in Dielectric) | Dielectric | inline |
| ref_idx (defined in Dielectric) | Dielectric | |
| scatter(const Ray &r_in, const HitRecord &rec, Vec3 &attenuation, Ray &scattered, curandState *local_rand_state) const override (defined in Dielectric) | Dielectric | inlinevirtual |
| scatter(const Ray &r_in, const HitRecord &rec, Vec3 &attenuation, Ray &scattered, curandState *local_rand_state) const override (defined in Dielectric) | Dielectric | inlinevirtual |
81 | 1.8.19
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/docs/html/structKernelArg.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
74 | Public Member Functions | |
| 76 | __host__ void | free () |
80 | Public Attributes | |
| 82 | T * | arg |
| 85 | int | length |
96 | 1.8.19
97 |
98 |
99 |
100 |
--------------------------------------------------------------------------------
/docs/html/structHitRecord-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | |
24 | Cuda Ray Tracer
25 |
26 | |
27 |
This is the complete list of members for HitRecord, including all inherited members.
70 || front_face (defined in HitRecord) | HitRecord | |
| mat_ptr (defined in HitRecord) | HitRecord | |
| normal (defined in HitRecord) | HitRecord | |
| p (defined in HitRecord) | HitRecord | |
| set_front_face(const Ray &r, const Vec3 &norm) (defined in HitRecord) | HitRecord | inline |
| t (defined in HitRecord) | HitRecord | |
| u (defined in HitRecord) | HitRecord | |
| v (defined in HitRecord) | HitRecord |
84 | 1.8.19
85 |
86 |
87 |
88 |
--------------------------------------------------------------------------------