Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conic_sections.csv and star_collision.csv #50

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

NicolasVargas11235
Copy link

@NicolasVargas11235 NicolasVargas11235 commented Jan 4, 2022

@oliverdunk and @thatmattparker: I have created an animation showing the tree being cut into different conic sections (circle, ellipse, parabola and hyperbola). Each part of the animation is created with the equation of a 3D plane; as the position of the plane varies, each LED position is inserted into the plane equation to determine if that LED lies below or above the plane. In other words, this determines if the LED is turned on or off. To rotate the plane, a sine and cosine factor is added to the Y and X coefficients in the plane equation. This effectively rotates the plane around the Z-axis. The animation is best viewed perpendicular to the Y,Z plane, but can be enjoyed from any angle.

I have also created an animation showing 2 neutron stars colliding into each other, producing a kilonova. This is a tribute to the first neutron star collision detection, back in 2017. Two spheres mapped in 3D space follow a pre-determined curve approximating a decaying orbit. The two jets exploding from the poles are created with growing cylinders along the z-axis. The final part of the explosion is created by mapping a torus, with both in its major and minor radius gradually expanding.

The scripts used the make these CSV files can be found in my public repositories.

@d-albrecht
Copy link
Contributor

The conic sections are a bit low-res (nothing you can change) but still informative. I can't judge the scientific basis of the star collision but it definitely looks pretty.

I have created an animation of the tree split into 5 different segments. The state of the LEDs in each segment is dictated by a travelling sine wave. Each segment begins with a sine wave having a unique phase from all other segment waves. As time passes, the phases of the sine waves are adjusted using the Kuramoto model for coupled oscillator synchronization. By the end of the animation, all segments are in phase with each other and appear to be changing as one whole segment. This was really fun to model! I hope you enjoy. If you want to take a closer look at how the animation was acheived, my c# code will be made available in my public repository.
@NicolasVargas11235
Copy link
Author

UPDATE: I have now also created an animation of the tree split into 5 different segments. The state of the LEDs in each segment is dictated by a travelling sine wave. Each segment begins with a sine wave having a unique phase from all other segment waves. As time passes, the phases of the sine waves are adjusted using the Kuramoto model for coupled oscillator synchronization. By the end of the animation, all segments are in phase with each other and appear to be changing as one whole segment. This was really fun to model! I hope you enjoy. If you want to take a closer look at how the animation was acheived, my c# code will be made available in my public repository.

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

Successfully merging this pull request may close these issues.

2 participants