Skip to content

Commit

Permalink
intro
Browse files Browse the repository at this point in the history
  • Loading branch information
mudroljub committed Jan 11, 2024
1 parent a5b8310 commit 74f95fa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Create 3D worlds

Library of reusable Three.js components.
A library of REUSABLE Three.js components that you can play with.

Sakupio sam Three.js primere sa raznih strana i prepravio ih da budu reusable.
Over the years, I have gathered Three.js examples from various sources and modified them to be reusable.

Za razliku od ostalih kul Three.js primera koje možete samo gledati, ovde možete kombinovati različite elemente i praviti nove scene. Možete uzeti junaka iz jedne scene, zgrade iz druge, prirodu iz treće, itd.
Unlike other cool Three.js examples that you can just look at, here you can combine different elements and create new scenes. To begin with, you can replace any model or character in these examples.

Nadam se da ćete se zabavljati kao ja dok sam ovo pravio.
I hope you will have as much fun as I did making this.

Developed by [mudroljub](https://twitter.com/mudroljub).

Expand All @@ -19,12 +19,11 @@ npx live-server

## TODO

- ići redom po html fajlovima, srediti titlove i dodati izvor gde treba
- popraviti lightningStrike
- svući three.js na lokal?
- dokumentovati
- minimalni bekend za statistike / brojač poseta
- testirati na raznim uređajima nakon dizanja na server
- dodati izvor gde treba
- write documentation

## BUGS:

Expand Down
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default {
volume: 0 // .4
volume: .4
}
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ <h1>Create 3D worlds</h1>

<h3>A library of REUSABLE Three.js components that you can play with.</h3>

<p>To begin with, you can replace any model or character in these <b>examples</b>.</p>
<p>Unlike other cool Three.js examples that you can just look at, here you can combine different elements and create new scenes. To begin with, you can replace any model or character in these examples.</p>

<p>But, there's much more besides these examples. Explore the <a href="https://github.com/create-3d-worlds/create-3d-worlds.github.io" target="_blank">source code</a>.</p>
<p>I hope you will have as much fun as I did making this.</p>

<p>Hint: <a href="#games">games</a> are at the bottom ;)</p>
<p>Hint: <a href="#games">GAMES</a> are at the bottom ;)</p>

<h2>Geometry</h2>

Expand Down
1 change: 0 additions & 1 deletion utils/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export function lightningStrike(light, scene = defaultScene) {

const distance = randInt(100, 3000)
audio.volume = mapRange(distance, 3000, 100, config.volume / 4, config.volume)
// TODO: fix light
light.intensity = mapRange(distance, 3000, 100, 1.2, 2)

const newColor = new THREE.Color().lerpColors(
Expand Down

0 comments on commit 74f95fa

Please sign in to comment.