Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
imjiangjun
pbrt-v4
提交
ef9ccce7
P
pbrt-v4
项目概览
imjiangjun
/
pbrt-v4
10 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
pbrt-v4
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ef9ccce7
编写于
11月 16, 2022
作者:
G
Gon Solo
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into fullscreen
上级
23607d42
32fcbfa1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
8 deletion
+18
-8
src/pbrt/cmd/pbrt.cpp
src/pbrt/cmd/pbrt.cpp
+3
-0
src/pbrt/options.cpp
src/pbrt/options.cpp
+8
-8
src/pbrt/options.h
src/pbrt/options.h
+1
-0
src/pbrt/util/mipmap.cpp
src/pbrt/util/mipmap.cpp
+6
-0
未找到文件。
src/pbrt/cmd/pbrt.cpp
浏览文件 @
ef9ccce7
...
...
@@ -39,6 +39,7 @@ Rendering options:
--debugstart <values> Inform the Integrator where to start rendering for
faster debugging. (<values> are Integrator-specific
and come from error message text.)
--disable-image-textures Always return the average value of image textures.
--disable-pixel-jitter Always sample pixels at their centers.
--disable-texture-filtering Point-sample all textures.
--disable-wavelength-jitter Always sample the same %d wavelengths of light.
...
...
@@ -161,6 +162,8 @@ int main(int argc, char *argv[]) {
ParseArg
(
&
iter
,
args
.
end
(),
"gpu-device"
,
&
options
.
gpuDevice
,
onError
)
||
#endif
ParseArg
(
&
iter
,
args
.
end
(),
"debugstart"
,
&
options
.
debugStart
,
onError
)
||
ParseArg
(
&
iter
,
args
.
end
(),
"disable-image-textures"
,
&
options
.
disableImageTextures
,
onError
)
||
ParseArg
(
&
iter
,
args
.
end
(),
"disable-pixel-jitter"
,
&
options
.
disablePixelJitter
,
onError
)
||
ParseArg
(
&
iter
,
args
.
end
(),
"disable-texture-filtering"
,
...
...
src/pbrt/options.cpp
浏览文件 @
ef9ccce7
...
...
@@ -35,19 +35,19 @@ std::string ToString(const RenderingCoordinateSystem &r) {
std
::
string
PBRTOptions
::
ToString
()
const
{
return
StringPrintf
(
"[ PBRTOptions seed: %s quiet: %s disablePixelJitter: %s "
"disableWavelengthJitter: %s disableTextureFiltering: %s
forceDiffuse
: %s "
"
useGPU: %s wavefront: %s interactive: %s fullscreen: %s renderingSpace: %s nThreads:
%s "
"
logLevel: %s logFile:
"
"
%s logUtilization: %s
writePartialImages: %s recordPixelStatistics: %s "
"disableWavelengthJitter: %s disableTextureFiltering: %s
disableImageTextures
: %s "
"
forceDiffuse: %s useGPU: %s wavefront: %s interactive: %s fullscreen
%s "
"
renderingSpace: %s nThreads: %s logLevel: %s logFile: %s logUtilization: %s
"
"writePartialImages: %s recordPixelStatistics: %s "
"printStatistics: %s pixelSamples: %s gpuDevice: %s quickRender: %s upgrade: %s "
"imageFile: %s mseReferenceImage: %s mseReferenceOutput: %s debugStart: %s "
"displayServer: %s cropWindow: %s pixelBounds: %s pixelMaterial: %s "
"displacementEdgeScale: %f ]"
,
seed
,
quiet
,
disablePixelJitter
,
disableWavelengthJitter
,
disableTextureFiltering
,
forceDiffuse
,
useGPU
,
wavefront
,
interactive
,
fullscreen
,
renderingSpace
,
nThreads
,
logLevel
,
logFile
,
logUtilization
,
writePartialImages
,
recordPixelStatistic
s
,
printStatistics
,
pixelSamples
,
gpuDevice
,
quickRender
,
upgrade
,
imageFil
e
,
mseReferenceImage
,
mseReferenceOutput
,
debugStart
,
displayServer
,
cropWindow
,
disableImageTextures
,
forceDiffuse
,
useGPU
,
wavefront
,
interactive
,
fullscreen
,
renderingSpace
,
nThreads
,
logLevel
,
logFile
,
logUtilization
,
writePartialImage
s
,
recordPixelStatistics
,
printStatistics
,
pixelSamples
,
gpuDevice
,
quickRender
,
upgrad
e
,
imageFile
,
mseReferenceImage
,
mseReferenceOutput
,
debugStart
,
displayServer
,
cropWindow
,
pixelBounds
,
pixelMaterial
,
displacementEdgeScale
);
}
...
...
src/pbrt/options.h
浏览文件 @
ef9ccce7
...
...
@@ -24,6 +24,7 @@ struct BasicPBRTOptions {
bool
quiet
=
false
;
bool
disablePixelJitter
=
false
,
disableWavelengthJitter
=
false
;
bool
disableTextureFiltering
=
false
;
bool
disableImageTextures
=
false
;
bool
forceDiffuse
=
false
;
bool
useGPU
=
false
;
bool
wavefront
=
false
;
...
...
src/pbrt/util/mipmap.cpp
浏览文件 @
ef9ccce7
...
...
@@ -4,6 +4,7 @@
#include <pbrt/util/mipmap.h>
#include <pbrt/options.h>
#include <pbrt/util/check.h>
#include <pbrt/util/color.h>
#include <pbrt/util/colorspace.h>
...
...
@@ -195,6 +196,11 @@ MIPMap::MIPMap(Image image, const RGBColorSpace *colorSpace, WrapMode wrapMode,
:
colorSpace
(
colorSpace
),
wrapMode
(
wrapMode
),
options
(
options
)
{
CHECK
(
colorSpace
);
pyramid
=
Image
::
GeneratePyramid
(
std
::
move
(
image
),
wrapMode
,
alloc
);
if
(
Options
->
disableImageTextures
)
{
Image
top
=
pyramid
.
back
();
pyramid
.
clear
();
pyramid
.
push_back
(
top
);
}
std
::
for_each
(
pyramid
.
begin
(),
pyramid
.
end
(),
[](
const
Image
&
im
)
{
imageMapBytes
+=
im
.
BytesUsed
();
});
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录