├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── images ├── demo1.jpg ├── demo2.jpg ├── demo3.jpg ├── demo4.jpg └── demo5.jpg ├── resource ├── models │ ├── catmark_torus_creases0.obj │ ├── colorspace-issue-184.mtl │ ├── colorspace-issue-184.obj │ ├── cornell_box.mtl │ ├── cornell_box.obj │ ├── cornell_box_multimaterial.obj │ ├── cube-vertexcol.obj │ ├── cube.mtl │ ├── cube.obj │ ├── invalid-face-definition.mtl │ ├── invalid-face-definition.obj │ ├── issue-138.mtl │ ├── issue-138.obj │ ├── issue-140-zero-face-idx.mtl │ ├── issue-140-zero-face-idx.obj │ ├── issue-161-inconsistent-f.obj │ ├── issue-162-smoothing-group.mtl │ ├── issue-162-smoothing-group.obj │ ├── issue-92.mtl │ ├── issue-92.obj │ ├── issue-95-2.mtl │ ├── issue-95-2.obj │ ├── issue-95.mtl │ ├── issue-95.obj │ ├── line-prim.obj │ ├── map-bump.mtl │ ├── map-bump.obj │ ├── missing_material_file.obj │ ├── mtllib-multiple-files-issue-112.mtl │ ├── mtllib-multiple-files-issue-112.obj │ ├── no_material.obj │ ├── norm-texopt.mtl │ ├── norm-texopt.obj │ ├── opera-house.mtl │ ├── opera-house.obj │ ├── pbr-mat-ext.mtl │ ├── pbr-mat-ext.obj │ ├── refl.mtl │ ├── refl.obj │ ├── smoothing-group-two-squares.obj │ ├── smoothing-normal.mtl │ ├── smoothing-normal.obj │ ├── sponza.obj │ ├── test-nan.obj │ ├── texture-filename-with-whitespace.mtl │ ├── texture-filename-with-whitespace.obj │ ├── texture-options-issue-85.mtl │ ├── texture-options-issue-85.obj │ ├── tr-and-d-issue-43.mtl │ ├── tr-and-d-issue-43.obj │ ├── usemtl-issue-104.obj │ ├── usemtl-issue-68.mtl │ └── usemtl-issue-68.obj ├── skybox_texture │ ├── daylight_skybox.jpg │ └── daylight_skybox2.jpg └── texture │ ├── earth_map.jpg │ ├── jupiter_map.jpg │ ├── marble.jpg │ └── mars_map.jpg └── source ├── CMakeLists.txt ├── aabb.h ├── bvh.h ├── camera.h ├── cube.h ├── main.cpp ├── material.h ├── model.h ├── object.h ├── perlin.h ├── ray.h ├── resource.h ├── scene.h ├── scenes.h ├── skybox.h ├── sphere.h ├── square.h ├── texture.h ├── tools ├── loader_example.cc ├── stb_image.h ├── stb_image_write.h └── tiny_obj_loader.h ├── triangle.h └── vec3.h /.gitattributes: -------------------------------------------------------------------------------- 1 | *.h linguist-language=C++ 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .vscode 3 | build 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/README.md -------------------------------------------------------------------------------- /images/demo1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/images/demo1.jpg -------------------------------------------------------------------------------- /images/demo2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/images/demo2.jpg -------------------------------------------------------------------------------- /images/demo3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/images/demo3.jpg -------------------------------------------------------------------------------- /images/demo4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/images/demo4.jpg -------------------------------------------------------------------------------- /images/demo5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/images/demo5.jpg -------------------------------------------------------------------------------- /resource/models/catmark_torus_creases0.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/catmark_torus_creases0.obj -------------------------------------------------------------------------------- /resource/models/colorspace-issue-184.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/colorspace-issue-184.mtl -------------------------------------------------------------------------------- /resource/models/colorspace-issue-184.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/colorspace-issue-184.obj -------------------------------------------------------------------------------- /resource/models/cornell_box.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/cornell_box.mtl -------------------------------------------------------------------------------- /resource/models/cornell_box.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/cornell_box.obj -------------------------------------------------------------------------------- /resource/models/cornell_box_multimaterial.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/cornell_box_multimaterial.obj -------------------------------------------------------------------------------- /resource/models/cube-vertexcol.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/cube-vertexcol.obj -------------------------------------------------------------------------------- /resource/models/cube.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/cube.mtl -------------------------------------------------------------------------------- /resource/models/cube.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/cube.obj -------------------------------------------------------------------------------- /resource/models/invalid-face-definition.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/invalid-face-definition.mtl -------------------------------------------------------------------------------- /resource/models/invalid-face-definition.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/invalid-face-definition.obj -------------------------------------------------------------------------------- /resource/models/issue-138.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-138.mtl -------------------------------------------------------------------------------- /resource/models/issue-138.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-138.obj -------------------------------------------------------------------------------- /resource/models/issue-140-zero-face-idx.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-140-zero-face-idx.mtl -------------------------------------------------------------------------------- /resource/models/issue-140-zero-face-idx.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-140-zero-face-idx.obj -------------------------------------------------------------------------------- /resource/models/issue-161-inconsistent-f.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-161-inconsistent-f.obj -------------------------------------------------------------------------------- /resource/models/issue-162-smoothing-group.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-162-smoothing-group.mtl -------------------------------------------------------------------------------- /resource/models/issue-162-smoothing-group.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-162-smoothing-group.obj -------------------------------------------------------------------------------- /resource/models/issue-92.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-92.mtl -------------------------------------------------------------------------------- /resource/models/issue-92.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-92.obj -------------------------------------------------------------------------------- /resource/models/issue-95-2.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-95-2.mtl -------------------------------------------------------------------------------- /resource/models/issue-95-2.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-95-2.obj -------------------------------------------------------------------------------- /resource/models/issue-95.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-95.mtl -------------------------------------------------------------------------------- /resource/models/issue-95.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/issue-95.obj -------------------------------------------------------------------------------- /resource/models/line-prim.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/line-prim.obj -------------------------------------------------------------------------------- /resource/models/map-bump.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/map-bump.mtl -------------------------------------------------------------------------------- /resource/models/map-bump.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/map-bump.obj -------------------------------------------------------------------------------- /resource/models/missing_material_file.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/missing_material_file.obj -------------------------------------------------------------------------------- /resource/models/mtllib-multiple-files-issue-112.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/mtllib-multiple-files-issue-112.mtl -------------------------------------------------------------------------------- /resource/models/mtllib-multiple-files-issue-112.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/mtllib-multiple-files-issue-112.obj -------------------------------------------------------------------------------- /resource/models/no_material.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/no_material.obj -------------------------------------------------------------------------------- /resource/models/norm-texopt.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/norm-texopt.mtl -------------------------------------------------------------------------------- /resource/models/norm-texopt.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/norm-texopt.obj -------------------------------------------------------------------------------- /resource/models/opera-house.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/opera-house.mtl -------------------------------------------------------------------------------- /resource/models/opera-house.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/opera-house.obj -------------------------------------------------------------------------------- /resource/models/pbr-mat-ext.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/pbr-mat-ext.mtl -------------------------------------------------------------------------------- /resource/models/pbr-mat-ext.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/pbr-mat-ext.obj -------------------------------------------------------------------------------- /resource/models/refl.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/refl.mtl -------------------------------------------------------------------------------- /resource/models/refl.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/refl.obj -------------------------------------------------------------------------------- /resource/models/smoothing-group-two-squares.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/smoothing-group-two-squares.obj -------------------------------------------------------------------------------- /resource/models/smoothing-normal.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/smoothing-normal.mtl -------------------------------------------------------------------------------- /resource/models/smoothing-normal.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/smoothing-normal.obj -------------------------------------------------------------------------------- /resource/models/sponza.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/sponza.obj -------------------------------------------------------------------------------- /resource/models/test-nan.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/test-nan.obj -------------------------------------------------------------------------------- /resource/models/texture-filename-with-whitespace.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/texture-filename-with-whitespace.mtl -------------------------------------------------------------------------------- /resource/models/texture-filename-with-whitespace.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/texture-filename-with-whitespace.obj -------------------------------------------------------------------------------- /resource/models/texture-options-issue-85.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/texture-options-issue-85.mtl -------------------------------------------------------------------------------- /resource/models/texture-options-issue-85.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/texture-options-issue-85.obj -------------------------------------------------------------------------------- /resource/models/tr-and-d-issue-43.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/tr-and-d-issue-43.mtl -------------------------------------------------------------------------------- /resource/models/tr-and-d-issue-43.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/tr-and-d-issue-43.obj -------------------------------------------------------------------------------- /resource/models/usemtl-issue-104.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/usemtl-issue-104.obj -------------------------------------------------------------------------------- /resource/models/usemtl-issue-68.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/usemtl-issue-68.mtl -------------------------------------------------------------------------------- /resource/models/usemtl-issue-68.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/models/usemtl-issue-68.obj -------------------------------------------------------------------------------- /resource/skybox_texture/daylight_skybox.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/skybox_texture/daylight_skybox.jpg -------------------------------------------------------------------------------- /resource/skybox_texture/daylight_skybox2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/skybox_texture/daylight_skybox2.jpg -------------------------------------------------------------------------------- /resource/texture/earth_map.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/texture/earth_map.jpg -------------------------------------------------------------------------------- /resource/texture/jupiter_map.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/texture/jupiter_map.jpg -------------------------------------------------------------------------------- /resource/texture/marble.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/texture/marble.jpg -------------------------------------------------------------------------------- /resource/texture/mars_map.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/resource/texture/mars_map.jpg -------------------------------------------------------------------------------- /source/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/CMakeLists.txt -------------------------------------------------------------------------------- /source/aabb.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/aabb.h -------------------------------------------------------------------------------- /source/bvh.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/bvh.h -------------------------------------------------------------------------------- /source/camera.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/camera.h -------------------------------------------------------------------------------- /source/cube.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/cube.h -------------------------------------------------------------------------------- /source/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/main.cpp -------------------------------------------------------------------------------- /source/material.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/material.h -------------------------------------------------------------------------------- /source/model.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/model.h -------------------------------------------------------------------------------- /source/object.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/object.h -------------------------------------------------------------------------------- /source/perlin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/perlin.h -------------------------------------------------------------------------------- /source/ray.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/ray.h -------------------------------------------------------------------------------- /source/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/resource.h -------------------------------------------------------------------------------- /source/scene.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/scene.h -------------------------------------------------------------------------------- /source/scenes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/scenes.h -------------------------------------------------------------------------------- /source/skybox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/skybox.h -------------------------------------------------------------------------------- /source/sphere.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/sphere.h -------------------------------------------------------------------------------- /source/square.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/square.h -------------------------------------------------------------------------------- /source/texture.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/texture.h -------------------------------------------------------------------------------- /source/tools/loader_example.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/tools/loader_example.cc -------------------------------------------------------------------------------- /source/tools/stb_image.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/tools/stb_image.h -------------------------------------------------------------------------------- /source/tools/stb_image_write.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/tools/stb_image_write.h -------------------------------------------------------------------------------- /source/tools/tiny_obj_loader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/tools/tiny_obj_loader.h -------------------------------------------------------------------------------- /source/triangle.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/triangle.h -------------------------------------------------------------------------------- /source/vec3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moranzcw/Andromeda/HEAD/source/vec3.h --------------------------------------------------------------------------------