
I haven't update this blog in almost one year.....It's time to write something down XD.
Recently, I start to read this book → Physically Based Rendering, 2/e : From Theory To Implementation. And I want to test something by Maya, so I start to study Maya API.
This is my first program by using Maya API. It's very simple and just exports the polygon objects from Maya to the format of PBRT's geometry. And I have refered to a Maya API example, say polyRawExporter, to write this exporter.
(We can downlad the source code of PBRT in this website : http://www.pbrt.org/)
I chose a scene file provided by PBRT's source code, say metal.pbrt. Rendering this file and it will generate a image as below. (I think this file format likes the *.rib of RenderMan :) )

Since I want to replace the teapot by some polygon objects that I modeled in Maya.

I wrote a plug-in to export those objects to the format of PBRT's geometry.

In metal.pbrt, replacing the teapot by what I had export. And that will generate the image below.

0 意見:
張貼意見