Skip to content
Extraits de code Groupes Projets
Valider 37c5cf8f rédigé par DBA_3's avatar DBA_3
Parcourir les fichiers

less errors but still some

parent dd400b76
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
basic_ray_tracing.png

260 octets

Fichier ajouté
......@@ -56,13 +56,13 @@ int main()
std::string filename2 = "ray_tracing_reflexion.png";
std::string filename3 = "ray_tracing_shading.png";
scene.render(width, height, 1080, 1080, nb_shapes, (char *) filename.c_str(),2,false);
scene.render(width, height, 1080, 1080, nb_shapes, (char *) filename2.c_str(),6,false);
scene.render(width, height, 1080, 1080, nb_shapes, (char *) filename3.c_str(),4,true);
scene.render(width, height, 1080, 1080, nb_shapes, (char *) filename2.c_str(),5,false);
scene.render(width, height, 1080, 1080, nb_shapes, (char *) filename3.c_str(),5,true);
std::cout << "Image sauvegardée" << std::endl;
//----------LIBERATION DE LA MEMOIRE----------
for (int i=0; i<nb_shapes; i++)
delete [] shapes[i];
delete shapes[i];
}
......
ray_tracing_reflexion.png

278 octets

ray_tracing_shading.png

328 octets

......@@ -186,7 +186,7 @@ void Scene::render(int width, int height, int nb_pixel_row, int nb_pixel_col, in
}
for (int r=0; r<ref_max;r++)
delete[] ray[r];
delete ray[r];
}
......
Ce diff est replié.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter