Benares (shaders)

Hi, community!
In the middle of 00’s I’ve heard a composition: https://www.youtube.com/watch?v=sNqBgdunKoU and it caught me, but I’ve forgot about it in time.
Several years ago I wrote that example just out of curiousity: https://jsfiddle.net/prisoner849/06nrgmkL/


And recently I’ve bumped into that composition again, so I decided to make a thematic sketch (or I don’t know how to call that kind of things, just give me a hint, if you know :slight_smile: ).

Here is a picture:


And here is a working example:
https://cywarr.github.io/benares/
Source code: https://github.com/cywarr/benares

Morphing of the sphere has the same principle, like in the presented jsfiddle: to compute an accumulated vector of the shifting for a specific point in vertex shader, based on values of all “charges”, that depend on square of distance to each “charge”.

11 Likes

That’s pretty awesome.
Loved that.

1 Like

@amitlzkpa Thanks! :slight_smile:

Awesome as always :smiley:

1 Like

I cannot think of a better way of describing this :stuck_out_tongue:

Love Hol Baumann, he’s featured on basically every study/work/workout playlist I’ve made for the last decade. This is a perfect tribute to this track, great job.

Have you tried contacting the artist? I’m sure he’d love to see that.

2 Likes

Yes. He likes it :blush:

2 Likes

Too Good!!!

Thank you for creating and sharing!! :slight_smile:

1 Like

@RiteshSingh You’re welcome :slight_smile: Glad that you like it :slight_smile:

1 Like

Playing it for many hours since yesterday :slight_smile: :pray:

I have suggested a minor enhancement (https://github.com/cywarr/benares/issues/1):

वाराणसी would be more accurate

P. S. You are absolutely amazing with Three.js. If/when free, could you please consider guiding me? I am stuck with raycasting on points since the last few days (Galaxies simulation: Change color of a point and display text on mouseover).

1 Like

@RiteshSingh Thanks a lot! Fixed now.

1 Like

@RiteshSingh I wrote a simple jsfiddle to create textures with writings: https://jsfiddle.net/prisoner849/xa6uonrL/ feel free to use it :slight_smile:

2 Likes

Wow, thank you so much!! Your community-spirit is rare and imitable.