Compare commits

...

3 Commits

Author SHA1 Message Date
eb5b39529a combine ao roughness and metalness maps in one file for ground material 2023-11-18 16:31:40 +01:00
af8fdfd30e cleanup 2023-11-18 15:49:36 +01:00
2adbecea71 cleanup 2023-11-18 15:49:35 +01:00
19 changed files with 7 additions and 32 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
textures/old/

View File

@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Daedalus</title>
<meta charset=utf-8 />
<title>Daedalus</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" id="favicon"/>
<link rel="stylesheet" href="style.css">

10
main.js
View File

@ -1,5 +1,4 @@
import * as THREE from 'three';
import { Octree } from 'three/addons/math/Octree.js';
import { Capsule } from 'three/addons/math/Capsule.js';
import { Water } from 'three/addons/objects/Water.js';
@ -8,9 +7,10 @@ import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
import { OctreeHelper } from 'three/addons/helpers/OctreeHelper.js';
import Stats from 'three/addons/libs/stats.module.js';
import 'three-hex-tiling';
import MazeMesh from './MazeMesh.js';
import 'three-hex-tiling';
const playerHeight = 0.5;
const mazeWidth = 23
@ -145,14 +145,14 @@ const groundMaterial = new THREE.MeshStandardMaterial({
}
),
aoMap: loader.load(
'textures/angled-blocks-vegetation/ao.png',
'textures/angled-blocks-vegetation/ao-roughness-metalness.png',
texture => {
texture.wrapS = texture.wrapT = THREE.RepeatWrapping
texture.repeat.set(mazeWidth / 2, mazeWidth / 2)
}
),
metalnessMap: loader.load(
'textures/angled-blocks-vegetation/metallic.png',
'textures/angled-blocks-vegetation/ao-roughness-metalness.png',
texture => {
texture.wrapS = texture.wrapT = THREE.RepeatWrapping
texture.repeat.set(mazeWidth / 2, mazeWidth / 2)
@ -166,7 +166,7 @@ const groundMaterial = new THREE.MeshStandardMaterial({
}
),
roughnessMap: loader.load(
'textures/angled-blocks-vegetation/roughness.png',
'textures/angled-blocks-vegetation/ao-roughness-metalness.png',
texture => {
texture.wrapS = texture.wrapT = THREE.RepeatWrapping
texture.repeat.set(mazeWidth / 2, mazeWidth / 2)

View File

@ -1,3 +0,0 @@
This asset was made with Poly, an AI-generated design asset marketplace that lets you find and create incredibly life-like, detailed, and artistic assets for your next project, in seconds.
Get started for free at https://withpoly.com

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 497 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 828 KiB

View File

@ -1,23 +0,0 @@
{
"prompt_text": "stone retaining wall, extreme fine details",
"patch": {
"ext": "png",
"dtype": "uint8",
"width": 512,
"height": 512,
"url": "https://static-dev.withpoly.com/v3-voronoi/textures/patches/909585e0-8b3f-4659-ae84-03f58ceaaaeb.png",
"patch_id": "EbJzaafatu"
},
"seamless_prompt_text": "stone retaining wall, extreme fine details",
"seamless_patch_scale": 0.8,
"upscale_prompt_text": "stone retaining wall, extreme fine details",
"upscale_resolution": 4096,
"is_seamless": true,
"pbr_mode": "organic",
"pbr_generate_color": true,
"pbr_generate_normal": true,
"pbr_generate_height": true,
"pbr_generate_ao": true,
"pbr_generate_roughness": true,
"pbr_generate_metallic": false
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 556 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB