Completed scene wide rendering output
parent
1045fb7798
commit
cb88210c62
|
@ -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() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue