Completed scene wide rendering output

pull/3580/head
Trevor David Black 2020-04-20 12:23:22 -07:00
parent 1045fb7798
commit cb88210c62
1 changed files with 25 additions and 6 deletions

View File

@ -145,7 +145,9 @@ void PbrtExporter::WriteHeader() {
} }
void PbrtExporter::WriteMetaData() { void PbrtExporter::WriteMetaData() {
mOutput << "#############################" << std::endl;
mOutput << "# Writing out scene metadata:" << std::endl; mOutput << "# Writing out scene metadata:" << std::endl;
mOutput << "#############################" << std::endl;
aiMetadata* pMetaData = mScene->mMetaData; aiMetadata* pMetaData = mScene->mMetaData;
for (int i = 0; i < pMetaData->mNumProperties; i++) { for (int i = 0; i < pMetaData->mNumProperties; i++) {
mOutput << "# - "; mOutput << "# - ";
@ -210,24 +212,36 @@ void PbrtExporter::WriteSceneWide() {
// Cameras & Film // Cameras & Film
WriteCameras(); WriteCameras();
mOutput << std::endl;
mOutput << "#####################################################################" << std::endl;
mOutput << "# Assimp does not support explicit Sampler, Filter, Integrator, Accel" << std::endl;
mOutput << "#####################################################################" << std::endl;
mOutput << "# Setting to reasonable default values" << std::endl;
// Samplers // Samplers
mOutput << "Sampler \"halton\" \"integer pixelsamples\" [16]" << std::endl;
// Filters // Filters
mOutput << "Filter \"box\"" << std::endl;
// Integrators // Integrators
mOutput << "Integrator \"path\" \"integer maxdepth\" [5]" << std::endl;
// Accelerators // Accelerators
mOutput << "Accelerator \"bvh\"" << std::endl;
// Participating Media // Participating Media
} mOutput << std::endl;
mOutput << "#############################################" << std::endl;
void PbrtExporter::WriteWorldDefinition() { mOutput << "# Assimp does not support Participating Media" << std::endl;
mOutput << "#############################################" << std::endl;
} }
void PbrtExporter::WriteCameras() { void PbrtExporter::WriteCameras() {
mOutput << std::endl; mOutput << std::endl;
mOutput << "# Writing Camera data:" << std::endl; mOutput << "###############################" << std::endl;
mOutput << "# Writing Camera and Film data:" << std::endl;
mOutput << "###############################" << std::endl;
mOutput << "# - Number of Cameras found in scene: "; mOutput << "# - Number of Cameras found in scene: ";
mOutput << mScene->mNumCameras << std::endl; mOutput << mScene->mNumCameras << std::endl;
@ -289,6 +303,7 @@ void PbrtExporter::WriteCamera(int i) {
// Print Film for this camera // Print Film for this camera
// TODO print to an explicit image file name
if (!cameraActive) if (!cameraActive)
mOutput << "# "; mOutput << "# ";
mOutput << "Film \"image\" " << std::endl; mOutput << "Film \"image\" " << std::endl;
@ -342,6 +357,10 @@ void PbrtExporter::WriteCamera(int i) {
<< "\"fov_" << camera->mName.C_Str() << "\"" << std::endl; << "\"fov_" << camera->mName.C_Str() << "\"" << std::endl;
} }
void PbrtExporter::WriteWorldDefinition() {
}
void PbrtExporter::WriteGeometry() { void PbrtExporter::WriteGeometry() {