![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Realistic Ray Tracing
文章平均质量分 70
aa20274270
这个作者很懒,什么都没留下…
展开
-
Example 2 : Multi Sampling And Filtering Methods
#include #include #include"Vector3.h" #include"rgb.h" #include"Image.h" #include"Shape.h" #include"Triangle.h" #include"Sphere.h" #include #include "Sample.h" using namespace std; #define IMAGE_WID原创 2016-06-07 16:47:44 · 433 阅读 · 0 评论 -
光与颜色(个人理解)
《1》 Understanding Light Light theories •Wave (electromagnetic radiation (电磁波)) •Particle (Photon (光子)) (理解1: 光具有波粒二象性(wave-particle duality),是指某物质同时具备波的特质及粒子的特质。波粒二象性是量子力学中的一个重要概念。原创 2016-01-14 15:34:28 · 1131 阅读 · 0 评论 -
Example 6 : Bounding Volume Heirarchy And Bump Lit
建立 BVH: 思路: 类似二叉树,一个node有child0, child1, 那么就递归下去。 想象,有一个三角形列表(objs),三角形列表数量(num_objs),这个三角形列表的大包围盒(min, max),轴(axis)。 而且,每一个三角形自己有一个包围盒。 现在就是,把这个大包围盒划分为2个子包围盒,划分的规则就是,遍历每一个三角形,以一个轴为标准,例如x轴,比较原创 2016-07-08 16:58:59 · 397 阅读 · 0 评论 -
Understanding Photometric and Radiometric units and their application to computer graphics
参考: http://mentalraytips.blogspot.com/2007/03/understanding-photometric-and.html Understanding Photometric and Radiometric units and their application to computer graphics Or: "Ho转载 2016-07-28 21:57:04 · 713 阅读 · 0 评论 -
Example 5 : Texturing
主要实现的功能就是UV贴图,与光照计算。 思路: 1. 一个图片的每一个pixel, 都随机采样n次,然后每一次采样就是相当于发出一条ray,来检测是否碰到物体。 for (s = 0; s < NUM_SAMPLES; s++) { xl_samples[s] -= 0.5f; yl_samples[s] -= 0.5f; VectorCopy(cam.eye, st原创 2016-06-30 17:59:41 · 446 阅读 · 0 评论 -
Example 4 : Thin lens camera
main.c #include #include #include #include "vec3.h" #include "sample.h" #include "shapes.h" #define IMAGE_WIDTH 512 #define IMAGE_HEIGHT 384 #define NUM_SAMPLES 16 shape_t shapes[4]; light_原创 2016-06-14 11:52:51 · 491 阅读 · 0 评论 -
Example 3 : motion blur And Shade(Shadow)
下面是main.c #include #include #include #pragma comment(lib,"DevIL.lib") #pragma comment(lib,"ILU.lib") #pragma comment(lib,"ILUT.lib") #include "vec3.h" #include "sample.h" #include "shapes.h"原创 2016-06-08 20:24:42 · 439 阅读 · 0 评论 -
Example 1 : A Single Sample Ray Tracer
#include#include#include"Vector3.h"#include"rgb.h"#include"Image.h"#include"Shape.h"#include"Triangle.h"#include"Sphere.h"#include using namespace std;int main(){ofstream testFile("test.ppm");HitRecor原创 2016-06-01 08:03:24 · 449 阅读 · 0 评论 -
BRDF Explorer
记下一下: 学习PBR的好资源: BRDF Explorer 官网:https://www.disneyanimation.com/technology/brdf.html https://github.com/wdas/brdf/downloads https://github.com/wdas/brdf原创 2017-09-25 18:23:24 · 1449 阅读 · 1 评论