Skip to content
Snippets Groups Projects
Commit edcbc95a authored by COLIN Gabin's avatar COLIN Gabin
Browse files
parents c456211e 0b363719
No related branches found
No related tags found
No related merge requests found
Showing
with 517 additions and 1 deletion
HERRY-M--HERRY-E/textures/nx.png

62.1 KiB | W: | H:

HERRY-M--HERRY-E/textures/nx.png

33.5 KiB | W: | H:

HERRY-M--HERRY-E/textures/nx.png
HERRY-M--HERRY-E/textures/nx.png
HERRY-M--HERRY-E/textures/nx.png
HERRY-M--HERRY-E/textures/nx.png
  • 2-up
  • Swipe
  • Onion skin
HERRY-M--HERRY-E/textures/ny.png

114 KiB | W: | H:

HERRY-M--HERRY-E/textures/ny.png

61.5 KiB | W: | H:

HERRY-M--HERRY-E/textures/ny.png
HERRY-M--HERRY-E/textures/ny.png
HERRY-M--HERRY-E/textures/ny.png
HERRY-M--HERRY-E/textures/ny.png
  • 2-up
  • Swipe
  • Onion skin
HERRY-M--HERRY-E/textures/nz.png

104 KiB | W: | H:

HERRY-M--HERRY-E/textures/nz.png

57.1 KiB | W: | H:

HERRY-M--HERRY-E/textures/nz.png
HERRY-M--HERRY-E/textures/nz.png
HERRY-M--HERRY-E/textures/nz.png
HERRY-M--HERRY-E/textures/nz.png
  • 2-up
  • Swipe
  • Onion skin
HERRY-M--HERRY-E/textures/px.png

95.7 KiB | W: | H:

HERRY-M--HERRY-E/textures/px.png

54 KiB | W: | H:

HERRY-M--HERRY-E/textures/px.png
HERRY-M--HERRY-E/textures/px.png
HERRY-M--HERRY-E/textures/px.png
HERRY-M--HERRY-E/textures/px.png
  • 2-up
  • Swipe
  • Onion skin
HERRY-M--HERRY-E/textures/py.png

104 KiB | W: | H:

HERRY-M--HERRY-E/textures/py.png

49.8 KiB | W: | H:

HERRY-M--HERRY-E/textures/py.png
HERRY-M--HERRY-E/textures/py.png
HERRY-M--HERRY-E/textures/py.png
HERRY-M--HERRY-E/textures/py.png
  • 2-up
  • Swipe
  • Onion skin
HERRY-M--HERRY-E/textures/pz.png

28.9 KiB | W: | H:

HERRY-M--HERRY-E/textures/pz.png

28.1 KiB | W: | H:

HERRY-M--HERRY-E/textures/pz.png
HERRY-M--HERRY-E/textures/pz.png
HERRY-M--HERRY-E/textures/pz.png
HERRY-M--HERRY-E/textures/pz.png
  • 2-up
  • Swipe
  • Onion skin
# Created by Kenney (www.kenney.nl)
newmtl brownDark
Kd 0.60 0.22 0.11
newmtl brownLight
Kd 0.98 0.65 0.37
newmtl white
Kd 0.15 0.71 0.45
# Created by Kenney (www.kenney.nl)
mtllib peanutButter.mtl
g peanutButter
v 0.08019084 0.261 0.08019084
v 1.082867E-15 0.261 0.113407
v 0.08019084 0.2958 0.08019084
v 1.082867E-15 0.2958 0.113407
v 0.08019084 0.2958 -0.08019084
v 0.08019084 0.261 -0.08019084
v 0.113407 0.2958 0
v 0.113407 0.261 0
v -0.08019084 0.261 -0.08019084
v 1.082867E-15 0.261 -0.113407
v -0.08019084 0.2958 -0.08019084
v 1.082867E-15 0.2958 -0.113407
v -0.08019084 0.261 0.08019084
v -0.08019084 0.2958 0.08019084
v -0.113407 0.261 0
v -0.113407 0.2958 0
v 0.08444745 0.2784 7.219114E-16
v 0.05971336 0.2784 0.05971336
v 0.05971336 0.2784 -0.05971336
v 1.443823E-15 0.2784 -0.08444745
v 1.443823E-15 0.2784 0.08444745
v -0.05971336 0.2784 -0.05971336
v -0.05971336 0.2784 0.05971336
v -0.08444745 0.2784 7.219114E-16
v 1.082867E-15 0.2958 -0.09706604
v -0.06863604 0.2958 -0.06863604
v 1.082867E-15 0.2958 0.09706604
v 0.06863604 0.2958 0.06863604
v -0.09706604 0.2958 0
v 0.09706604 0.2958 0
v -0.06863604 0.2958 0.06863604
v 0.06863604 0.2958 -0.06863604
v -0.1002762 0.261 0
v -0.07090598 0.261 0.07090598
v -0.07090598 0.261 -0.07090598
v 1.082867E-15 0.261 0.1002762
v 0.07090598 0.261 0.07090598
v 1.082867E-15 0.261 -0.1002762
v 0.07090598 0.261 -0.07090598
v 0.1002762 0.261 0
v 0.117972 0.2262 0
v 0.0834188 0.2262 0.0834188
v 0.1002762 0.2436 0
v 0.07090598 0.2436 0.07090598
v -0.07090598 0.2436 -0.07090598
v -0.1002762 0.2436 0
v 7.219114E-16 0.2262 0.117972
v 1.082867E-15 0.2436 0.1002762
v 0.0834188 0.2262 -0.0834188
v 0.07090598 0.2436 -0.07090598
v 1.082867E-15 0.2436 -0.1002762
v -0.07090598 0.2436 0.07090598
v -0.0834188 0.2262 -0.0834188
v -0.117972 0.2262 0
v -0.0834188 0.2262 0.0834188
v 7.219114E-16 0.2262 -0.117972
v 0.0834188 0.202275 0.0834188
v 7.219114E-16 0.202275 0.117972
v 0.117972 0.0348 0
v 0.1044 0 7.219114E-16
v 0.0834188 0.0348 0.0834188
v 0.07382195 0 0.07382195
v -0.0834188 0.202275 0.0834188
v -3.609557E-16 0 0.1044
v -0.07382195 0 0.07382195
v 7.219114E-16 0.0348 0.117972
v -0.0834188 0.0348 0.0834188
v -3.609557E-16 0 -0.1044
v 0.07382195 0 -0.07382195
v 7.219114E-16 0.0348 -0.117972
v 0.0834188 0.0348 -0.0834188
v -0.07382195 0 -0.07382195
v -0.1044 0 7.219114E-16
v 0.117972 0.058725 0
v 0.0834188 0.058725 0.0834188
v 7.219114E-16 0.058725 0.117972
v -0.0834188 0.0348 -0.0834188
v -0.0834188 0.058725 -0.0834188
v 7.219114E-16 0.058725 -0.117972
v -0.117972 0.0348 0
v -0.117972 0.058725 0
v -0.0834188 0.058725 0.0834188
v 7.219114E-16 0.202275 -0.117972
v 0.0834188 0.202275 -0.0834188
v 0.117972 0.202275 0
v 0.0834188 0.058725 -0.0834188
v -0.0834188 0.202275 -0.0834188
v -0.117972 0.202275 0
vn 0.7071068 0 0.7071068
vn 0 0 1
vn 0.7071068 0 -0.7071068
vn 1 0 0
vn -0.7071068 0 -0.7071068
vn 0 0 -1
vn -0.7071068 0 0.7071068
vn -1 0 0
vn 0 1 0
vn 0 0.5870768 0.8095312
vn 0.572425 0.5870768 0.572425
vn 0 0.5870768 -0.8095312
vn -0.572425 0.5870768 -0.572425
vn 0.8095312 0.5870768 0
vn -0.8095312 0.5870768 0
vn 0.572425 0.5870768 -0.572425
vn -0.572425 0.5870768 0.572425
vn 0 -1 0
vn 0.7011221 0.7130412 0
vn 0.4957682 0.7130412 0.4957682
vn 0 0.7130412 0.7011221
vn 0.4957682 0.7130412 -0.4957682
vn -0.4957682 0.7130412 -0.4957682
vn -0.7011221 0.7130412 0
vn -0.4957682 0.7130412 0.4957682
vn 0 0.7130412 -0.7011221
vn 0.9316545 -0.3633452 0
vn 0.6587793 -0.3633452 0.6587793
vn 0 -0.3633452 0.9316545
vn -0.6587793 -0.3633452 0.6587793
vn 0 -0.3633452 -0.9316545
vn 0.6587793 -0.3633452 -0.6587793
vn -0.6587793 -0.3633452 -0.6587793
vn -0.9316545 -0.3633452 0
vt 1.708621 10.27559
vt -1.708621 10.27559
vt 1.708621 11.64567
vt -1.708621 11.64567
vt -3.324703 2.842171E-14
vt -2.35092 2.35092
vt -2.35092 -2.35092
vt -5.684342E-14 -3.324703
vt -5.684342E-14 3.324703
vt 2.35092 -2.35092
vt 2.35092 2.35092
vt 3.324703 2.842171E-14
vt 1.272309 10.81547
vt -1.272309 10.81547
vt 1.462424 11.64005
vt -1.462424 11.64005
vt -4.464842 0
vt -3.15712 3.15712
vt -3.947882 0
vt -3.15712 -3.15712
vt -2.791574 2.791574
vt -2.791574 -2.791574
vt 4.263256E-14 3.947882
vt 4.263256E-14 4.464842
vt 2.791574 2.791574
vt 3.15712 3.15712
vt 4.263256E-14 -4.464842
vt 4.263256E-14 -3.947882
vt 2.791574 -2.791574
vt 3.15712 -3.15712
vt 3.947882 0
vt 4.464842 0
vt 2.702207 -2.702207
vt -4.263256E-14 -3.821497
vt 3.821497 0
vt -4.263256E-14 -4.464842
vt -2.702207 -2.702207
vt 2.702207 2.702207
vt -3.821497 0
vt -2.702207 2.702207
vt -4.263256E-14 4.464842
vt -4.263256E-14 3.821497
vt 1.777399 3.55187
vt -1.777399 3.55187
vt 1.510789 4.491853
vt -1.510789 4.491853
vt -1.510789 9.590551
vt -1.510789 10.27559
vt 1.510789 9.590551
vt 1.510789 10.27559
vt 1.777399 7.963583
vt -1.777399 7.963583
vt 1.777399 8.905512
vt -1.777399 8.905512
vt 1.777399 2.743532
vt 1.572919 1.287231
vt -1.777399 2.743532
vt -1.572919 1.287231
vt 4.110236 2.842171E-14
vt 2.906376 -2.906376
vt 2.906376 2.906376
vt -1.421085E-14 4.110236
vt -1.421085E-14 -4.110236
vt -2.906376 2.906376
vt -2.906376 -2.906376
vt -4.110236 2.842171E-14
vt 1.777399 2.312008
vt 1.777399 1.370079
vt -1.777399 2.312008
vt -1.777399 1.370079
usemtl brownDark
f 3/3/1 2/2/2 1/1/1
f 2/2/2 3/3/1 4/4/2
f 7/4/4 6/1/3 5/3/3
f 6/1/3 7/4/4 8/2/4
f 11/3/5 10/2/6 9/1/5
f 10/2/6 11/3/5 12/4/6
f 4/3/2 13/2/7 2/1/2
f 13/2/7 4/3/2 14/4/7
f 12/3/6 6/2/3 10/1/6
f 6/2/3 12/3/6 5/4/3
f 3/4/1 8/1/4 7/3/4
f 8/1/4 3/4/1 1/2/1
f 15/1/8 11/4/5 9/2/5
f 11/4/5 15/1/8 16/3/8
f 19/7/9 18/6/9 17/5/9
f 18/6/9 19/7/9 20/8/9
f 18/6/9 20/8/9 21/9/9
f 21/9/9 20/8/9 22/10/9
f 21/9/9 22/10/9 23/11/9
f 23/11/9 22/10/9 24/12/9
f 25/15/10 22/14/11 20/13/10
f 22/14/11 25/15/10 26/16/11
f 27/15/12 18/14/13 21/13/12
f 18/14/13 27/15/12 28/16/13
f 29/16/14 22/13/11 26/15/11
f 22/13/11 29/16/14 24/14/14
f 17/14/15 28/15/13 30/16/15
f 28/15/13 17/14/15 18/13/13
f 31/16/16 24/13/14 29/15/14
f 24/13/14 31/16/16 23/14/16
f 32/15/17 20/14/10 19/13/17
f 20/14/10 32/15/17 25/16/10
f 13/1/7 16/4/8 15/2/8
f 16/4/8 13/1/7 14/3/7
f 19/14/17 30/15/15 32/16/17
f 30/15/15 19/14/17 17/13/15
f 31/15/16 21/14/12 23/13/16
f 21/14/12 31/15/16 27/16/12
f 33/19/18 13/18/18 15/17/18
f 9/20/18 33/19/18 15/17/18
f 34/21/18 13/18/18 33/19/18
f 9/20/18 35/22/18 33/19/18
f 36/23/18 13/18/18 34/21/18
f 36/23/18 2/24/18 13/18/18
f 37/25/18 2/24/18 36/23/18
f 37/25/18 1/26/18 2/24/18
f 10/27/18 35/22/18 9/20/18
f 10/27/18 38/28/18 35/22/18
f 10/27/18 39/29/18 38/28/18
f 6/30/18 39/29/18 10/27/18
f 40/31/18 1/26/18 37/25/18
f 6/30/18 40/31/18 39/29/18
f 1/26/18 40/31/18 8/32/18
f 40/31/18 6/30/18 8/32/18
f 25/34/9 11/30/9 26/33/9
f 26/33/9 11/30/9 29/35/9
f 25/34/9 12/36/9 11/30/9
f 29/35/9 11/30/9 16/32/9
f 32/37/9 12/36/9 25/34/9
f 14/26/9 29/35/9 16/32/9
f 32/37/9 5/20/9 12/36/9
f 14/26/9 31/38/9 29/35/9
f 30/39/9 5/20/9 32/37/9
f 5/20/9 30/39/9 7/17/9
f 30/39/9 3/18/9 7/17/9
f 3/18/9 30/39/9 28/40/9
f 4/41/9 31/38/9 14/26/9
f 3/18/9 28/40/9 4/41/9
f 4/41/9 27/42/9 31/38/9
f 4/41/9 28/40/9 27/42/9
usemtl brownLight
f 43/45/19 42/44/20 41/43/19
f 42/44/20 43/45/19 44/46/20
f 46/49/8 35/48/5 45/47/5
f 35/48/5 46/49/8 33/50/8
f 44/45/20 47/44/21 42/43/20
f 47/44/21 44/45/20 48/46/21
f 49/43/22 43/46/19 41/44/19
f 43/46/19 49/43/22 50/45/22
f 38/50/6 50/47/3 51/49/6
f 50/47/3 38/50/6 39/48/3
f 52/49/7 33/48/8 46/47/8
f 33/48/8 52/49/7 34/50/7
f 53/44/23 46/45/24 45/46/23
f 46/45/24 53/44/23 54/43/24
f 37/48/1 43/49/4 40/50/4
f 43/49/4 37/48/1 44/47/1
f 35/50/5 51/47/6 45/49/5
f 51/47/6 35/50/5 38/48/6
f 36/50/2 52/47/7 48/49/2
f 52/47/7 36/50/2 34/48/7
f 52/46/25 47/43/21 48/45/21
f 47/43/21 52/46/25 55/44/25
f 40/48/4 50/49/3 39/50/3
f 50/49/3 40/48/4 43/47/4
f 37/50/1 48/47/2 44/49/1
f 48/47/2 37/50/1 36/48/2
f 46/46/24 55/43/25 52/45/25
f 55/43/25 46/46/24 54/44/24
f 56/43/26 50/46/22 49/44/22
f 50/46/22 56/43/26 51/45/26
f 56/44/26 45/45/23 51/46/26
f 45/45/23 56/44/26 53/43/23
f 42/53/1 58/52/2 57/51/1
f 58/52/2 42/53/1 47/54/2
f 61/57/28 60/56/27 59/55/27
f 60/56/27 61/57/28 62/58/28
f 47/53/2 63/52/7 58/51/2
f 63/52/7 47/53/2 55/54/7
f 66/55/29 65/58/30 64/56/29
f 65/58/30 66/55/29 67/57/30
f 70/55/31 69/58/32 68/56/31
f 69/58/32 70/55/31 71/57/32
f 62/61/18 69/60/18 60/59/18
f 69/60/18 62/61/18 64/62/18
f 69/60/18 64/62/18 68/63/18
f 68/63/18 64/62/18 65/64/18
f 68/63/18 65/64/18 72/65/18
f 72/65/18 65/64/18 73/66/18
f 75/69/1 59/68/4 74/67/4
f 59/68/4 75/69/1 61/70/1
f 75/67/1 66/70/2 61/68/1
f 66/70/2 75/67/1 76/69/2
f 78/67/5 70/70/6 77/68/5
f 70/70/6 78/67/5 79/69/6
f 67/68/7 81/69/8 80/70/8
f 81/69/8 67/68/7 82/67/7
f 56/53/6 84/52/3 83/51/6
f 84/52/3 56/53/6 49/54/3
f 41/54/4 84/51/3 49/53/3
f 84/51/3 41/54/4 85/52/4
f 74/69/4 71/68/3 86/67/3
f 71/68/3 74/69/4 59/70/4
f 79/67/6 71/70/3 70/68/6
f 71/70/3 79/67/6 86/69/3
f 77/55/33 68/58/31 72/56/33
f 68/58/31 77/55/33 70/57/31
f 88/51/8 53/54/5 87/52/5
f 53/54/5 88/51/8 54/53/8
f 61/55/28 64/58/29 62/56/28
f 64/58/29 61/55/28 66/57/29
f 59/57/27 69/56/32 71/55/32
f 69/56/32 59/57/27 60/58/27
f 73/58/34 67/55/30 80/57/34
f 67/55/30 73/58/34 65/56/30
f 80/68/8 78/69/5 77/70/5
f 78/69/5 80/68/8 81/67/8
f 76/67/2 67/70/7 66/68/2
f 67/70/7 76/67/2 82/69/7
f 42/54/1 85/51/4 41/53/4
f 85/51/4 42/54/1 57/52/1
f 53/53/5 83/52/6 87/51/5
f 83/52/6 53/53/5 56/54/6
f 63/51/7 54/54/8 88/52/8
f 54/54/8 63/51/7 55/53/7
f 72/58/33 80/55/34 77/57/33
f 80/55/34 72/58/33 73/56/34
usemtl green
f 57/52/1 74/67/4 85/51/4
f 74/67/4 57/52/1 75/69/1
f 83/51/6 86/69/3 79/67/6
f 86/69/3 83/51/6 84/52/3
f 58/51/2 82/69/7 76/67/2
f 82/69/7 58/51/2 63/52/7
f 85/52/4 86/67/3 84/51/3
f 86/67/3 85/52/4 74/69/4
f 87/51/5 79/69/6 78/67/5
f 79/69/6 87/51/5 83/52/6
f 82/67/7 88/52/8 81/69/8
f 88/52/8 82/67/7 63/51/7
f 81/67/8 87/52/5 78/69/5
f 87/52/5 81/67/8 88/51/8
f 57/51/1 76/69/2 75/67/1
f 76/69/2 57/51/1 58/52/2
- [x] Esthetisme
- [x] Mise en page de la page web
- [ ] Paragraphe(s) d'explications techniques
- [x] Légèreté du dossier (<2Mo) (pour l'instant + que push ce qui necesaire)
- [x] Géométrie
- [x] Couleur
- [x] Transparence
- [x] Eclairage
- [x] Ombres
- [x] Position de la caméra
- [ ] Brouillard
- [x] Effet miroir
- [x] Texture classique
- [x] Texture avec transparence
- [x] Sprites
- [x] Environment map
- [x] Skybox
- [x] Animations
- [x] normal maps
- [x] Interaction par GUI
import * as THREE from 'three';
/** Adds crows to the scene */
export class Crow {
static async addCrows(scene, count = 100) {
const shape = new THREE.Shape();
shape.moveTo(0, 0);
shape.lineTo(-1, 2);
shape.lineTo(0, 1.5);
shape.lineTo(1, 2);
shape.lineTo(0, 0);
const extrudeSettings = {
depth: 0.2,
bevelEnabled: false
};
// body of the crow
const crowGeometry = new THREE.ExtrudeGeometry(shape, extrudeSettings);
const crowMaterial = new THREE.MeshLambertMaterial({ color: 0x000000 });
// wing of the crow
const wingGeometry = new THREE.BoxGeometry(1.0, 0.5, 0.1);
const wingMaterial = new THREE.MeshLambertMaterial({ color: 0x000000 });
for (let i = 0; i < count; i++) {
const crow = new THREE.Mesh(crowGeometry, crowMaterial);
// Enable shadows for crow body
crow.castShadow = true;
crow.receiveShadow = true;
//setup both wings for the crow
const leftWing = new THREE.Mesh(wingGeometry, wingMaterial);
leftWing.position.set(-0.9, 1.8, 0);
leftWing.rotation.z = 0.4;
// Enable shadows for wings
leftWing.castShadow = true;
leftWing.receiveShadow = true;
crow.add(leftWing);
const rightWing = new THREE.Mesh(wingGeometry, wingMaterial);
rightWing.position.set(0.9, 1.8, 0);
rightWing.rotation.z = -0.4;
// Enable shadows for wings
rightWing.castShadow = true;
rightWing.receiveShadow = true;
crow.add(rightWing);
// Random position in the sky
crow.position.set(
(Math.random() - Math.random()) * 500,
Math.random() * 200,
(Math.random() - Math.random()) * 500
);
scene.add(crow);
}
}
}
\ No newline at end of file
NIRRENGARTEN/img.jpg

12.1 KiB | W: | H:

NIRRENGARTEN/img.jpg

622 KiB | W: | H:

NIRRENGARTEN/img.jpg
NIRRENGARTEN/img.jpg
NIRRENGARTEN/img.jpg
NIRRENGARTEN/img.jpg
  • 2-up
  • Swipe
  • Onion skin
NIRRENGARTEN/img/height.jpg

60 KiB

NIRRENGARTEN/img/normal.png

690 KiB

NIRRENGARTEN/img/skybox/day_nx.png

46.3 KiB

NIRRENGARTEN/img/skybox/day_ny.png

39.6 KiB

NIRRENGARTEN/img/skybox/day_nz.png

45.7 KiB

NIRRENGARTEN/img/skybox/day_px.png

58.6 KiB

NIRRENGARTEN/img/skybox/day_py.png

67.5 KiB

NIRRENGARTEN/img/skybox/day_pz.png

59.4 KiB

Le travail n'a pas encore commencé!!!
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Champs de blé aux corbeaux</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- API importe du site de Three.js -->
<script async src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports":
{
"three": "https://threejs.org/build/three.module.js",
"three/addons/": "https://threejs.org/examples/jsm/"
}
}
</script>
<!-- JQuery pour afficher les erreurs -->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<!-- Un titre centre -->
<h1 class="centre">Champs de blé aux corbeau (WIP)</h1>
<div class="render">
<img class="background" src="img/Champs2BleOcorbeaux.jpg">
<div id="webGL" class="centre"></div>
<!-- Mon script avec un chemin relatif -->
<script type="module" src="paint.js"></script>
</div>
<div class="divider"></div>
<div class="tableau">
<img class="tableau-img" src="img/Champs2BleOcorbeaux.jpg" alt="tableau du champs">
<div class="tableau-presentation">
<p>Super stylé le tableau</p>
</div>
</div>
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment