File tree Expand file tree Collapse file tree 10 files changed +20
-40
lines changed
Expand file tree Collapse file tree 10 files changed +20
-40
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,11 @@ jobs:
3030 wget https://raw.githubusercontent.com/adobe-fonts/source-han-serif/release/OTF/SimplifiedChinese/SourceHanSerifSC-Bold.otf
3131 wget https://raw.githubusercontent.com/adobe-fonts/source-han-serif/release/OTF/SimplifiedChinese/SourceHanSerifSC-Regular.otf
3232 cd ..
33- wget --no-check-certificate https://mirrors.ctan.org/fonts/boondox.zip
34- unzip boondox.zip
3533 - name : compile
3634 uses : xu-cheng/texlive-action@v2
3735 with :
3836 scheme : full
3937 run : |
40- ls ./boondox
41- export TEXINPUTS=./boondox/tex:$TEXINPUTS
4238 git config --global --add safe.directory /home/runner/work/pbrtbook/pbrtbook
4339 ./cp.sh
4440 BOOK_PATH="$(git describe --tags --abbrev=0)-$(git rev-parse --short HEAD).pdf"
Original file line number Diff line number Diff line change @@ -51,18 +51,3 @@ copy %windir%\Fonts\simkai.ttf .\fonts\
5151chmod +x cp.sh
5252./cp.sh
5353```
54- Linux下若遇到以下报错:
55- ```
56- ! LaTeX Error: File `boondox-calo.sty` not found.
57- ```
58- 可以前往[ https://ctan.org/pkg/boondox ] ( https://ctan.org/pkg/boondox ) 下载boondox包并解压,然后将所需文件所在路径加入环境变量,
59- 注意保留末尾冒号,例如:
60- ``` bash
61- export TEXINPUTS=somewhere/boondox/tex:
62- ```
63- 然后重新尝试编译。
64- 如果上述命令打错造成搜索路径设置错误,
65- 使得本仓库源文件目录不在` TEXINPUTS ` 中,则可能遇到以下报错:
66- ```
67- ! I can't find file `main`
68- ```
Original file line number Diff line number Diff line change 4040本书虽受到PDF格式限制,但依旧精心保留了代码链接跳转功能,方便读者查阅。
4141若读者在实践中还有更多需求,建议参考原书所附代码库。
4242
43- 本书由LATEX编写而成,源码已经发布在上述网址 ,欢迎访问获取最新版。
43+ 本书由LATEX编写而成,源码已发布在上述网址 ,欢迎访问获取最新版。
4444
4545## 补充章节
4646笔者根据其他资料整理了相应的背景知识并作为补充章节附在各章末尾,以下为这些章节的列表。
Original file line number Diff line number Diff line change @@ -320,8 +320,8 @@ \subsection{间接光传输}\label{sub:间接光传输}
320320因为这种效果很难用其他渲染技术实现。
321321\begin {figure }[htbp]
322322 \centering
323- \subfloat [Whitted光线追踪]{\includegraphics [width=\linewidth ]{chap01/spheres-whitted.png}\label {fig:1.7.1 }}\\
324- \subfloat [随机渐进光子映射。]{\includegraphics [width=\linewidth ]{chap01/spheres-sppm.png}\label {fig:1.7.2 }}
323+ \subfloat [Whitted光线追踪]{\includegraphics [width=0.9 \linewidth ]{chap01/spheres-whitted.png}\label {fig:1.7.1 }}\\
324+ \subfloat [随机渐进光子映射。]{\includegraphics [width=0.9 \linewidth ]{chap01/spheres-sppm.png}\label {fig:1.7.2 }}
325325 \caption {一个典型的早期光线追踪场景。
326326 注意镜面和玻璃物体的使用,
327327 它强调了算法处理这类表面的能力。
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ \subsection{四元数的运算}\label{sub:四元数的运算}
255255 模为$ 1 $ 的四元数$ {\bm q}$ 称为\keyindex {单位四元数}{unit quaternion}{quaternion\ 四元数}。
256256\end {definition }
257257\begin {definition }
258- 称$ 、 \displaystyle\frac {1}{\| {\bm q}\| }{\bm q}$ 为非零四元数$ {\bm q}$ 的\keyindex {规范化四元数}{versor}{quaternion\ 四元数}。
258+ 称$ \displaystyle\frac {1}{\| {\bm q}\| }{\bm q}$ 为非零四元数$ {\bm q}$ 的\keyindex {规范化四元数}{versor}{quaternion\ 四元数}。
259259\end {definition }
260260\begin {proposition }
261261 当向量四元数$ {\bm q}$ 是单位四元数即$ w=0 $ 且$ x^2 +y^2 +z^2 =1 $ 时,有
Original file line number Diff line number Diff line change @@ -515,10 +515,10 @@ \subsection{薄透镜模型与景深}\label{sub:薄透镜模型与景深}
515515因为焦平面就放置在其深度处。
516516\begin {figure }[htbp]
517517 \centering
518- \subfloat [无景深]{\includegraphics [width=0.85 \linewidth ]{chap06/dragons-nodof.png}\label {fig:6.8.1 }}\\
519- \subfloat [小光圈]{\includegraphics [width=0.85 \linewidth ]{chap06/dragons-small-dof.png}\label {fig:6.8.2 }}\\
520- \subfloat [中光圈]{\includegraphics [width=0.85 \linewidth ]{chap06/dragons-med-dof.png}\label {fig:6.8.3 }}\\
521- \subfloat [大光圈]{\includegraphics [width=0.85 \linewidth ]{chap06/dragons-large-dof.png}\label {fig:6.8.4 }}
518+ \subfloat [无景深]{\includegraphics [width=0.8 \linewidth ]{chap06/dragons-nodof.png}\label {fig:6.8.1 }}\\
519+ \subfloat [小光圈]{\includegraphics [width=0.8 \linewidth ]{chap06/dragons-small-dof.png}\label {fig:6.8.2 }}\\
520+ \subfloat [中光圈]{\includegraphics [width=0.8 \linewidth ]{chap06/dragons-med-dof.png}\label {fig:6.8.3 }}\\
521+ \subfloat [大光圈]{\includegraphics [width=0.8 \linewidth ]{chap06/dragons-large-dof.png}\label {fig:6.8.4 }}
522522 \caption {(a)无景深渲染场景,(b)相对较小透镜光圈导致的景深,让失焦区域只有少量模糊,
523523 (c)和(d)中随着透镜光圈尺寸增大,失焦区域弥散圆的尺寸也增大,使胶片平面上的模糊程度更大。}
524524 \label {fig:6.8 }
Original file line number Diff line number Diff line change @@ -76,19 +76,19 @@ \section{分层采样}\label{sec:分层采样}
7676并展示了扰动的样本位置怎样将混叠伪影转化为不那么讨厌的噪声。
7777\begin {figure }[htbp]
7878 \centering
79- \subfloat [参考]{\includegraphics [width=0.8 \linewidth ]{chap07/checkerboard-ref.png}\label {fig:7.19.1 }}\\
80- \subfloat [1个均匀样本]{\includegraphics [width=0.8 \linewidth ]{chap07/checkerboard-unif-1spp.png}\label {fig:7.19.2 }}\\
81- \subfloat [1个扰动样本]{\includegraphics [width=0.8 \linewidth ]{chap07/checkerboard-jitter-1spp.png}\label {fig:7.19.3 }}\\
82- \subfloat [4个扰动样本]{\includegraphics [width=0.8 \linewidth ]{chap07/checkerboard-jitter-4spp.png}\label {fig:7.19.4 }}
79+ \subfloat [参考]{\includegraphics [width=0.78 \linewidth ]{chap07/checkerboard-ref.png}\label {fig:7.19.1 }}\\
80+ \subfloat [1个均匀样本]{\includegraphics [width=0.78 \linewidth ]{chap07/checkerboard-unif-1spp.png}\label {fig:7.19.2 }}\\
81+ \subfloat [1个扰动样本]{\includegraphics [width=0.78 \linewidth ]{chap07/checkerboard-jitter-1spp.png}\label {fig:7.19.3 }}\\
82+ \subfloat [4个扰动样本]{\includegraphics [width=0.78 \linewidth ]{chap07/checkerboard-jitter-4spp.png}\label {fig:7.19.4 }}
8383 \caption {用棋盘纹理比较图像采样方法。这是幅很难渲染好的图像,
8484 因为当我们接近地平线时棋盘格关于像素间隔的频率趋于无穷。
8585 (a)参考图像,每个像素用256个样本渲染,展示了接近理想结果的样子。
8686 (b)每个像素只用一个样本渲染的图像,没有扰动。注意前景中格子边缘的锯齿伪影。
8787 还注意棋盘格函数在样本之间经历了许多周期的距离处的伪影;
8888 如之前介绍过的信号处理理论所料,细节错误地重复表现为低频混叠。
89- (c)扰动图像样本的结果,每个像素还是只有一个样本 。
90- 第二幅图像规则的混叠已经被替换为不那么讨厌的噪声伪影 。
91- (d)每个像素用四个扰动样本的结果仍然不如参考图像 ,但明显优于之前的结果。}
89+ (c)扰动图像样本的结果,每个像素还是仅一个样本 。
90+ 第二幅图像规则的混叠已被替换为不那么讨厌的噪声伪影 。
91+ (d)每个像素用四个扰动样本的结果仍不如参考图像 ,但明显优于之前的结果。}
9292 \label {fig:7.19 }
9393\end {figure }
9494
Original file line number Diff line number Diff line change @@ -79,9 +79,9 @@ \subsection{滤波函数}\label{sub:滤波函数}
7979和\href {https://github.com/mmp/pbrt-v3/blob/master/src/core/filter.cpp}{\ttfamily core/filter.cpp}中。
8080\begin {figure }[htbp]
8181 \centering
82- \subfloat [矩形滤波器]{\includegraphics [width=0.65 \linewidth ]{chap07/crown-box.png}\label {fig:7.39.1 }}\\
83- \subfloat [高斯滤波器]{\includegraphics [width=0.65 \linewidth ]{chap07/crown-gaussian.png}\label {fig:7.39.2 }}\\
84- \subfloat [Mitchell-Netravali滤波器]{\includegraphics [width=0.65 \linewidth ]{chap07/crown-mitchell.png}\label {fig:7.39.3 }}\\
82+ \subfloat [矩形滤波器]{\includegraphics [width=0.63 \linewidth ]{chap07/crown-box.png}\label {fig:7.39.1 }}\\
83+ \subfloat [高斯滤波器]{\includegraphics [width=0.63 \linewidth ]{chap07/crown-gaussian.png}\label {fig:7.39.2 }}\\
84+ \subfloat [Mitchell-Netravali滤波器]{\includegraphics [width=0.63 \linewidth ]{chap07/crown-mitchell.png}\label {fig:7.39.3 }}\\
8585 \caption {用来将图像样本转化为像素值的像素重建滤波器对最终图像的质量有明显的影响。
8686 这里我们看到用(a)矩形滤波器、(b)高斯以及(c) Mitchell-Netravali滤波器滤波的皇冠模型放大区域。
8787 注意Mitchell滤波器给出了最清晰的图像,而高斯则模糊了它。
Original file line number Diff line number Diff line change 4848本书虽受到PDF格式限制,但依旧精心保留了代码链接跳转功能,方便读者查阅。
4949若读者在实践中还有更多需求,建议参考原书所附代码库。
5050
51- 本书由{\scshape \LaTeX } 编写而成,源码已经发布在上述网址 ,欢迎访问获取最新版。
51+ 本书由{\scshape \LaTeX } 编写而成,源码已发布在上述网址 ,欢迎访问获取最新版。}
5252
5353{\color {red}\sffamily {欢迎提出宝贵意见和建议。如果你发现本书存在错误,请一定要告诉我们!
5454讨论区:{\normalfont \url {https://github.com/kanition/pbrtbook/discussions}}}}
55- }
Original file line number Diff line number Diff line change 235235\usepackage {esint } % for \oiint \varoiint
236236\usepackage {mathrsfs }
237237\usepackage {yhmath }
238- \usepackage {boondox -calo }
238+ \usepackage {BOONDOX -calo }
239239\usepackage {extarrows } % 长等号
240240\newcommand {\intoo }[2]{\mathopen {]}#1\, ;#2\mathclose {[}}
241241\newcommand {\ud }{\mathop {\mathrm {{}d}}\mathopen {}}
You can’t perform that action at this time.
0 commit comments