Beautiful reference!
How about this for a start, as an interactive WebGL/#threejs scene?
polygonjs.com/gui/black_and_…
I called it "Black & Blue" for its fierce calmness :D
Replying to @JensBlomquist
6 nodes, 0 spaghetti:
- vertex: 425 lines
- fragment: 1762 lines
😁
👉🏼polygonjs.com/gui/noise_shad…
It used to be tricky to edit materials from an imported GLTF/FBX, but it is now very easy with the new decompose node.
It creates a material node from the loaded @threejs materials, and you can go in and tweak them separately. Or even replace them!
the recipe is fairly simple:
- scatter points on the ground
- instance lines on points
- add static noise to length
- add animated noise to all points (with a fade so that base is static).
- base color darker than tip to fake occlusion
Try it: polygonjs.com/demo?example=b…
1
3
Another example: 🌿 Grass 🦌
This isn't exactly meant to be realistic, but still shows how to enrich an environment
And it's really just #threejs instanced lines with a few noises.
In the video above, the left model has the refraction thickness that varies over time.
The right one adds an offset that depends on the vertex position.
It gives a nice beating heart effect.
Try it: polygonjs.com/demo?example=b…
2
New example: Animate refraction
@threejs shaders already provide great refraction with the MeshPhysicalMaterial. But you need to extend it to have its effect vary over your object.
And you can also preview the vertex and fragment shaders as you add nodes and change parameters. Very useful to understand what's happening under the hood.
Try this example here: polygonjs.com/demo?example=b…
2
New example: 🤪 Texture distortion 🤪
Distorting a texture help you create fake caustics effects or add fluid effect.
It can be done by adding some noise to the uv, before sampling the texture or pattern (a grid in this case). This is again done by extending @threejs materials.
➡️Mixing multiple lightmaps. This allows you to activate any map depending on a user action. This makes the 3D environment look realistic, while still interactive. (3/4)
1
7
➡️A typical image transition effect. In this case, this is using a noise, which is also multiplied by the illuminance of one of the input image. This helps break up the noise. (2/4)
1
2
New Examples, showing how you can extend @threejs materials with @polygonjs custom material builder🎨🪄 (links below - 1/4) : 👇
➡️The first one is a basic blinking/pulsing effect. Super simple, it's just the color driven by a sin function, driven by the time.
New tutorial:
This one explains how you can use polygonjs visual editor to change the templates from the marketplace.
This uses the painted globe effect as an example, but there are general tips.
Here is a short snippet: (1/2)
And you can load up examples right from the editor too.
Very convenient as you can always copy/paste nodes from one scene to another.
examples: polygonjs.com/docs/examples
editor: polygonjs.com/demo
1
Our Examples page has improved.
One area where Polygonjs has to get better is giving example scenes to start from.
There are now new ones with all the default materials, which are 1:1 match with @threejs materials.
Next examples series will show how to create custom materials.
And the great thing about those templates is that you get the full source on github.
And you can edit them without coding, simply with @polygonjs editor
2


