bibliopixel.layout.pov: Example of using this in YAML

HI,

Does anyone have an example of using the bibliopixel.layout.pov module in YAML?

I found the documentation for it here: https://maniacallabs.github.io/BiblioPixel/reference/api/bibliopixel.layout.pov.html?highlight=pov#module-bibliopixel.layout.pov and I also found the version 2 Bibliopixel POV documentation: https://github.com/ManiacalLabs/BiblioPixel/wiki/POV, which does not work for me with version 3.

Thanks in advance for any help that you can provide.

Jason

Yeah… sorry about that. POV hasn’t really gotten much TLC since the 2.x days. Been meaning to come back to it or remove it. That issue seems to cover the problems.

···

On Fri, Oct 26, 2018 at 6:36 AM Tom Swirly tom@swirly.com wrote:

So I have to say that I have never personally tried this feature…! Adam who wrote it might have more information, but here’s part of a sample project that should work to start.

layout:

typename: .pov

povHeight: 32

width: 48

or whatever the width and height of the display are.

Note that I’m pretty sure from reading the code that shape: will not work with POV. I just filed an issue about this, and I’ll probably knock out a quick fix…

On Fri, Oct 26, 2018 at 12:07 PM Jason Bramsden jason.bramsden@bramsden.com wrote:

HI,

Does anyone have an example of using the bibliopixel.layout.pov module in YAML?

I found the documentation for it here: https://maniacallabs.github.io/BiblioPixel/reference/api/bibliopixel.layout.pov.html?highlight=pov#module-bibliopixel.layout.pov and I also found the version 2 Bibliopixel POV documentation: https://github.com/ManiacalLabs/BiblioPixel/wiki/POV, which does not work for me with version 3.

Thanks in advance for any help that you can provide.

Jason

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/90deacc1-7a4b-47d3-9569-5ad597550483%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


/t

https://tom.ritchford.com

https://tom.swirly.com

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/CAOuQWfUS10TueKmW6Nuw46U7rhL1mHxhv2qv3PM185KJ2svsvg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

Hi Tom,

Thanks for the updates.

Just on the POV direction i was planning on using it in a circle. If that is too complex, once you have done the vertical code, I will look at how it can be adapted for a circle.

···

/t

https://tom.ritchford.com

https://tom.swirly.com

It would be like this: https://chrismillerstuff.com/2015/09/22/creating-a-1-meter-rgb-pov-display-with-raspberry-pi-and-lpd8806/

Jason Bramsden

···

On 2 Nov 2018, at 16:06, Tom Swirly tom@swirly.com wrote:

Ah, I’m not entirely sure how POV would actually work with a circle if at all…?

The idea is that if you move your eyes, the individual 1-d frames join up into one 2-d frame due to the persistence of vision. This can’t work for a circle! :smiley:

On Fri, Nov 2, 2018 at 4:55 PM Jason Bramsden jason.bramsden@bramsden.com wrote:

Hi Tom,

Thanks for the updates.

Just on the POV direction i was planning on using it in a circle. If that is too complex, once you have done the vertical code, I will look at how it can be adapted for a circle.

On 2 Nov 2018, at 08:29, Tom Swirly tom@swirly.com wrote:

Still working on it steadily…

On Tue, Oct 30, 2018 at 10:29 AM Tom Swirly tom@swirly.com wrote:

Ah, so sorry for this delay, the email got caught in the Spam filter, who knows why?

I still haven’t managed to fix POV, which is pretty badly broken, and it will be at least a few days until I do this. That area sort of languished because I didn’t know how it worked. Now I do, but I realize that it has serious issues since its inception.

The biggest issue is that POV has its own subtimer! In other words, for each frame that the animation system generates, POV generates multiple frames using its own internal timer.

This just doesn’t work with the new system where we have a single central timer, and more, will probably give really bad jitter in real life. And in the intermediate future we’ll be moving to having a completely separate process updating frames to get smoother updates, and that makes it even more impossible!

My solution to this will be to make each line a new frame. There will be an… adjustment to the frame rate, still not decided all the details there but probably some clever guessing of what you mean and a warning if we can’t guess.

It won’t be too much code, but it has to be the right code…

Also, POV is hardcoded to go in exactly one direction - vertically upward - so if you have a horizontal display or want to do it in the reverse direction, you’re out of luck. I’ll probably fix that at the same time since that part is easy.

On Tue, Oct 30, 2018 at 10:18 AM Jason Bramsden jason.bramsden@bramsden.com wrote:

Thanks Tom, so I’m assuming that I should not use shape at all and replace this with layout.
When I’ve tried to test this with simpixel and AnalogClock animation I’m getting an Unable to create layout error:

ERROR - run - When reading file my_lights.yml:

  • animation: $bpa.matrix.AnalogClock

driver: {typename: simpixel}

layout: {povHeight: 48, typename: .pov, width: 48}

(‘Unable to create layout’, “‘UpdateThread’ object has no attribute ‘setDaemon’”)

Unable to create layout

‘UpdateThread’ object has no attribute ‘setDaemon’

On Friday, October 26, 2018 at 11:36:53 AM UTC+1, Tom Swirly wrote:

So I have to say that I have never personally tried this feature…! Adam who wrote it might have more information, but here’s part of a sample project that should work to start.

layout:

typename: .pov

povHeight: 32

width: 48

or whatever the width and height of the display are.

Note that I’m pretty sure from reading the code that shape: will not work with POV. I just filed an issue about this, and I’ll probably knock out a quick fix…

On Fri, Oct 26, 2018 at 12:07 PM Jason Bramsden jason.b...@bramsden.com wrote:

HI,

Does anyone have an example of using the bibliopixel.layout.pov module in YAML?

I found the documentation for it here: https://maniacallabs.github.io/BiblioPixel/reference/api/bibliopixel.layout.pov.html?highlight=pov#module-bibliopixel.layout.pov and I also found the version 2 Bibliopixel POV documentation: https://github.com/ManiacalLabs/BiblioPixel/wiki/POV, which does not work for me with version 3.

Thanks in advance for any help that you can provide.

Jason

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/90deacc1-7a4b-47d3-9569-5ad597550483%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


/t

https://tom.ritchford.com

https://tom.swirly.com

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/7a53a55f-f65e-40ca-9418-bf684481774c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


/t

https://tom.ritchford.com

https://tom.swirly.com


/t

https://tom.ritchford.com

https://tom.swirly.com


/t

https://tom.ritchford.com

https://tom.swirly.com

Hi Tom,

That makes sense!

So if I convert the image to a polar coordinates image then it should work with your POV code?

E.G using the Depolar-polar effect in ImageMagick: http://www.imagemagick.org/Usage/distorts/

Kind regards

Jason Bramsden

···

On 3 Nov 2018, at 11:08, Tom Swirly tom@swirly.com wrote:

Ah, sorry for the delay.

Cool! Great example. So you’re actually spinning the strip of LEDs, and wanting to display an image on it.

Our POV will do that, when I fix it, but there’s an issue here that we cannot solve - converting an image from “rectangular coordinates” to polar coordinates.

In other words, our pixels right now look like a rectangular matrix. But the pixels in this model are arranged in a circular arrangement around the center.

As long as you’re trying to display abstract images, you will get “interesting” results. But if you try to display e.g. cat pictures, you’re going to get a jumbled mess.

On Fri, Nov 2, 2018 at 5:45 PM Jason Bramsden jason.bramsden@bramsden.com wrote:

It would be like this: https://chrismillerstuff.com/2015/09/22/creating-a-1-meter-rgb-pov-display-with-raspberry-pi-and-lpd8806/

Jason Bramsden

On 2 Nov 2018, at 16:06, Tom Swirly tom@swirly.com wrote:

Ah, I’m not entirely sure how POV would actually work with a circle if at all…?

The idea is that if you move your eyes, the individual 1-d frames join up into one 2-d frame due to the persistence of vision. This can’t work for a circle! :smiley:

On Fri, Nov 2, 2018 at 4:55 PM Jason Bramsden jason.bramsden@bramsden.com wrote:

Hi Tom,

Thanks for the updates.

Just on the POV direction i was planning on using it in a circle. If that is too complex, once you have done the vertical code, I will look at how it can be adapted for a circle.

On 2 Nov 2018, at 08:29, Tom Swirly tom@swirly.com wrote:

Still working on it steadily…

On Tue, Oct 30, 2018 at 10:29 AM Tom Swirly tom@swirly.com wrote:

Ah, so sorry for this delay, the email got caught in the Spam filter, who knows why?

I still haven’t managed to fix POV, which is pretty badly broken, and it will be at least a few days until I do this. That area sort of languished because I didn’t know how it worked. Now I do, but I realize that it has serious issues since its inception.

The biggest issue is that POV has its own subtimer! In other words, for each frame that the animation system generates, POV generates multiple frames using its own internal timer.

This just doesn’t work with the new system where we have a single central timer, and more, will probably give really bad jitter in real life. And in the intermediate future we’ll be moving to having a completely separate process updating frames to get smoother updates, and that makes it even more impossible!

My solution to this will be to make each line a new frame. There will be an… adjustment to the frame rate, still not decided all the details there but probably some clever guessing of what you mean and a warning if we can’t guess.

It won’t be too much code, but it has to be the right code…

Also, POV is hardcoded to go in exactly one direction - vertically upward - so if you have a horizontal display or want to do it in the reverse direction, you’re out of luck. I’ll probably fix that at the same time since that part is easy.

On Tue, Oct 30, 2018 at 10:18 AM Jason Bramsden jason.bramsden@bramsden.com wrote:

Thanks Tom, so I’m assuming that I should not use shape at all and replace this with layout.
When I’ve tried to test this with simpixel and AnalogClock animation I’m getting an Unable to create layout error:

ERROR - run - When reading file my_lights.yml:

  • animation: $bpa.matrix.AnalogClock

driver: {typename: simpixel}

layout: {povHeight: 48, typename: .pov, width: 48}

(‘Unable to create layout’, “‘UpdateThread’ object has no attribute ‘setDaemon’”)

Unable to create layout

‘UpdateThread’ object has no attribute ‘setDaemon’

On Friday, October 26, 2018 at 11:36:53 AM UTC+1, Tom Swirly wrote:

So I have to say that I have never personally tried this feature…! Adam who wrote it might have more information, but here’s part of a sample project that should work to start.

layout:

typename: .pov

povHeight: 32

width: 48

or whatever the width and height of the display are.

Note that I’m pretty sure from reading the code that shape: will not work with POV. I just filed an issue about this, and I’ll probably knock out a quick fix…

On Fri, Oct 26, 2018 at 12:07 PM Jason Bramsden jason.b...@bramsden.com wrote:

HI,

Does anyone have an example of using the bibliopixel.layout.pov module in YAML?

I found the documentation for it here: https://maniacallabs.github.io/BiblioPixel/reference/api/bibliopixel.layout.pov.html?highlight=pov#module-bibliopixel.layout.pov and I also found the version 2 Bibliopixel POV documentation: https://github.com/ManiacalLabs/BiblioPixel/wiki/POV, which does not work for me with version 3.

Thanks in advance for any help that you can provide.

Jason

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/90deacc1-7a4b-47d3-9569-5ad597550483%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


/t

https://tom.ritchford.com

https://tom.swirly.com

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/7a53a55f-f65e-40ca-9418-bf684481774c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


/t

https://tom.ritchford.com

https://tom.swirly.com


/t

https://tom.ritchford.com

https://tom.swirly.com


/t

https://tom.ritchford.com

https://tom.swirly.com

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/CF18A613-33F2-4551-8B01-5C5DC3E786DA%40bramsden.com.

For more options, visit https://groups.google.com/d/optout.


/t

https://tom.ritchford.com

https://tom.swirly.com