forked from ewowi/StarBase
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e504c9d
commit 940e91a
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
940e91a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another issue I noticed is when all colors is off and rainbow palette is selected all cells seemed to always be red.
Regarding 3D... Is it possible to loop through all real LEDs and get their position? Or loop through the 3D space and check whether they're a real led?
940e91a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah noticed that as well but the code says it takes a random8 within the palette so couldn’t understand why
well, never tried it as the goal was to be independent of real leds (leds.mappingtable does the physical mapping)
And the physical position is only looped through while defining the mapping table, after that it’s gone, but if there is a good usecase everything is possible 🙂
Why do you want it ?
940e91a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for converting gol to 3d so I may be misunderstanding it. For example having the the cube box or hsc fixture. When you loop through x,y,z and starting setting cells on and off I never want the inside of those setups to be alive since they're not actually real pixels.
940e91a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just use the (virtual) leds variable as it supports 3D already, no need to think about the physical fixture.
there are 2 3d effects already you can check
Will not work smoothly on big fixtures as for instance HSC is 20x20x20=8000 pixels (if massive). Maybe that will just work, but it’s challenging. I guess a cube of 10x10x10 will work though , don’t know if anybody made that yet 🙂
940e91a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah see your comment now about the inside of the cube. Yeah, good point! Would be nice for effects like this to progress on real pixels!
good idea to figure out how to do that!
StarLeds works with projections similar to a projector in a cinema projecting on a screen. Here the beginning of a description: https://ewowi.github.io/StarDocs/StarLeds/ProjectionsAndMappings/
The projections are still in its infancy. Don't know if we can think of a projection which 'folds' around a cube like fixture ... a solution could be that there is no projection (projection=None) and then the leds array can just address the pixel in the position they are physically. That would work but then the effect only works on that fixture ... just thinking out loud now...
940e91a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm still trying to wrap my head around everything. I made a 3D version of GoL that I think may be working lol. I only know 2D so it's hard to tell. Would you want me to create a draft pull request so we can keep discussion in one place?
940e91a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes sure! Go ahead and I will try to help