Glavin001 / Raytracer

Raytracer for CSCI 4471 Computer Graphics class project
http://glavin001.github.io/Raytracer
8 stars 2 forks source link

.obj importer #10

Closed Glavin001 closed 9 years ago

Glavin001 commented 9 years ago

Write a parser that will read obj files, consisting of a list of triangle vertices, into your triangle structure. You may use on-line source code for parsing the actual file format, so this should be a fairly simple task that will then let you import very high-resolution models into your raytracer.

Glavin001 commented 9 years ago

See http://www.cs.smu.ca/~sageev/protected/graphics/assign/assignment-raytracer/in/scene05_bunny_200.txt for scene file usage

Glavin001 commented 9 years ago

Blocked by #18

Glavin001 commented 9 years ago

Currently breaks when using: http://tf3dm.com/3d-model/lamborghini-aventador-42591.html car

Update: Was able to get it to render! 500x500 with Normal Visualization: render

Glavin001 commented 9 years ago

image

Glavin001 commented 9 years ago

scene2_09_bunny_200_normals scene2_09_bunny_200-no_back scene2_09_bunny_200-shade_back scene2_09_bunny_200-shadows_shade_back scene2_09_bunny_200-shadows scene2_10_bunny_1k_normals scene2_10_bunny_1k-no_back scene2_10_bunny_1k-shade_back scene2_10_bunny_1k-shadows_shade_back scene2_10_bunny_1k-shadows

Glavin001 commented 9 years ago

scene12_vase_normals scene12_vase-no_back scene12_vase-shade_back scene12_vase-shadows_shade_back scene12_vase-shadows scene13_diamond_normals scene13_diamond-no_back scene13_diamond-shade_back scene13_diamond-shadows_shade_back scene13_diamond-shadows test_bunny_1k_normals test_bunny_1k-no_back test_bunny_1k-shade_back test_bunny_1k-shadows_shade_back test_bunny_1k-shadows