TA159

Notas, resueltos y trabajos practicos de la materia Sistemas Gráficos
Index Commits Files Refs Submodules README LICENSE
commit b28ba415d635335475cd38e341d29972027900be
parent fc680efdaf15d085d537f746a4105d8bc48efc13
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date:   Fri,  5 Jul 2024 13:51:42 -0300

move `assets` folder to `public`

Diffstat:
Rtp/assets/durmientes.jpg -> tp/public/durmientes.jpg | 0
Rtp/assets/elevation_map.png -> tp/public/elevation_map.png | 0
Rtp/assets/elevation_map2.png -> tp/public/elevation_map2.png | 0
Rtp/assets/elevation_map3.png -> tp/public/elevation_map3.png | 0
Rtp/assets/elevation_map_wider_river.png -> tp/public/elevation_map_wider_river.png | 0
Rtp/assets/madera.jpg -> tp/public/madera.jpg | 0
Rtp/assets/pared-de-ladrillos.jpg -> tp/public/pared-de-ladrillos.jpg | 0
Rtp/assets/pasto.jpg -> tp/public/pasto.jpg | 0
Rtp/assets/roca.jpg -> tp/public/roca.jpg | 0
Rtp/assets/sky_day_void.jpg -> tp/public/sky_day_void.jpg | 0
Rtp/assets/tierra.jpg -> tp/public/tierra.jpg | 0
Rtp/assets/tierraSeca.jpg -> tp/public/tierraSeca.jpg | 0
Rtp/assets/tree_forbidden_zone_map.png -> tp/public/tree_forbidden_zone_map.png | 0
Rtp/assets/tree_forbidden_zone_map_wider_path.png -> tp/public/tree_forbidden_zone_map_wider_path.png | 0
Mtp/src/bridge.js | 4++--
Mtp/src/rails.js | 8++++----
Mtp/src/scene.js | 16++++++++--------
Mtp/src/standalone/bridge.js | 4++--
Mtp/src/standalone/rails.js | 8++++----
Mtp/src/standalone/terrain.js | 8++++----
Mtp/src/standalone/track-map.js | 10+++++-----
Mtp/src/standalone/trees.js | 6+++---
Mtp/src/standalone/tunnel.js | 2+-
Mtp/src/terrain.js | 8++++----
Mtp/src/trees.js | 4++--
25 files changed, 39 insertions(+), 39 deletions(-)
diff --git a/tp/assets/durmientes.jpg b/tp/public/durmientes.jpg
Binary files differ.
diff --git a/tp/assets/elevation_map.png b/tp/public/elevation_map.png
Binary files differ.
diff --git a/tp/assets/elevation_map2.png b/tp/public/elevation_map2.png
Binary files differ.
diff --git a/tp/assets/elevation_map3.png b/tp/public/elevation_map3.png
Binary files differ.
diff --git a/tp/assets/elevation_map_wider_river.png b/tp/public/elevation_map_wider_river.png
Binary files differ.
diff --git a/tp/assets/madera.jpg b/tp/public/madera.jpg
Binary files differ.
diff --git a/tp/assets/pared-de-ladrillos.jpg b/tp/public/pared-de-ladrillos.jpg
Binary files differ.
diff --git a/tp/assets/pasto.jpg b/tp/public/pasto.jpg
Binary files differ.
diff --git a/tp/assets/roca.jpg b/tp/public/roca.jpg
Binary files differ.
diff --git a/tp/assets/sky_day_void.jpg b/tp/public/sky_day_void.jpg
Binary files differ.
diff --git a/tp/assets/tierra.jpg b/tp/public/tierra.jpg
Binary files differ.
diff --git a/tp/assets/tierraSeca.jpg b/tp/public/tierraSeca.jpg
Binary files differ.
diff --git a/tp/assets/tree_forbidden_zone_map.png b/tp/public/tree_forbidden_zone_map.png
Binary files differ.
diff --git a/tp/assets/tree_forbidden_zone_map_wider_path.png b/tp/public/tree_forbidden_zone_map_wider_path.png
Binary files differ.
diff --git a/tp/src/bridge.js b/tp/src/bridge.js
@@ -2,8 +2,8 @@ import * as THREE from 'three';
 import { mergeGeometries } from 'three/addons/utils/BufferGeometryUtils.js';
 
 const textures = {
-    tierra:     { url: '/assets/tierraSeca.jpg', object: null },
-    ladrillos:  { url: '/assets/pared-de-ladrillos.jpg', object: null },
+    tierra:     { url: '/tierraSeca.jpg', object: null },
+    ladrillos:  { url: '/pared-de-ladrillos.jpg', object: null },
 };
 
 function onTextureLoaded(key, texture) {
diff --git a/tp/src/rails.js b/tp/src/rails.js
@@ -16,10 +16,10 @@ export const railsFoundationShape = new THREE.CatmullRomCurve3([
 
 
 const textures = {
-    tierra:     { url: '/assets/tierra.jpg', object: null },
-    roca:       { url: '/assets/roca.jpg', object: null },
-    pasto:      { url: '/assets/pasto.jpg', object: null },
-    durmientes: { url: '/assets/durmientes.jpg', object: null },
+    tierra:     { url: '/tierra.jpg', object: null },
+    roca:       { url: '/roca.jpg', object: null },
+    pasto:      { url: '/pasto.jpg', object: null },
+    durmientes: { url: '/durmientes.jpg', object: null },
 };
 
 export function getRailsPathPosAt(t) {
diff --git a/tp/src/scene.js b/tp/src/scene.js
@@ -51,14 +51,14 @@ const amplitude       = 10;
 const amplitudeBottom = -2.10; // terrain offset
 
 const textures = {
-    sky:              { url: '/assets/sky_day_void.jpg', object: null },
-    roca:             { url: '/assets/roca.jpg', object: null },
-    pasto:            { url: '/assets/pasto.jpg', object: null },
-    tierra:           { url: '/assets/tierra.jpg', object: null },
-    madera:           { url: '/assets/madera.jpg', object: null },
-    durmientes:       { url: '/assets/durmientes.jpg', object: null },
-    elevationMap:     { url: '/assets/elevation_map_wider_river.png', object: null },
-    treeForbiddenMap: { url: '/assets/tree_forbidden_zone_map_wider_path.png', object: null }
+    sky:              { url: '/sky_day_void.jpg', object: null },
+    roca:             { url: '/roca.jpg', object: null },
+    pasto:            { url: '/pasto.jpg', object: null },
+    tierra:           { url: '/tierra.jpg', object: null },
+    madera:           { url: '/madera.jpg', object: null },
+    durmientes:       { url: '/durmientes.jpg', object: null },
+    elevationMap:     { url: '/elevation_map_wider_river.png', object: null },
+    treeForbiddenMap: { url: '/tree_forbidden_zone_map_wider_path.png', object: null }
 };
 
 function onResize() {
diff --git a/tp/src/standalone/bridge.js b/tp/src/standalone/bridge.js
@@ -6,8 +6,8 @@ import { mergeGeometries } from 'three/addons/utils/BufferGeometryUtils.js';
 let scene, camera, renderer, container;
 
 const textures = {
-    tierra:     { url: '/assets/tierraSeca.jpg', object: null },
-    ladrillos:  { url: '/assets/pared-de-ladrillos.jpg', object: null },
+    tierra:     { url: '/tierraSeca.jpg', object: null },
+    ladrillos:  { url: '/pared-de-ladrillos.jpg', object: null },
 };
 
 function onResize() {
diff --git a/tp/src/standalone/rails.js b/tp/src/standalone/rails.js
@@ -12,10 +12,10 @@ let railsPath;
 let railsFoundationShape;
 
 const textures = {
-    tierra:     { url: '/assets/tierra.jpg', object: null },
-    roca:       { url: '/assets/roca.jpg', object: null },
-    pasto:      { url: '/assets/pasto.jpg', object: null },
-    durmientes: { url: '/assets/durmientes.jpg', object: null },
+    tierra:     { url: '/tierra.jpg', object: null },
+    roca:       { url: '/roca.jpg', object: null },
+    pasto:      { url: '/pasto.jpg', object: null },
+    durmientes: { url: '/durmientes.jpg', object: null },
 };
 
 function onResize() {
diff --git a/tp/src/standalone/terrain.js b/tp/src/standalone/terrain.js
@@ -11,10 +11,10 @@ const amplitude = 8;
 const amplitudeBottom = -1.00;
 
 const textures = {
-    tierra: { url: '/assets/tierra.jpg', object: null },
-    roca: { url: '/assets/roca.jpg', object: null },
-    pasto: { url: '/assets/pasto.jpg', object: null },
-    elevationMap: { url: '/assets/elevation_map2.png', object: null },
+    tierra:       { url: '/tierra.jpg', object: null },
+    roca:         { url: '/roca.jpg', object: null },
+    pasto:        { url: '/pasto.jpg', object: null },
+    elevationMap: { url: '/elevation_map2.png', object: null },
 };
 
 function onResize() {
diff --git a/tp/src/standalone/track-map.js b/tp/src/standalone/track-map.js
@@ -12,11 +12,11 @@ const amplitude       = 8;
 const amplitudeBottom = -1.00;
 
 const textures = {
-    tierra:           { url: '/assets/tierra.jpg', object: null },
-    roca:             { url: '/assets/roca.jpg', object: null },
-    pasto:            { url: '/assets/pasto.jpg', object: null },
-    elevationMap:     { url: '/assets/elevation_map2.png', object: null },
-    treeForbiddenMap: { url: '/assets/tree_forbidden_zone_map.png', object: null }
+    tierra:           { url: '/tierra.jpg', object: null },
+    roca:             { url: '/roca.jpg', object: null },
+    pasto:            { url: '/pasto.jpg', object: null },
+    elevationMap:     { url: '/elevation_map2.png', object: null },
+    treeForbiddenMap: { url: '/tree_forbidden_zone_map.png', object: null }
 };
 
 function onResize() {
diff --git a/tp/src/standalone/trees.js b/tp/src/standalone/trees.js
@@ -6,9 +6,9 @@ import { vertexShader, fragmentShader } from '/assets/treesShaders.js';
 let scene, camera, renderer, container, terrainMaterial, instancedTrees;
 
 const textures = {
-    tierra: { url: '/assets/tierra.jpg', object: null },
-    roca: { url: '/assets/roca.jpg', object: null },
-    pasto: { url: '/assets/pasto.jpg', object: null },
+    tierra: { url: '/tierra.jpg', object: null },
+    roca:   { url: '/roca.jpg', object: null },
+    pasto:  { url: '/pasto.jpg', object: null },
 };
 
 function onResize() {
diff --git a/tp/src/standalone/tunnel.js b/tp/src/standalone/tunnel.js
@@ -5,7 +5,7 @@ import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
 let scene, camera, renderer, container;
 
 const textures = {
-    madera: { url: '/assets/madera.jpg', object: null },
+    madera: { url: '/madera.jpg', object: null },
 };
 
 function onResize() {
diff --git a/tp/src/terrain.js b/tp/src/terrain.js
@@ -7,10 +7,10 @@ const amplitude       = 8;
 const amplitudeBottom = -1.00;
 
 const textures = {
-    tierra: { url: '/assets/tierra.jpg', object: null },
-    roca: { url: '/assets/roca.jpg', object: null },
-    pasto: { url: '/assets/pasto.jpg', object: null },
-    elevationMap: { url: '/assets/elevation_map2.png', object: null },
+    tierra:       { url: '/tierra.jpg', object: null },
+    roca:         { url: '/roca.jpg', object: null },
+    pasto:        { url: '/pasto.jpg', object: null },
+    elevationMap: { url: '/elevation_map2.png', object: null },
 };
 
 // La funcion devuelve una geometria de Three.js
diff --git a/tp/src/trees.js b/tp/src/trees.js
@@ -3,8 +3,8 @@ import * as THREE from 'three';
 let treesForbiddenMapData, treesForbiddenMap, elevationMap, elevationMapData;
 
 const textures = {
-    elevationMap:     { url: '/assets/elevation_map2.png', object: null },
-    treeForbiddenMap: { url: '/assets/tree_forbidden_zone_map.png', object: null }
+    elevationMap:     { url: '/elevation_map2.png', object: null },
+    treeForbiddenMap: { url: '/tree_forbidden_zone_map.png', object: null }
 };
 
 const widthSegments   = 100;