Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Player #9

Open
Diggsey opened this issue Dec 28, 2021 · 10 comments
Open

Player #9

Diggsey opened this issue Dec 28, 2021 · 10 comments

Comments

@Diggsey
Copy link

Diggsey commented Dec 28, 2021

I made a player for the CSV files:
image

https://github.com/Diggsey/xmas_tree

You just need Rust.

cargo run --bin xmas_tree_player --release -- sequences/barber_pole.csv
@Aonodensetsu
Copy link

Aonodensetsu commented Dec 28, 2021

That's a third visualizer, I guess people really like making those (I made one in Python and there has been an openGL one mentioned in #3)
Good work :)

@programer19
Copy link

NICE! About the cone in the middle... does it not block some lights? Or it is semitransparent?

@gentlegiantJGC
Copy link

I too am working on one that mirrors the python neopixel library so it can visualise any python code that could run on the real tree as well as run.py

As an added bonus it can also be used to generate the CSV animation file from the data that the python code gave it.

@Diggsey
Copy link
Author

Diggsey commented Dec 28, 2021

@programer19 currently the lights are rendered in a separate pass that uses its own depth buffer, so they are never obscured by the cone even when it's in front, mimicking the effect of seeing the lights "through" the leaves.

The lights themselves are two colocated spheres of different sizes. The inner sphere is opaque and has a +0.5 lightness modifier on the base colour. The outer sphere is semitransparent - the opacity is set to half the lightness of the base colour, so when the light is off, it's completely transparent, and when the light is bright white, it's 50% transparent. The saturation of the outer sphere is also boosted by a factor of 2 so that colours show through more intensely in the halo, as is the case in video of the tree.

@Aonodensetsu
Copy link

Aonodensetsu commented Dec 28, 2021

my visualizer can also generate csv but i'm not mimicking neopixel (although you return the values as a list of length == amount of LEDs as [r,g,b] so if i change that inner list to a tuple it's basically the same thing)

@Diggsey
Copy link
Author

Diggsey commented Dec 28, 2021

Yeah, there's a separate binary in the same repo xmas_tree_gen which can generate CSVs with various effects, based on a set of input coordinates.

@programer19
Copy link

programer19 commented Dec 28, 2021

the challenge of the best tree animation has become a challenge of the best tree visualization xD
I approve, this task is really interesting and worth spending time on

@Aonodensetsu
Copy link

Aonodensetsu commented Dec 28, 2021

my visualizer has semi-transparent wires ( ͡° ͜ʖ ͡°)
image
and shows axes in the correct scale which might be useful when writing effects

@programer19
Copy link

Yep... much better now!
the_best_tree_ever

@leukipp
Copy link

leukipp commented Jan 9, 2022

Another one using WebGL and WASM (#10) for online python development:
app

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants