add second_fish, third_fish, sea_turtle, crab, fix fish movement

This commit is contained in:
Michal Zaporski 2022-01-20 03:10:14 +01:00
parent 6eea90dca6
commit f20ed91d6f
9 changed files with 253127 additions and 4 deletions

138669
cw 6/models/crab.obj Normal file

File diff suppressed because it is too large Load Diff

63359
cw 6/models/sea_turtle.obj Normal file

File diff suppressed because it is too large Load Diff

50082
cw 6/models/second_fish.obj Normal file

File diff suppressed because it is too large Load Diff

977
cw 6/models/third_fish.obj Normal file
View File

@ -0,0 +1,977 @@
# Blender v2.79 (sub 0) OBJ File: 'fishred4.blend'
# www.blender.org
mtllib fishred.mtl
o fishV1_Sphere
v -0.142054 -0.815471 4.214375
v -0.206751 -1.099525 3.856696
v -0.284565 -1.433381 3.135250
v -0.464588 -1.168499 1.878503
v -0.463179 -1.125787 1.792535
v -0.334524 -1.344300 0.210740
v -0.284565 -1.192235 -0.698334
v -0.218849 -0.965107 -1.212184
v -0.033647 -0.641234 -2.361747
v -0.143965 -0.713332 4.082266
v -0.342432 -0.621299 3.644990
v -0.460839 -0.694767 3.208851
v -0.509986 -0.552285 2.810326
v -0.518651 -0.962018 1.837924
v -0.541265 -0.776035 0.210740
v -0.460429 -0.711918 -0.698334
v -0.354099 -0.686251 -1.212184
v -0.143965 -0.356174 4.155542
v -0.339477 -0.184797 3.725826
v -0.541265 -0.045360 2.226175
v -0.569119 -0.023266 1.218457
v -0.541265 -0.045359 0.210740
v -0.460429 -0.109477 -0.698334
v -0.354099 -0.198413 -1.212184
v -0.142054 -0.227333 4.181975
v -0.271852 0.058550 3.655142
v -0.329566 0.289958 3.174755
v -0.358748 0.257157 2.830941
v -0.351739 0.846458 1.218457
v -0.334524 0.736170 0.210740
v -0.284565 0.520916 -0.698334
v -0.218849 0.256023 -1.212184
v -0.033647 -0.051603 -2.361747
v -0.011979 -0.963746 -3.179263
v -0.011979 0.126773 -3.179263
v 0.024491 -1.160996 -3.884142
v -0.024512 -1.160996 -3.884142
v -0.024512 0.400417 -3.884143
v 0.024491 0.400417 -3.884143
v -0.064011 0.985951 1.218457
v -0.060879 0.853038 2.226175
v -0.016828 -0.016804 -2.361747
v -0.051788 0.633768 -0.698334
v -0.039831 0.342812 -1.212184
v -0.060879 0.868835 0.210740
v -0.113376 -0.671567 -1.589591
v -0.183440 -0.495769 -1.586043
v -0.183440 -0.204782 -1.586043
v -0.113376 0.030631 -1.589591
v -0.020639 0.075591 -1.589591
v -0.055088 -1.125772 -1.212184
v -0.071628 -1.433037 -0.698334
v -0.084201 -1.604915 0.210740
v -0.113465 -0.478524 4.388983
v -0.113465 -0.304215 4.249183
v -0.143965 -0.459595 4.166020
v -0.142054 -0.333853 4.204590
v -0.298266 -0.670212 3.856696
v -0.460429 -0.770077 3.135250
v -0.505132 -1.010817 1.919188
v -0.298266 -0.209343 3.856696
v -0.510000 -0.089587 2.718942
v -0.144800 -0.032788 3.883621
v -0.222613 0.421122 3.162175
v -0.272573 0.720372 2.226175
v -0.350633 -0.184936 3.629454
v -0.444671 -0.142798 3.237659
v -0.488446 -0.107990 2.815712
v -0.448715 -0.597084 3.211646
v -0.342624 0.198750 3.184091
v -0.353021 -0.537708 3.564124
v -0.488435 -0.481933 2.889567
v -0.295980 0.011731 3.572329
v -0.366208 0.172241 2.906227
v -0.188592 -1.678504 1.805578
v -0.191021 -1.668048 1.638991
v -0.541265 -0.757906 2.226175
v -0.571833 -0.779999 1.218457
v -0.397010 -1.292628 1.890853
v -0.421855 -1.240999 1.675355
v -0.511901 -0.970548 1.987287
v -0.469980 -0.901407 1.812807
v -0.463407 -1.306017 1.888047
v -0.460590 -1.220632 1.716185
v -0.566004 -0.990794 1.969381
v -0.593028 -0.893237 1.806924
v -0.590483 -1.242001 1.378400
v -0.585425 -1.088711 1.069862
v -0.774672 -0.676090 1.524417
v -0.823188 -0.597827 1.232762
v -0.658055 -1.129811 0.993214
v -0.652997 -0.692406 0.691985
v -0.842244 -0.563899 1.139231
v -0.890760 -0.323998 0.582933
v -0.000010 1.222664 0.210740
v -0.000010 0.814706 -2.409037
v -0.000010 -0.925838 4.191732
v -0.000010 -1.333300 3.856696
v -0.000010 -1.728876 3.135250
v 0.000600 -1.894597 1.805012
v -0.000010 -1.864367 1.218457
v -0.000010 -1.737580 0.210740
v -0.000010 -1.540698 -1.337385
v -0.000010 -1.273545 -2.175413
v -0.000010 -0.710831 -2.361747
v 0.142034 -0.815471 4.214375
v 0.206731 -1.099525 3.856696
v 0.284544 -1.433381 3.135250
v 0.464567 -1.168499 1.878503
v 0.463158 -1.125787 1.792535
v 0.334504 -1.344300 0.210740
v 0.284544 -1.192235 -0.698334
v 0.218828 -0.965107 -1.212184
v 0.033626 -0.641234 -2.361747
v 0.143944 -0.713332 4.082266
v 0.342411 -0.621299 3.644990
v 0.460818 -0.694767 3.208851
v 0.509965 -0.552285 2.810326
v 0.518630 -0.962018 1.837924
v 0.541245 -0.776035 0.210740
v 0.460409 -0.711918 -0.698334
v 0.354078 -0.686251 -1.212184
v 0.143944 -0.356174 4.155542
v 0.339456 -0.184797 3.725826
v 0.541245 -0.045360 2.226175
v 0.569099 -0.023266 1.218457
v 0.541245 -0.045359 0.210740
v 0.460409 -0.109477 -0.698334
v 0.354078 -0.198413 -1.212184
v 0.142034 -0.227333 4.181975
v 0.271831 0.058550 3.655142
v 0.329546 0.289958 3.174755
v 0.358727 0.257157 2.830941
v 0.351718 0.846458 1.218457
v 0.334504 0.736170 0.210740
v 0.284544 0.520916 -0.698334
v 0.218828 0.256023 -1.212184
v 0.033626 -0.051603 -2.361747
v -0.000010 -0.116966 4.204618
v -0.000010 0.017834 4.049370
v -0.000010 0.587402 3.135250
v -0.000010 1.104183 2.226175
v -0.000010 1.243924 1.218457
v -0.000010 1.144608 -0.664849
v -0.000010 0.017994 -2.361747
v -0.000010 -1.092464 -3.179263
v 0.011958 -0.963746 -3.179263
v 0.011958 0.126773 -3.179263
v -0.000010 0.255491 -3.179263
v -0.000010 -1.365242 -3.884142
v -0.024512 -1.160996 -3.884142
v 0.024491 -1.160996 -3.884142
v -0.000010 0.604664 -3.884143
v 0.024491 0.400417 -3.884143
v -0.024512 0.400417 -3.884143
v 0.063991 0.985951 1.218457
v 0.060858 0.853038 2.226175
v 0.016808 -0.016804 -2.361747
v 0.051767 0.633768 -0.698334
v 0.039810 0.342812 -1.212184
v 0.060858 0.868835 0.210740
v -0.000010 -0.761487 -1.732544
v 0.113356 -0.671567 -1.589591
v 0.183420 -0.495769 -1.586043
v 0.183420 -0.204782 -1.586043
v 0.113356 0.030631 -1.589591
v -0.000010 0.124205 -1.602247
v 0.020618 0.075591 -1.589591
v 0.055067 -1.125772 -1.212184
v 0.071607 -1.433037 -0.698334
v 0.084181 -1.604915 0.210740
v -0.000010 -0.439773 4.501843
v 0.113444 -0.478524 4.388983
v -0.000010 -0.251298 4.246053
v 0.113444 -0.304215 4.249183
v -0.000010 -0.710737 4.083323
v 0.143944 -0.459595 4.166020
v 0.142034 -0.333853 4.204590
v -0.000010 -0.226139 4.237630
v 0.298245 -0.670212 3.856696
v 0.460409 -0.770077 3.135250
v 0.505112 -1.010817 1.919188
v 0.298245 -0.209343 3.856696
v 0.509979 -0.089587 2.718942
v 0.144779 -0.032788 3.883621
v 0.222593 0.421122 3.162175
v 0.272552 0.720372 2.226175
v 0.350612 -0.184936 3.629454
v 0.444650 -0.142798 3.237659
v 0.488425 -0.107990 2.815712
v 0.448695 -0.597084 3.211646
v 0.342603 0.198750 3.184091
v 0.353000 -0.537708 3.564124
v 0.488414 -0.481933 2.889567
v 0.295959 0.011731 3.572329
v 0.366187 0.172241 2.906227
v 0.188572 -1.678504 1.805578
v 0.191001 -1.668048 1.638991
v 0.541245 -0.757906 2.226175
v 0.571813 -0.779999 1.218457
v 0.396989 -1.274287 1.890853
v 0.421834 -1.177245 1.689388
v 0.511880 -0.975857 1.982021
v 0.469959 -0.910423 1.812807
v 0.463386 -1.306017 1.888047
v 0.460569 -1.220632 1.716185
v 0.565983 -0.990794 1.969381
v 0.593007 -0.893237 1.806924
v 0.590462 -1.242001 1.378400
v 0.585404 -1.088711 1.069862
v 0.774651 -0.676090 1.524417
v 0.823168 -0.597827 1.232762
v 0.658034 -1.129811 0.993214
v 0.652976 -0.692406 0.691985
v 0.842223 -0.563899 1.139231
v 0.890740 -0.323998 0.582933
v -0.361648 -1.521005 2.226175
v -0.381577 -1.439302 1.218457
v -0.000010 -1.885142 2.226175
v -0.000621 -1.889086 1.639579
v 0.361628 -1.521005 2.226175
v 0.381557 -1.439302 1.218457
v 0.015492 -1.876901 1.791946
v 0.014464 -1.872261 1.652643
v 0.173775 -1.694939 1.792423
v 0.175820 -1.686135 1.652148
v -0.016564 -1.874462 1.790145
v -0.017566 -1.869942 1.654444
v -0.171756 -1.697204 1.790610
v -0.173748 -1.688628 1.653961
v 0.208319 -1.944136 0.797246
v 0.207308 -1.937233 0.772987
v 0.210209 -1.821899 1.236426
v 0.212883 -1.811350 1.212414
v -0.141524 -1.967945 0.793597
v -0.142727 -1.960200 0.768384
v -0.253907 -1.780932 1.212114
v -0.256419 -1.768786 1.187203
vt 0.275301 0.247877
vt 0.187291 0.274156
vt 0.187291 0.312307
vt 0.275301 0.300994
vt 0.628274 0.357231
vt 0.558429 0.312352
vt 0.558429 0.343442
vt 0.628274 0.376827
vt 0.315993 0.251396
vt 0.316066 0.294976
vt 0.316066 0.294976
vt 0.315993 0.251396
vt 0.119636 0.329816
vt 0.085011 0.377836
vt 0.082819 0.392086
vt 0.117447 0.355411
vt 0.663944 0.388134
vt 0.706663 0.332944
vt 0.658555 0.391820
vt 0.470419 0.273032
vt 0.372860 0.256663
vt 0.372860 0.311543
vt 0.470419 0.323809
vt 0.470419 0.290161
vt 0.470419 0.397177
vt 0.558429 0.405455
vt 0.187291 0.397946
vt 0.275301 0.399518
vt 0.628274 0.410840
vt 0.303988 0.769990
vt 0.297115 0.785122
vt 0.292730 0.785635
vt 0.306469 0.755384
vt 0.095609 0.405273
vt 0.117447 0.410840
vt 0.655162 0.431708
vt 0.372860 0.396665
vt 0.160662 0.771964
vt 0.142270 0.692143
vt 0.136542 0.703300
vt 0.150781 0.769458
vt 0.470419 0.491514
vt 0.558429 0.483236
vt 0.099385 0.849937
vt 0.136856 0.836538
vt 0.129168 0.824975
vt 0.098432 0.837517
vt 0.628274 0.470343
vt 0.275301 0.491514
vt 0.372860 0.494367
vt 0.088515 0.451385
vt 0.117447 0.470343
vt 0.654169 0.469939
vt 0.628274 0.525771
vt 0.652527 0.513573
vt 0.372860 0.606657
vt 0.470419 0.592417
vt 0.558429 0.564626
vt 0.103546 0.676944
vt 0.058224 0.694304
vt 0.066481 0.705687
vt 0.103261 0.690246
vt 0.275301 0.590378
vt 0.085956 0.468020
vt 0.114840 0.493138
vt 0.372860 0.624667
vt 0.275301 0.607506
vt 0.274805 0.628016
vt 0.372860 0.657974
vt 0.083764 0.482269
vt 0.100779 0.499011
vt 0.652527 0.519377
vt 0.628274 0.536357
vt 0.704496 0.608214
vt 0.653752 0.525654
vt 0.470419 0.609546
vt 0.470813 0.652602
vt 0.184685 0.551742
vt 0.187291 0.567431
vt 0.717482 0.486075
vt 0.715496 0.422525
vt 0.558429 0.579196
vt 0.555187 0.636681
vt 0.798613 0.498379
vt 0.798613 0.398810
vt 0.717482 0.490567
vt 0.717482 0.495060
vt 0.798613 0.510131
vt 0.715496 0.413539
vt 0.798613 0.387057
vt 0.869461 0.328838
vt 0.869461 0.351502
vt 0.869461 0.524757
vt 0.869461 0.547420
vt 0.869461 0.524757
vt 0.869461 0.351502
vt 0.620297 0.298452
vt 0.054989 0.440592
vt 0.065915 0.435589
vt 0.079752 0.464926
vt 0.079449 0.458094
vt 0.087500 0.438033
vt 0.083766 0.454267
vt 0.080568 0.468174
vt 0.095506 0.405608
vt 0.137942 0.417155
vt 0.180166 0.407670
vt 0.218748 0.426065
vt 0.130117 0.473512
vt 0.227595 0.485804
vt 0.183467 0.534807
vt 0.136960 0.504930
vt 0.216752 0.530572
vt 0.043481 0.763025
vt 0.100998 0.762091
vt 0.056819 0.807321
vt 0.033641 0.763044
vt 0.048363 0.813696
vt 0.308757 0.327852
vt 0.328627 0.337146
vt 0.317305 0.389630
vt 0.292462 0.379746
vt 0.309692 0.777123
vt 0.321536 0.768802
vt 0.307857 0.748171
vt 0.302310 0.792741
vt 0.283933 0.794645
vt 0.300797 0.808929
vt 0.303115 0.800867
vt 0.317873 0.769644
vt 0.365155 0.773417
vt 0.353880 0.819443
vt 0.336443 0.770590
vt 0.329545 0.807884
vt 0.355622 0.820648
vt 0.365713 0.773538
vt 0.385435 0.795546
vt 0.394133 0.835382
vt 0.275301 0.300994
vt 0.187291 0.312307
vt 0.628274 0.357231
vt 0.628274 0.376827
vt 0.558429 0.343442
vt 0.558429 0.312352
vt 0.332170 0.253142
vt 0.332097 0.296732
vt 0.332097 0.296732
vt 0.332170 0.253142
vt 0.117447 0.355411
vt 0.082819 0.392086
vt 0.658555 0.391820
vt 0.470419 0.290161
vt 0.470419 0.323809
vt 0.372860 0.311543
vt 0.558429 0.405455
vt 0.470419 0.397177
vt 0.275301 0.399518
vt 0.187291 0.397946
vt 0.628274 0.410840
vt 0.303988 0.769990
vt 0.306469 0.755384
vt 0.292730 0.785635
vt 0.297115 0.785122
vt 0.117447 0.410840
vt 0.095609 0.405273
vt 0.655162 0.431708
vt 0.372860 0.396665
vt 0.160662 0.771964
vt 0.150781 0.769458
vt 0.136542 0.703300
vt 0.142270 0.692143
vt 0.558429 0.483236
vt 0.470419 0.491514
vt 0.099385 0.849937
vt 0.098432 0.837517
vt 0.129168 0.824975
vt 0.136856 0.836538
vt 0.628274 0.470343
vt 0.372860 0.494367
vt 0.275301 0.491514
vt 0.117447 0.470343
vt 0.088515 0.451385
vt 0.654169 0.469939
vt 0.652527 0.513573
vt 0.628274 0.525771
vt 0.470419 0.592417
vt 0.372860 0.606657
vt 0.558429 0.564626
vt 0.103546 0.676944
vt 0.103261 0.690246
vt 0.066481 0.705687
vt 0.058224 0.694304
vt 0.275301 0.590378
vt 0.114840 0.493138
vt 0.085956 0.468020
vt 0.372860 0.624667
vt 0.275301 0.607506
vt 0.652527 0.519377
vt 0.628274 0.536357
vt 0.470419 0.609546
vt 0.184685 0.551742
vt 0.715496 0.422525
vt 0.717482 0.486075
vt 0.558429 0.579196
vt 0.798613 0.398810
vt 0.798613 0.498379
vt 0.717482 0.490567
vt 0.869461 0.351502
vt 0.869461 0.524757
vt 0.869461 0.524757
vt 0.869461 0.351502
vt 0.065915 0.435589
vt 0.079449 0.458094
vt 0.083766 0.454267
vt 0.087500 0.438033
vt 0.137942 0.417155
vt 0.180166 0.407670
vt 0.218748 0.426065
vt 0.130117 0.473512
vt 0.227595 0.485804
vt 0.183467 0.534807
vt 0.136960 0.504930
vt 0.216752 0.530572
vt 0.100998 0.762091
vt 0.043481 0.763025
vt 0.056819 0.807321
vt 0.033641 0.763044
vt 0.048363 0.813696
vt 0.308757 0.327852
vt 0.328627 0.337146
vt 0.317305 0.389630
vt 0.292462 0.379746
vt 0.307857 0.748171
vt 0.321536 0.768802
vt 0.309692 0.777123
vt 0.302310 0.792741
vt 0.300797 0.808929
vt 0.283933 0.794645
vt 0.303115 0.800867
vt 0.353880 0.819443
vt 0.365155 0.773417
vt 0.317873 0.769644
vt 0.336443 0.770590
vt 0.365713 0.773538
vt 0.355622 0.820648
vt 0.329939 0.808409
vt 0.385435 0.795546
vt 0.394133 0.835382
vt 0.332097 0.296732
vt 0.316066 0.294976
vt 0.498099 0.309706
vt 0.509171 0.287977
vt 0.669295 0.322029
vt 0.627297 0.323597
vt 0.316066 0.294976
vt 0.315993 0.251396
vt 0.486065 0.297631
vt 0.497263 0.275902
vt 0.663809 0.315299
vt 0.621712 0.316939
vt 0.332170 0.253142
vt 0.332097 0.296732
vt 0.669576 0.321709
vt 0.627161 0.324093
vt 0.663677 0.315785
vt 0.621988 0.316628
vt 0.509475 0.287846
vt 0.486367 0.297508
vt 0.498109 0.310152
vt 0.497275 0.276341
vn -0.0001 -0.9971 0.0753
vn 0.0000 -0.9494 0.3139
vn -0.8473 -0.4869 0.2118
vn -0.8701 -0.4902 0.0517
vn -0.9281 -0.3003 -0.2200
vn -0.8504 -0.5042 -0.1503
vn -0.8220 -0.5219 -0.2278
vn -0.8711 -0.3671 -0.3262
vn 0.0025 -0.9996 -0.0267
vn -0.7337 -0.6788 -0.0279
vn -0.7638 -0.6449 0.0255
vn -0.7226 -0.6908 0.0256
vn 0.0000 -0.8100 0.5865
vn 0.0000 -0.6229 0.7823
vn -0.7656 -0.3121 0.5625
vn -0.7992 -0.4237 0.4261
vn 0.0000 -0.9240 -0.3823
vn 0.0000 -0.6334 -0.7738
vn -0.8996 -0.3334 -0.2820
vn 0.0000 -0.9881 -0.1537
vn 0.0001 -0.9954 -0.0959
vn -0.8794 -0.4750 -0.0320
vn -0.8559 -0.5068 -0.1029
vn -0.7962 -0.5963 -0.1020
vn -0.9835 -0.1668 -0.0702
vn -0.9706 -0.1783 -0.1618
vn -0.9754 -0.1668 0.1438
vn -0.9885 -0.1441 0.0447
vn -0.9136 -0.2037 -0.3518
vn -0.0954 -0.5368 0.8383
vn -0.4060 0.3638 0.8383
vn -0.2208 0.2787 0.9346
vn 0.1906 -0.8133 0.5496
vn -0.8568 -0.0951 0.5067
vn -0.9362 -0.0912 0.3394
vn -0.9347 -0.1525 -0.3211
vn -0.9894 -0.1449 0.0018
vn -0.9716 0.1806 0.1530
vn -0.9933 -0.0090 0.1154
vn -0.9842 0.0575 0.1674
vn -0.9664 0.1753 0.1881
vn -0.9892 0.1304 -0.0667
vn -0.9770 0.1368 -0.1638
vn -0.8713 0.4239 0.2471
vn -0.9267 0.3469 0.1445
vn -0.9539 0.2637 0.1429
vn -0.9622 0.2280 0.1485
vn -0.9397 0.1257 -0.3179
vn -0.9842 0.1633 0.0686
vn -0.9905 0.1370 0.0086
vn -0.9637 0.0678 0.2581
vn -0.8852 0.2052 0.4175
vn -0.9467 0.1295 -0.2950
vn -0.7025 0.5600 -0.4392
vn -0.7646 0.5500 -0.3360
vn -0.7663 0.6423 0.0152
vn -0.7613 0.6345 -0.1331
vn -0.7321 0.6174 -0.2876
vn -0.9797 0.0016 0.2002
vn -0.9743 -0.0221 0.2239
vn -0.9793 0.0279 0.2004
vn -0.9788 0.0649 0.1942
vn -0.8003 0.5800 0.1517
vn -0.6800 0.3744 0.6304
vn -0.6852 0.5618 0.4635
vn -0.8068 0.5907 0.0121
vn -0.7480 0.6432 0.1633
vn 0.0000 0.9608 0.2770
vn 0.0000 0.9993 0.0380
vn 0.0000 0.6231 0.7822
vn 0.0000 0.8161 0.5778
vn -0.7743 0.5802 -0.2523
vn -0.8237 0.4716 -0.3147
vn 0.0000 0.4615 -0.8871
vn 0.0000 0.8986 -0.4388
vn -0.8086 0.5792 -0.1034
vn 0.0000 0.9919 -0.1273
vn -0.7092 0.6242 0.3276
vn 0.0000 0.8999 0.4361
vn -0.9585 0.2735 -0.0804
vn -0.9727 -0.2238 -0.0601
vn -0.8332 0.5159 -0.1988
vn 0.0000 0.9693 -0.2457
vn -0.9961 0.0849 0.0233
vn -0.9951 -0.0922 0.0355
vn -0.8975 0.4402 -0.0244
vn 0.0000 0.9999 -0.0109
vn 0.0000 0.9473 0.3202
vn 0.0000 -0.9998 0.0211
vn 0.0000 -0.9310 0.3648
vn 0.0000 -0.5790 -0.8153
vn -0.7302 -0.0468 -0.6816
vn -0.7328 0.0494 -0.6786
vn 0.0000 0.5682 -0.8229
vn 0.0000 0.0000 -1.0000
vn 0.0000 -0.9217 -0.3878
vn 0.0000 0.1914 0.9815
vn -0.7971 0.0521 0.6016
vn 0.0000 0.7370 0.6759
vn -0.7716 0.4664 0.4325
vn -0.7027 -0.2155 0.6781
vn -0.6825 -0.1013 0.7238
vn 0.0000 0.0786 0.9969
vn 0.0000 -0.3049 0.9524
vn -0.9407 0.2012 0.2730
vn -0.7745 0.5116 0.3719
vn -0.9741 0.1418 0.1762
vn -0.9689 0.1632 0.1857
vn -0.9471 0.2571 0.1922
vn -0.9656 -0.2596 0.0159
vn -0.9733 -0.2291 -0.0104
vn -0.9782 -0.1894 -0.0851
vn -0.9713 -0.2344 0.0386
vn -0.1033 0.1506 -0.9832
vn -0.1876 0.9082 -0.3741
vn 0.7414 0.6695 0.0451
vn 0.9690 -0.1190 -0.2163
vn 0.9605 -0.0701 -0.2694
vn 0.4678 0.8455 0.2574
vn -0.1770 -0.9704 -0.1639
vn -0.5288 0.6858 0.5000
vn -0.8843 0.4248 0.1936
vn -0.2122 -0.8398 -0.4996
vn 0.3942 0.3332 -0.8565
vn -0.2059 0.8019 -0.5608
vn 0.8713 -0.4881 0.0508
vn 0.8473 -0.4869 0.2118
vn 0.9281 -0.3003 -0.2200
vn 0.8711 -0.3671 -0.3262
vn 0.8220 -0.5219 -0.2278
vn 0.8504 -0.5042 -0.1503
vn -0.0027 -0.9992 -0.0404
vn 0.7413 -0.6703 -0.0340
vn 0.9457 -0.3197 -0.0584
vn 0.2026 -0.9703 -0.1318
vn 0.7992 -0.4237 0.4261
vn 0.7656 -0.3121 0.5625
vn 0.8996 -0.3334 -0.2820
vn 0.7962 -0.5963 -0.1020
vn 0.8559 -0.5068 -0.1029
vn 0.8796 -0.4747 -0.0307
vn 0.9706 -0.1783 -0.1618
vn 0.9835 -0.1668 -0.0702
vn 0.9887 -0.1429 0.0440
vn 0.9754 -0.1668 0.1438
vn 0.9136 -0.2037 -0.3518
vn 0.0179 -0.6071 0.7944
vn -0.1906 -0.8133 0.5496
vn 0.2208 0.2787 0.9346
vn 0.3688 0.3708 0.8523
vn 0.9362 -0.0912 0.3394
vn 0.8568 -0.0951 0.5067
vn 0.9347 -0.1525 -0.3211
vn 0.9889 -0.1484 0.0045
vn 0.9716 0.1806 0.1530
vn 0.9664 0.1753 0.1881
vn 0.9842 0.0575 0.1674
vn 0.9933 -0.0090 0.1154
vn 0.9770 0.1368 -0.1638
vn 0.9892 0.1304 -0.0667
vn 0.8713 0.4238 0.2471
vn 0.9622 0.2280 0.1485
vn 0.9539 0.2637 0.1429
vn 0.9267 0.3469 0.1445
vn 0.9397 0.1257 -0.3179
vn 0.9905 0.1370 0.0086
vn 0.9842 0.1633 0.0686
vn 0.8852 0.2052 0.4175
vn 0.9637 0.0678 0.2581
vn 0.9467 0.1295 -0.2950
vn 0.7646 0.5500 -0.3360
vn 0.7025 0.5600 -0.4392
vn 0.7613 0.6345 -0.1331
vn 0.7663 0.6423 0.0152
vn 0.7321 0.6174 -0.2876
vn 0.9797 0.0016 0.2002
vn 0.9788 0.0649 0.1942
vn 0.9793 0.0279 0.2004
vn 0.9743 -0.0221 0.2239
vn 0.8003 0.5800 0.1517
vn 0.6852 0.5618 0.4635
vn 0.6800 0.3744 0.6304
vn 0.8068 0.5907 0.0121
vn 0.7480 0.6432 0.1633
vn 0.7743 0.5802 -0.2523
vn 0.8237 0.4716 -0.3147
vn 0.8086 0.5792 -0.1034
vn 0.7092 0.6242 0.3276
vn 0.9727 -0.2238 -0.0601
vn 0.9585 0.2735 -0.0804
vn 0.8332 0.5159 -0.1988
vn 0.9951 -0.0922 0.0355
vn 0.9961 0.0849 0.0233
vn 0.8975 0.4402 -0.0244
vn 0.7328 0.0494 -0.6786
vn 0.7302 -0.0468 -0.6816
vn 0.7971 0.0521 0.6016
vn 0.7716 0.4664 0.4325
vn 0.6825 -0.1013 0.7238
vn 0.7027 -0.2155 0.6781
vn 0.9407 0.2012 0.2730
vn 0.7745 0.5116 0.3719
vn 0.9689 0.1632 0.1857
vn 0.9741 0.1418 0.1762
vn 0.9471 0.2571 0.1922
vn 0.9651 -0.2619 0.0000
vn 0.9704 -0.2364 -0.0501
vn 0.9792 -0.1777 -0.0980
vn 0.9715 -0.2325 0.0460
vn 0.0450 0.0432 -0.9980
vn 0.1429 0.9203 -0.3642
vn -0.7414 0.6695 0.0451
vn -0.4678 0.8455 0.2574
vn -0.9605 -0.0701 -0.2694
vn -0.9690 -0.1190 -0.2163
vn 0.1770 -0.9704 -0.1639
vn 0.2122 -0.8398 -0.4996
vn 0.8843 0.4248 0.1936
vn 0.5288 0.6858 0.5000
vn -0.3942 0.3332 -0.8565
vn 0.2059 0.8019 -0.5608
vn -0.7417 -0.6699 -0.0337
vn 0.7342 -0.6784 -0.0281
vn -0.9864 -0.1596 -0.0388
vn -0.0145 -0.9884 -0.1512
vn -0.1605 -0.6668 -0.7277
vn -0.4812 0.7875 -0.3850
vn 0.7739 -0.6328 0.0239
vn 0.7278 -0.6854 0.0224
vn 0.4441 -0.8957 -0.0212
vn 0.9438 -0.3071 0.1215
vn 0.4603 -0.8126 -0.3575
vn 0.4284 0.8636 -0.2658
vn -0.0964 -0.9911 -0.0914
vn -0.9675 -0.2266 0.1117
usemtl FISHV1
s 1
f 219/1/1 99/2/2 3/3/3 217/4/4
f 51/5/5 52/6/6 7/7/7 8/8/8
f 100/9/9 75/10/10 229/11/11 227/12/12
f 98/13/13 97/14/14 1/15/15 2/16/16
f 162/17/17 104/18/18 51/5/5 8/8/8 46/19/19
f 102/20/20 101/21/21 218/22/22 6/23/23 53/24/24
f 99/2/2 98/13/13 2/16/16 3/3/3
f 52/6/6 53/24/24 6/23/23 7/7/7
f 7/7/7 6/23/23 15/25/25 16/26/26
f 217/4/4 3/3/3 59/27/27 77/28/28
f 8/8/8 7/7/7 16/26/26 17/29/29
f 4/30/30 60/31/31 85/32/32 83/33/33
f 2/16/16 1/15/15 10/34/34 58/35/35
f 46/19/19 8/8/8 17/29/29 47/36/36
f 6/23/23 218/22/22 78/37/37 15/25/25
f 3/3/3 2/16/16 58/35/35 59/27/27
f 62/38/38 13/39/39 72/40/40 68/41/41
f 16/26/26 15/25/25 22/42/42 23/43/43
f 27/44/44 28/45/45 74/46/46 70/47/47
f 17/29/29 16/26/26 23/43/43 24/48/48
f 78/37/37 77/28/28 20/49/49 21/50/50
f 58/35/35 10/34/34 18/51/51 61/52/52
f 47/36/36 17/29/29 24/48/48 48/53/53
f 15/25/25 78/37/37 21/50/50 22/42/42
f 48/53/53 24/48/48 32/54/54 49/55/55
f 22/42/42 21/50/50 29/56/56 30/57/57
f 28/45/45 62/38/38 68/41/41 74/46/46
f 23/43/43 22/42/42 30/57/57 31/58/58
f 12/59/59 11/60/60 71/61/61 69/62/62
f 24/48/48 23/43/43 31/58/58 32/54/54
f 21/50/50 20/49/49 65/63/63 29/56/56
f 61/52/52 18/51/51 25/64/64 63/65/65
f 40/66/66 41/67/67 142/68/68 143/69/69
f 63/65/65 25/64/64 139/70/70 140/71/71
f 50/72/72 44/73/73 96/74/74 167/75/75
f 45/76/76 40/66/66 143/69/69 95/77/77
f 64/78/78 63/65/65 140/71/71 141/79/79
f 47/36/36 48/53/53 33/80/80 9/81/81
f 43/82/82 45/76/76 95/77/77 144/83/83
f 65/63/63 64/78/78 141/79/79 142/68/68 41/67/67
f 44/73/73 43/82/82 144/83/83 96/74/74
f 9/81/81 33/80/80 35/84/84 34/85/85
f 33/80/80 42/86/86 145/87/87 149/88/88 35/84/84
f 105/89/89 9/81/81 34/85/85 146/90/90
f 150/91/91 37/92/92 38/93/93 153/94/94 39/95/95 36/96/95
f 146/90/90 34/85/85 37/92/92 150/91/91
f 34/85/85 35/84/84 38/93/93 37/92/92
f 35/84/84 149/88/88 153/94/94 38/93/93
f 32/54/54 31/58/58 43/82/82 44/73/73
f 31/58/58 30/57/57 45/76/76 43/82/82
f 30/57/57 29/56/56 40/66/66 45/76/76
f 49/55/55 32/54/54 44/73/73 50/72/72
f 29/56/56 65/63/63 41/67/67 40/66/66
f 33/80/80 49/55/55 50/72/72 42/86/86
f 42/86/86 50/72/72 167/75/75 145/87/87
f 48/53/53 49/55/55 33/80/80
f 9/81/81 46/19/19 47/36/36
f 105/89/89 162/17/17 46/19/19 9/81/81
f 103/97/96 102/20/20 53/24/24 52/6/6
f 104/18/18 103/97/96 52/6/6 51/5/5
f 1/15/15 97/14/14 172/98/97 54/99/98
f 54/99/98 172/98/97 174/100/99 55/101/100
f 1/15/15 54/99/98 55/101/100 10/34/34
f 25/64/64 18/51/51 56/102/101 57/103/102
f 139/70/70 25/64/64 57/103/102 179/104/103
f 10/34/34 56/102/101 18/51/51
f 57/103/102 56/102/101 10/34/34 176/105/104 179/104/103
f 11/106/60 12/107/59 59/27/27 58/35/35
f 12/107/59 13/108/39 77/28/28 59/27/27
f 19/109/105 11/106/60 58/35/35 61/52/52
f 13/108/39 62/110/38 20/49/49 77/28/28
f 27/111/44 26/112/106 63/65/65 64/78/78
f 28/113/45 27/111/44 64/78/78 65/63/63
f 26/112/106 19/109/105 61/52/52 63/65/65
f 62/110/38 28/113/45 65/63/63 20/49/49
f 69/62/62 71/61/61 66/114/107 67/115/108
f 72/40/40 69/62/62 67/115/108 68/41/41
f 67/115/108 66/114/107 73/116/109 70/47/47
f 68/41/41 67/115/108 70/47/47 74/46/46
f 13/39/39 12/59/59 69/62/62 72/40/40
f 19/117/105 26/118/106 73/116/109 66/114/107
f 26/118/106 27/44/44 70/47/47 73/116/109
f 11/60/60 19/117/105 66/114/107 71/61/61
f 79/119/110 80/120/111 218/22/22 217/4/4
f 82/121/112 81/122/113 77/28/28 78/37/37
f 81/122/113 79/119/110 217/4/4 77/28/28
f 80/120/111 82/121/112 78/37/37 218/22/22
f 4/30/30 5/123/114 80/124/111 79/125/110
f 14/126/115 60/31/31 81/127/113 82/128/112
f 60/31/31 4/30/30 79/125/110 81/127/113
f 5/123/114 14/126/115 82/128/112 80/124/111
f 86/129/116 84/130/117 88/131/118 90/132/119
f 5/123/114 4/30/30 83/33/33 84/130/117
f 14/126/115 5/123/114 84/130/117 86/129/116
f 60/31/31 14/126/115 86/129/116 85/32/32
f 87/133/120 89/134/121 93/135/122 91/136/123
f 85/32/32 86/129/116 90/132/119 89/134/121
f 83/33/33 85/32/32 89/134/121 87/133/120
f 84/130/117 83/33/33 87/133/120 88/131/118
f 92/137/124 91/136/123 93/135/122 94/138/125
f 88/131/118 87/133/120 91/136/123 92/137/124
f 90/132/119 88/131/118 92/137/124 94/138/125
f 89/134/121 90/132/119 94/138/125 93/135/122
f 219/1/1 221/139/126 108/140/127 99/2/2
f 169/141/128 113/142/129 112/143/130 170/144/131
f 220/145/132 198/146/133 226/147/134 224/148/135
f 98/13/13 107/149/136 106/150/137 97/14/14
f 162/17/17 163/151/138 113/142/129 169/141/128 104/18/18
f 102/20/20 171/152/139 111/153/140 222/154/141 101/21/21
f 99/2/2 108/140/127 107/149/136 98/13/13
f 170/144/131 112/143/130 111/153/140 171/152/139
f 112/143/130 121/155/142 120/156/143 111/153/140
f 221/139/126 199/157/144 181/158/145 108/140/127
f 113/142/129 122/159/146 121/155/142 112/143/130
f 109/160/147 205/161/148 207/162/149 182/163/150
f 107/149/136 180/164/151 115/165/152 106/150/137
f 163/151/138 164/166/153 122/159/146 113/142/129
f 111/153/140 120/156/143 200/167/154 222/154/141
f 108/140/127 181/158/145 180/164/151 107/149/136
f 184/168/155 190/169/156 194/170/157 118/171/158
f 121/155/142 128/172/159 127/173/160 120/156/143
f 132/174/161 192/175/162 196/176/163 133/177/164
f 122/159/146 129/178/165 128/172/159 121/155/142
f 200/167/154 126/179/166 125/180/167 199/157/144
f 180/164/151 183/181/168 123/182/169 115/165/152
f 164/166/153 165/183/170 129/178/165 122/159/146
f 120/156/143 127/173/160 126/179/166 200/167/154
f 165/183/170 166/184/171 137/185/172 129/178/165
f 127/173/160 135/186/173 134/187/174 126/179/166
f 133/177/164 196/176/163 190/169/156 184/168/155
f 128/172/159 136/188/175 135/186/173 127/173/160
f 117/189/176 191/190/177 193/191/178 116/192/179
f 129/178/165 137/185/172 136/188/175 128/172/159
f 126/179/166 134/187/174 187/193/180 125/180/167
f 183/181/168 185/194/181 130/195/182 123/182/169
f 156/196/183 143/69/69 142/68/68 157/197/184
f 185/194/181 140/71/71 139/70/70 130/195/182
f 168/198/185 167/75/75 96/74/74 160/199/186
f 161/200/187 95/77/77 143/69/69 156/196/183
f 186/201/188 141/79/79 140/71/71 185/194/181
f 164/166/153 114/202/189 138/203/190 165/183/170
f 159/204/191 144/83/83 95/77/77 161/200/187
f 187/193/180 157/197/184 142/68/68 141/79/79 186/201/188
f 160/199/186 96/74/74 144/83/83 159/204/191
f 114/202/189 147/205/192 148/206/193 138/203/190
f 138/203/190 148/206/193 149/88/88 145/87/87 158/207/194
f 105/89/89 146/90/90 147/205/192 114/202/189
f 150/91/91 151/208/95 155/209/95 153/94/94 154/210/195 152/211/196
f 146/90/90 150/91/91 152/211/196 147/205/192
f 147/205/192 152/211/196 154/210/195 148/206/193
f 148/206/193 154/210/195 153/94/94 149/88/88
f 137/185/172 160/199/186 159/204/191 136/188/175
f 136/188/175 159/204/191 161/200/187 135/186/173
f 135/186/173 161/200/187 156/196/183 134/187/174
f 166/184/171 168/198/185 160/199/186 137/185/172
f 134/187/174 156/196/183 157/197/184 187/193/180
f 138/203/190 158/207/194 168/198/185 166/184/171
f 158/207/194 145/87/87 167/75/75 168/198/185
f 165/183/170 138/203/190 166/184/171
f 114/202/189 164/166/153 163/151/138
f 105/89/89 114/202/189 163/151/138 162/17/17
f 103/97/96 170/144/131 171/152/139 102/20/20
f 104/18/18 169/141/128 170/144/131 103/97/96
f 106/150/137 173/212/197 172/98/97 97/14/14
f 173/212/197 175/213/198 174/100/99 172/98/97
f 106/150/137 115/165/152 175/213/198 173/212/197
f 130/195/182 178/214/199 177/215/200 123/182/169
f 139/70/70 179/104/103 178/214/199 130/195/182
f 115/165/152 123/182/169 177/215/200
f 178/214/199 179/104/103 176/105/104 115/165/152 177/215/200
f 116/216/179 180/164/151 181/158/145 117/217/176
f 117/217/176 181/158/145 199/157/144 118/218/158
f 124/219/201 183/181/168 180/164/151 116/216/179
f 118/218/158 199/157/144 125/180/167 184/220/155
f 132/221/161 186/201/188 185/194/181 131/222/202
f 133/223/164 187/193/180 186/201/188 132/221/161
f 131/222/202 185/194/181 183/181/168 124/219/201
f 184/220/155 125/180/167 187/193/180 133/223/164
f 191/190/177 189/224/203 188/225/204 193/191/178
f 194/170/157 190/169/156 189/224/203 191/190/177
f 189/224/203 192/175/162 195/226/205 188/225/204
f 190/169/156 196/176/163 192/175/162 189/224/203
f 118/171/158 194/170/157 191/190/177 117/189/176
f 124/227/201 188/225/204 195/226/205 131/228/202
f 131/228/202 195/226/205 192/175/162 132/174/161
f 116/192/179 193/191/178 188/225/204 124/227/201
f 201/229/206 221/139/126 222/154/141 202/230/207
f 204/231/208 200/167/154 199/157/144 203/232/209
f 203/232/209 199/157/144 221/139/126 201/229/206
f 202/230/207 222/154/141 200/167/154 204/231/208
f 109/160/147 201/233/206 202/234/207 110/235/210
f 119/236/211 204/237/208 203/238/209 182/163/150
f 182/163/150 203/238/209 201/233/206 109/160/147
f 110/235/210 202/234/207 204/237/208 119/236/211
f 208/239/212 212/240/213 210/241/214 206/242/215
f 110/235/210 206/242/215 205/161/148 109/160/147
f 119/236/211 208/239/212 206/242/215 110/235/210
f 182/163/150 207/162/149 208/239/212 119/236/211
f 209/243/216 213/244/217 215/245/218 211/246/219
f 207/162/149 211/246/219 212/240/213 208/239/212
f 205/161/148 209/243/216 211/246/219 207/162/149
f 206/242/215 210/241/214 209/243/216 205/161/148
f 214/247/220 216/248/221 215/245/218 213/244/217
f 210/241/214 214/247/220 213/244/217 209/243/216
f 212/240/213 216/248/221 214/247/220 210/241/214
f 211/246/219 215/245/218 216/248/221 212/240/213
f 76/249/222 75/10/10 217/4/4 218/22/22
f 75/10/10 100/9/9 219/1/1 217/4/4
f 220/145/132 76/249/222 218/22/22 101/21/21
f 197/250/223 198/146/133 222/154/141 221/139/126
f 100/9/9 197/250/223 221/139/126 219/1/1
f 198/146/133 220/145/132 101/21/21 222/154/141
f 230/251/224 228/252/225 236/253/226 238/254/227
f 198/146/133 197/250/223 225/255/228 226/147/134
f 100/9/9 220/145/132 224/148/135 223/256/229
f 197/250/223 100/9/9 223/256/229 225/255/228
f 225/257/228 223/258/229 231/259/230 233/260/231
f 220/145/132 100/9/9 227/12/12 228/261/225
f 76/249/222 220/145/132 228/261/225 230/262/224
f 75/10/10 76/249/222 230/262/224 229/11/11
f 232/263/232 234/264/233 233/260/231 231/259/230
f 236/253/226 235/265/234 237/266/235 238/254/227
f 223/258/229 224/267/135 232/263/232 231/259/230
f 229/268/11 230/251/224 238/254/227 237/266/235
f 224/267/135 226/269/134 234/264/233 232/263/232
f 226/269/134 225/257/228 233/260/231 234/264/233
f 227/270/12 229/268/11 237/266/235 235/265/234
f 228/252/225 227/270/12 235/265/234 236/253/226

View File

@ -21,8 +21,14 @@ Core::RenderContext seafloorContext;
Core::RenderContext shipContext;
Core::RenderContext sphereContext;
Core::RenderContext firstFishContext;
Core::RenderContext secondFishContext;
Core::RenderContext thirdFishContext;
Core::RenderContext seaTurtleContext;
Core::RenderContext crabContext;
glm::vec3 firstFishPositions[15];
int firstFishPositions[15][3];
int secondFishPositions[15][3];
int thirdFishPositions[15][3];
float firstFishSpreadFactor = 15.0;
glm::vec2 previousMousePosition = glm::vec2(0, 0);
@ -40,6 +46,10 @@ glm::quat rotation = glm::quat(1, 0, 0, 0);
GLuint textureSkybox;
GLuint textureFirstFish;
GLuint textureSecondFish;
GLuint textureThirdFish;
GLuint textureSeaTurtle;
GLuint textureCrab;
void keyboard(unsigned char key, int x, int y)
{
@ -128,15 +138,21 @@ void renderScene()
float time = glutGet(GLUT_ELAPSED_TIME) / 1000.f;
glm::mat4 shipInitialTransformation = glm::translate(glm::vec3(0,-0.25f,0)) * glm::rotate(glm::radians(180.0f), glm::vec3(0,1,0)) * glm::scale(glm::vec3(0.25f));
glm::mat4 shipInitialTransformation = glm::translate(glm::vec3(0,-0.25f,-2)) * glm::rotate(glm::radians(180.0f), glm::vec3(0,1,0)) * glm::scale(glm::vec3(0.25f));
glm::mat4 shipModelMatrix = glm::translate(cameraPos + cameraDir * 0.5f) * glm::mat4_cast(glm::inverse(rotation)) * shipInitialTransformation;
drawObjectColor(shipContext, shipModelMatrix, glm::vec3(0.6f));
drawObjectColor(seafloorContext, glm::translate(glm::vec3(0,-15,0)) * glm::scale(glm::vec3(5.0f, 1.0f, 5.0f)), glm::vec3(0.7098f, 0.7098f, 0.7098f));
//drawObjectColor(skyboxContext, glm::translate(glm::vec3(0, -15, 0)) * glm::scale(glm::vec3(1.0f, 1.0f, 1.0f)), glm::vec3(0.7098f, 0.7098f, 0.7098f));
drawObjectTexture(skyboxContext, glm::translate(glm::vec3(0, -15, 0)) * glm::scale(glm::vec3(1.0f, 1.0f, 1.0f)), textureSkybox);
for (int i = 0; i < 15; i++) drawObjectTexture(firstFishContext, glm::eulerAngleY(time / 2) * glm::translate(glm::vec3(-5, 0, 0)) * glm::translate(firstFishPositions[i]) * glm::scale(glm::vec3(0.6f)), textureFirstFish);
drawObjectTexture(seaTurtleContext, glm::translate(glm::vec3(0, cos(time) - 3, 0)) * glm::rotate(glm::radians(270.f), glm::vec3(1, 0, 0)) * glm::scale(glm::vec3(0.015f)), textureSeaTurtle);
drawObjectTexture(crabContext, glm::translate(glm::vec3(cos(time / 7) * 10, -13, 0)) * glm::rotate(glm::radians(270.f), glm::vec3(1, 0, 0)) * glm::scale(glm::vec3(0.2f)), textureCrab);
for (int i = 0; i < 15; i++) drawObjectTexture(firstFishContext, glm::translate(glm::vec3(firstFishPositions[i][0], firstFishPositions[i][1], firstFishPositions[i][2])) * glm::eulerAngleY(time / 3) * glm::translate(glm::vec3(-20, 0, 0)) * glm::rotate(glm::radians(cos(8 * time) * 8), glm::vec3(0, 1, 0)) * glm::scale(glm::vec3(0.6f)), textureFirstFish);
for (int i = 0; i < 15; i++) drawObjectTexture(secondFishContext, glm::translate(glm::vec3(secondFishPositions[i][0], secondFishPositions[i][1], secondFishPositions[i][2])) * glm::eulerAngleY(float(-time / 1.75)) * glm::translate(glm::vec3(20, 0, 0)) * glm::rotate(glm::radians(cos(10 * time) * 12), glm::vec3(0, 1, 0)) * glm::rotate(glm::radians(90.f), glm::vec3(0, 1, 0)) * glm::rotate(glm::radians(270.f), glm::vec3(1, 0, 0)) * glm::scale(glm::vec3(0.1f)), textureSecondFish);
for (int i = 0; i < 15; i++) drawObjectTexture(thirdFishContext, glm::translate(glm::vec3(thirdFishPositions[i][0], thirdFishPositions[i][1], thirdFishPositions[i][2])) * glm::eulerAngleY(float(time / 2.5)) * glm::translate(glm::vec3(-20, 0, 0)) * glm::rotate(glm::radians(cos(8 * time) * 8), glm::vec3(0, 1, 0)) * glm::scale(glm::vec3(0.5f)), textureThirdFish);
glutSwapBuffers();
}
@ -163,9 +179,29 @@ void init()
loadModelToContext("models/seafloor.obj", seafloorContext);
loadModelToContext("models/skybox.obj", skyboxContext);
loadModelToContext("models/first_fish.obj", firstFishContext);
loadModelToContext("models/second_fish.obj", secondFishContext);
loadModelToContext("models/third_fish.obj", thirdFishContext);
loadModelToContext("models/sea_turtle.obj", seaTurtleContext);
loadModelToContext("models/crab.obj", crabContext);
textureSkybox = Core::LoadTexture("textures/skybox.png");
textureFirstFish = Core::LoadTexture("textures/first_fish.png");
for (int i = 0; i < 15; i++) firstFishPositions[i] = glm::ballRand(firstFishSpreadFactor);
textureSecondFish = Core::LoadTexture("textures/second_fish.png");
textureThirdFish = Core::LoadTexture("textures/third_fish.png");
textureSeaTurtle = Core::LoadTexture("textures/sea_turtle.png");
textureCrab = Core::LoadTexture("textures/crab.png");
for (int i = 0; i < 15; i++) {
firstFishPositions[i][0] = rand() % 30 - 15;
firstFishPositions[i][1] = rand() % 25 - 10;
firstFishPositions[i][2] = rand() % 50 - 25;
secondFishPositions[i][0] = rand() % 30 - 15;
secondFishPositions[i][1] = rand() % 25 - 10;
secondFishPositions[i][2] = rand() % 50 - 25;
thirdFishPositions[i][0] = rand() % 30 - 15;
thirdFishPositions[i][1] = rand() % 25 - 10;
thirdFishPositions[i][2] = rand() % 50 - 25;
}
}
void shutdown()

BIN
cw 6/textures/crab.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 932 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 KiB