mmp / pbrt-v4

Source code to pbrt, the ray tracer described in the forthcoming 4th edition of the "Physically Based Rendering: From Theory to Implementation" book.
https://pbrt.org
Apache License 2.0
2.81k stars 433 forks source link

Format specification #235

Closed kvark closed 2 years ago

kvark commented 2 years ago

How does one parse this scene format? I looked for any sort of specification, and the best I could find is a spec for earlier versions of PBRT plus a diff between them. But a diff is fairly high-level, and it doesn't really count as a spec. So effectively the parser code is the spec right now, correct?

povmaniaco commented 2 years ago

As far I know the scene desciption format is like RenderMan .rib format: https://renderman.pixar.com/resources/RenderMan_20/sceneDescription.html

mmp commented 2 years ago

@shadeops has written a nice guide to the changes from pbrt-v3 to pbrt-v4: https://github.com/shadeops/pbrt_v3-to-v4_migration.

I have actually (finally!) started work on an update to the pbrt.org website to update all of the documentation for pbrt-v4. I hope to have that done in a week or so.

In the meantime the parser code is effectively the spec (and it is indeed, fairly RIB-inspired in general.)

pbrt4bounty commented 2 years ago

I am absolutely looking forward to the publication of the book and really happy to have gotten a really stable GPU build under Windows. To complete the good news, the addon for Blender works better and better. I am glad that you are updating the documentation since I have some doubts to implement the new materials. Cheers..

mmp commented 2 years ago

Finally: https://www.pbrt.org/fileformat-v4 (!). Possibly also useful: https://www.pbrt.org/users-guide-v4