mmp / pbrt-v3

Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
http://pbrt.org
BSD 2-Clause "Simplified" License
4.86k stars 1.18k forks source link

How to run rendering on GPU instead of CPU (pbrt v3) #323

Closed USMANHEART closed 2 years ago

USMANHEART commented 2 years ago

Hi, I am new in pbrt. I have my own 3D modeling software and also written my own scripts to convert my models to pbrt format. I am trying to render my pbrt models by using Windows OS command line.

.\pbrt.exe Sphere.pbrt --outfile Sphere.png

But this is only using my CPU. How can I enable GPU instead of CPU? Kindly guide me if I am doing wrong.

image

mmp commented 2 years ago

pbrt-v3 has no support for GPU rendering. You might consider trying pbrt-v4.