PBRT_V2 总结记录 <5> A good way to gain an understanding of pbrt

A good way to gain an understanding of pbrt is to follow the process of computing
the radiance value for a single ray in a debugger. Build a version of
pbrt with debugging symbols and set up your debugger to run pbrt with the
killeroo-simple.pbrt scene from the scenes/ directory. Set breakpoints in the
SamplerRenderer::Render() and SamplerRendererTask::Run() methods and
trace through the process of how a ray is generated, how its radiance value
is computed, and how its contribution is added to the image. The first time you
do this, you may want to specify that only a single thread of execution should
be used by providing --ncores 1 as command-line arguments to pbrt; doing so
ensures that all computation is done in the main processing thread, which may
make it easier to understand what is going on, depending on how easy your
debugger makes it to step through the program when it is running multiple
threads.
As you gain more understanding about the details of the system later in the
book, repeat this process and trace through particular parts of the system more
carefully.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值