Path Tracer
Functions
Scene.cpp File Reference
#include "Scene.h"
Include dependency graph for Scene.cpp:

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...
 

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()