Skip to content

Commit

Permalink
Scenes (#20)
Browse files Browse the repository at this point in the history
* feat: add urban scenes

* lint

* adjust lighting

* solar scene

* shuffle + colors

* axis scene

* add road to urban scene

* arrows fixed in origin when translating

* Revert "arrows fixed in origin when translating"

This reverts commit 6a3ef93.

* solar scene

* rotating scene

* camera rotating scene

* translation + scale scene

* translation scene translate now

* light scenes

* increase alpha values, use teapot in lighting scenes

* add some recordings

---------

Co-authored-by: Eldar Iusupzhanov <[email protected]>
  • Loading branch information
ydcjeff and Tucchhaa authored Dec 18, 2023
1 parent 6218458 commit 64eb659
Show file tree
Hide file tree
Showing 36 changed files with 103,849 additions and 6 deletions.
Binary file added recordings/combined-direct-light.mp4
Binary file not shown.
Binary file added recordings/direct-light.mp4
Binary file not shown.
Binary file added recordings/point-light.mp4
Binary file not shown.
Binary file added recordings/rotation.mp4
Binary file not shown.
Binary file added recordings/translation.mp4
Binary file not shown.
4,565 changes: 4,565 additions & 0 deletions resources/objects/solar/earth.obj

Large diffs are not rendered by default.

4,463 changes: 4,463 additions & 0 deletions resources/objects/solar/jupiter.obj

Large diffs are not rendered by default.

17,956 changes: 17,956 additions & 0 deletions resources/objects/solar/mars.obj

Large diffs are not rendered by default.

1,744 changes: 1,744 additions & 0 deletions resources/objects/solar/mercury.obj

Large diffs are not rendered by default.

10,980 changes: 10,980 additions & 0 deletions resources/objects/solar/moon.obj

Large diffs are not rendered by default.

5,324 changes: 5,324 additions & 0 deletions resources/objects/solar/neptune.obj

Large diffs are not rendered by default.

1,531 changes: 1,531 additions & 0 deletions resources/objects/solar/saturn.obj

Large diffs are not rendered by default.

4,722 changes: 4,722 additions & 0 deletions resources/objects/solar/solar_1.obj

Large diffs are not rendered by default.

37,249 changes: 37,249 additions & 0 deletions resources/objects/solar/solar_2.obj

Large diffs are not rendered by default.

761 changes: 761 additions & 0 deletions resources/objects/solar/sun.obj

Large diffs are not rendered by default.

1,390 changes: 1,390 additions & 0 deletions resources/objects/solar/uranus.obj

Large diffs are not rendered by default.

2,577 changes: 2,577 additions & 0 deletions resources/objects/solar/venus.obj

Large diffs are not rendered by default.

4,255 changes: 4,255 additions & 0 deletions resources/objects/urban/large_building.obj

Large diffs are not rendered by default.

250 changes: 250 additions & 0 deletions resources/objects/urban/low_building.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
# Created by Kenney (www.kenney.nl)

mtllib low_buildingD.mtl

g low_buildingD

v -0.25 9.023893E-17 -0.25
v -0.25 1.5 -0.25
v -0.25 0 -0.125
v -0.25 1.5 -0.125
v 0.25 1.5 0.125
v 0.25 0 0.125
v 0.25 1.5 0.25
v 0.25 9.023893E-17 0.25
v 0.125 0 0.25
v 0.125 1.5 0.25
v -0.125 0 0.25
v -0.25 9.023893E-17 0.25
v -0.125 1.5 0.25
v -0.25 1.5 0.25
v -0.125 1.5 0.225
v -0.125 0 0.225
v -0.125 1.5 -0.25
v -0.125 0 -0.25
v -0.125 1.5 -0.225
v -0.125 0 -0.225
v 0.225 0 0.125
v 0.225 1.5 0.125
v -0.225 0 -0.125
v -0.225 1.5 -0.125
v 0.25 0 -0.125
v 0.225 0 -0.125
v 0.25 1.5 -0.125
v 0.225 1.5 -0.125
v 0.25 1.5 -0.25
v 0.25 9.023893E-17 -0.25
v 0.125 0 0.225
v 0.125 1.5 0.225
v 0.125 0 -0.25
v 0.125 0 -0.225
v -0.225 0 0.125
v -0.25 0 0.125
v -0.075 1.55 -0.075
v -0.075 1.7 -0.075
v -0.075 1.55 0.075
v -0.075 1.7 0.075
v 0.075 1.7 -0.075
v 0.075 1.55 -0.075
v 0.075 1.7 0.075
v 0.075 1.55 0.075
v 0.0125 1.7 0.0125
v -0.0125 1.7 0.0125
v 0.0125 1.85 0.0125
v -0.0125 1.85 0.0125
v -0.0125 1.7 -0.0125
v 0.0125 1.7 -0.0125
v -0.0125 1.85 -0.0125
v 0.0125 1.85 -0.0125
v -0.225 1.5 -0.225
v 0.225 1.6 -0.225
v 0.225 1.5 -0.225
v 0.225 1.6 0.225
v 0.225 1.5 0.225
v -0.175 1.55 0.175
v 0.175 1.55 0.175
v -0.175 1.6 0.175
v 0.175 1.6 0.175
v 0.175 1.6 -0.175
v -0.225 1.6 -0.225
v -0.175 1.6 -0.175
v -0.225 1.6 0.225
v 0.175 1.55 -0.175
v -0.175 1.55 -0.175
v -0.225 1.5 0.225
v -0.225 1.5 0.125
v 0.125 1.5 -0.225
v -0.25 1.5 0.125
v 0.125 1.5 -0.25

vn -1 0 0
vn 1 0 0
vn 0 0 1
vn 0 0 -1
vn 0 -1 0
vn 0 1 0

vt 0 0
vt -4.92126 59.05512
vt 4.92126 59.05512
vt -4.92126 3.222986E-44
vt 4.92126 0
vt -4.92126 4.61654E-31
vt -4.92126 0
vt 6.889764 -6.889764
vt 2.952756 2.952756
vt 6.889764 6.889764
vt 4.92126 3.222986E-44
vt 4.92126 4.61654E-31
vt -6.889764 6.889764
vt -2.952756 -2.952756
vt -6.889764 -6.889764
vt 2.952756 -2.952756
vt -2.952756 2.952756

usemtl _defaultMat

f 3/1/1 2/1/1 1/1/1
f 2/1/1 3/1/1 4/1/1
f 7/4/2 6/3/2 5/2/2
f 6/4/2 7/3/2 8/2/2
f 8/4/3 10/3/3 9/2/3
f 10/4/3 8/3/3 7/2/3
f 13/4/3 12/3/3 11/2/3
f 12/4/3 13/3/3 14/2/3
f 13/2/2 16/5/2 15/3/2
f 16/2/2 13/5/2 11/3/2
f 19/2/2 18/5/2 17/3/2
f 18/2/2 19/5/2 20/3/2
f 22/2/4 6/5/4 21/3/4
f 6/2/4 22/5/4 5/3/4
f 24/2/3 3/5/3 23/3/3
f 3/2/3 24/5/3 4/3/3
f 1/2/4 17/5/4 18/3/4
f 17/2/4 1/5/4 2/3/4
f 27/2/3 26/5/3 25/3/3
f 26/2/3 27/5/3 28/3/3
f 27/6/2 30/3/2 29/2/2
f 30/6/2 27/3/2 25/2/2
f 9/5/1 32/2/1 31/7/1
f 32/5/1 9/2/1 10/7/1
f 26/5/5 30/2/5 25/7/5
f 30/5/5 26/2/5 33/7/5
f 9/5/5 6/2/5 8/7/5
f 6/5/5 9/2/5 21/7/5
f 21/5/5 9/2/5 26/7/5
f 26/5/5 9/2/5 31/7/5
f 26/5/5 31/2/5 33/7/5
f 33/5/5 31/2/5 34/7/5
f 12/5/5 35/2/5 11/7/5
f 35/5/5 12/2/5 36/7/5
f 31/5/5 20/2/5 34/7/5
f 20/5/5 31/2/5 16/7/5
f 20/5/5 16/2/5 18/7/5
f 18/5/5 16/2/5 1/7/5
f 1/5/5 16/2/5 11/7/5
f 1/5/5 11/2/5 23/7/5
f 23/5/5 11/2/5 35/7/5
f 1/5/5 23/2/5 3/7/5
f 39/5/1 38/2/1 37/7/1
f 38/5/1 39/2/1 40/7/1
f 43/5/2 42/2/2 41/7/2
f 42/5/2 43/2/2 44/7/2
f 47/5/3 46/2/3 45/7/3
f 46/5/3 47/2/3 48/7/3
f 51/5/4 50/2/4 49/7/4
f 50/5/4 51/2/4 52/7/4
f 41/5/6 50/2/6 43/7/6
f 50/5/6 41/2/6 38/7/6
f 50/5/6 38/2/6 49/7/6
f 49/5/6 38/2/6 46/7/6
f 43/5/6 45/2/6 40/7/6
f 45/5/6 43/2/6 50/7/6
f 40/5/6 45/2/6 46/7/6
f 40/5/6 46/2/6 38/7/6
f 47/5/2 50/2/2 52/7/2
f 50/5/2 47/2/2 45/7/2
f 46/5/1 51/2/1 49/7/1
f 51/5/1 46/2/1 48/7/1
f 43/5/3 39/2/3 44/7/3
f 39/5/3 43/2/3 40/7/3
f 51/5/6 47/2/6 52/7/6
f 47/5/6 51/2/6 48/7/6
f 38/5/4 42/2/4 37/7/4
f 42/5/4 38/2/4 41/7/4
f 2/5/6 19/2/6 17/7/6
f 19/5/6 2/2/6 53/7/6
f 24/5/6 2/2/6 4/7/6
f 53/5/6 2/2/6 24/7/6
f 56/5/2 55/2/2 54/7/2
f 55/5/2 56/2/2 28/7/2
f 28/5/2 56/2/2 22/7/2
f 22/5/2 56/2/2 57/7/2
f 60/5/4 59/2/4 58/7/4
f 59/5/4 60/2/4 61/7/4
f 54/5/6 62/2/6 56/7/6
f 62/5/6 54/2/6 63/7/6
f 62/5/6 63/2/6 64/7/6
f 64/5/6 63/2/6 60/7/6
f 56/5/6 61/2/6 65/7/6
f 61/5/6 56/2/6 62/7/6
f 65/5/6 61/2/6 60/7/6
f 65/5/6 60/2/6 63/7/6
f 62/5/3 67/2/3 66/7/3
f 67/5/3 62/2/3 64/7/3
f 56/10/3 32/9/3 57/8/3
f 32/10/3 56/9/3 15/8/3
f 15/10/3 56/9/3 68/8/3
f 68/10/3 56/9/3 65/8/3
f 24/10/1 63/9/1 53/8/1
f 63/10/1 24/9/1 65/8/1
f 65/10/1 24/9/1 69/8/1
f 65/10/1 69/9/1 68/8/1
f 63/10/4 19/9/4 53/8/4
f 19/10/4 63/9/4 70/8/4
f 70/10/4 63/9/4 55/8/4
f 55/10/4 63/9/4 54/8/4
f 60/10/2 67/9/2 64/8/2
f 67/10/2 60/9/2 58/8/2
f 59/10/1 62/9/1 66/8/1
f 62/10/1 59/9/1 61/8/1
f 22/10/6 7/9/6 5/8/6
f 7/10/6 22/9/6 57/8/6
f 7/10/6 57/9/6 10/8/6
f 10/10/6 57/9/6 32/8/6
f 71/10/6 68/9/6 69/8/6
f 68/10/6 13/9/6 15/8/6
f 13/10/6 68/9/6 14/8/6
f 14/10/6 68/9/6 71/8/6
f 29/10/6 55/9/6 27/8/6
f 55/10/6 29/9/6 72/8/6
f 55/10/6 72/9/6 70/8/6
f 28/10/6 27/9/6 55/8/6
f 72/10/4 30/9/4 33/8/4
f 30/10/4 72/9/4 29/8/4
f 34/10/1 72/9/1 33/8/1
f 72/10/1 34/9/1 70/8/1
f 12/10/1 71/9/1 36/8/1
f 71/10/1 12/9/1 14/8/1
f 71/10/4 35/9/4 36/8/4
f 35/10/4 71/9/4 69/8/4

usemtl border

f 32/3/3 16/4/3 31/11/3
f 16/4/3 32/3/3 15/2/3
f 35/5/1 24/2/1 23/7/1
f 24/2/1 35/5/1 69/3/1
f 19/3/4 34/6/4 20/12/4
f 34/6/4 19/3/4 70/2/4
f 22/2/2 26/5/2 28/3/2
f 26/5/2 22/2/2 21/7/2
f 66/15/6 42/14/6 59/13/6
f 42/14/6 66/15/6 67/8/6
f 42/14/6 67/8/6 37/16/6
f 37/16/6 67/8/6 39/9/6
f 44/17/6 59/13/6 42/14/6
f 59/13/6 44/17/6 58/10/6
f 58/10/6 44/17/6 39/9/6
f 58/10/6 39/9/6 67/8/6

Loading

0 comments on commit 64eb659

Please sign in to comment.