From d3a113f9cae82cfcba464c3c548e62ef89c97095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o?= <matteo.herry6@etu.univ-lorraine.fr> Date: Tue, 11 Feb 2025 17:25:23 +0100 Subject: [PATCH] Ajout fichier .JS --- HERRY-M--HERRY-E/TABLO.js | 44 +++++++++++++++++++++++++++++++++++++ HERRY-M--HERRY-E/index.html | 4 ++-- 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 HERRY-M--HERRY-E/TABLO.js diff --git a/HERRY-M--HERRY-E/TABLO.js b/HERRY-M--HERRY-E/TABLO.js new file mode 100644 index 0000000..153766c --- /dev/null +++ b/HERRY-M--HERRY-E/TABLO.js @@ -0,0 +1,44 @@ +"use strict"; + +// IMPORTS +import * as THREE from 'three'; +import { TWEEN } from 'https://unpkg.com/three@0.139.0/examples/jsm/libs/tween.module.min.js'; +import { OBJLoader } from 'three/addons/loaders/OBJLoader.js'; +import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; +import { dat } from '../lib/dat.gui.min.js'; +import { Coordinates } from '../lib/Coordinates.js'; + +// DECLARATIONS +var camera, scene, renderer; +var windowScale; +var cameraControls, effectController; +var clock = new THREE.Clock(); +var gridX = true; +var gridY = false; +var gridZ = false; +var axes = true; +var ground = true; + +function init(){ + +} + +function fillscene(){ + +} + +function animate(){ + +} + +function render(){ + +} + +try { + init(); + animate(); +} catch (e) { + var errorReport = "Your program encountered an unrecoverable error, can not draw on canvas. Error was:<br/><br/>"; + $('#webGL').append(errorReport + e); +} \ No newline at end of file diff --git a/HERRY-M--HERRY-E/index.html b/HERRY-M--HERRY-E/index.html index d610878..2fe952c 100644 --- a/HERRY-M--HERRY-E/index.html +++ b/HERRY-M--HERRY-E/index.html @@ -29,7 +29,7 @@ <h1 class="centre"> HERRY Mattéo - HERRY Elwyn</h1> <div id="webGL" class="centre"></div> <!-- Mon script avec un chemin relatif --> - <script type="module" src="exo2.js"></script> - <p class="centre"> Exercice 1 </p> + <script type="module" src="TABLO.js"></script> + <p class="centre"> LE TABLO</p> </body> </html> \ No newline at end of file -- GitLab