Path Tracer
Classes | Functions
Scene.h File Reference

Defines the Scene class and some functions around it. More...

#include <omp.h>
#include "DoubleMatrix33.h"
#include "KDTreeNode.h"
#include "Object3DGroup.h"
#include "PerspectiveCamera.h"
#include "Picture.h"
#include <fbxsdk.h>
#include <fbxsdk/fileio/fbxiosettings.h>
#include <fbxsdk/utils/fbxgeometryconverter.h>
Include dependency graph for Scene.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Scene
 Stores object groups and a camera for the render. More...
 

Functions

bool importTrianglesFromFbxNode (FbxNode *node, Material *material, std::vector< Object3D * > &objects)
 Imports recursively all triangles present in a FBXNode. More...
 
void displayRenderingProgression (unsigned int numberPixelXAlreadyComputed, unsigned int pictureWidth, double loopBeginningTime)
 Prints the progression information. More...
 

Detailed Description

Defines the Scene class and some functions around it.

Function Documentation

◆ displayRenderingProgression()

void displayRenderingProgression ( unsigned int  numberPixelXAlreadyComputed,
unsigned int  pictureWidth,
double  loopBeginningTime 
)

Prints the progression information.

This is used during the rendering.

Parameters
numberPixelXAlreadyComputedThe x coordinate of the pixel we are currently treating.
pictureWidthThe width of the picture we are rendering.
loopBeginningTimeThe number of seconds between 1st January 1970 and the beginning of the render.
See also
Scene::render()

◆ importTrianglesFromFbxNode()

bool importTrianglesFromFbxNode ( FbxNode *  node,
Material material,
std::vector< Object3D * > &  objects 
)

Imports recursively all triangles present in a FBXNode.

Parameters
nodeThe node from which we want to import the mesh.
materialThe material with which the triangles will be instanciated.
objectsA reference to a vector of objects in which the triangles will be added.
Warning
The material is always deeply copied when instanciating a triangle. Do not forget to delete it after calling this method.
See also
Scene::importFBXFile()