2D Pixel coordinate mapping tool for images

it won’t update that display, that’s just a rainbow display, leave that page, select a pattern and see if the actual pattern works as expected.

That said, that rainbow display looks wrong, given what we know the real thing looks like… @wizard?

I do that already. The display look ok. It move like left to right. But when I select the pattern it won’t do a 2D on the Leds. I try with some 2D patterns. I am trying with a pixelblaze v2. Any pattern that you know it work? Could be the pattern?

Could be the pattern, some require you to edit it to put in the size of the matrix you are using, so it understands height/width.

In your case, looks like 5 height and 22 wide

Since Ben’s recent update of the code to add transformation, many of the existing 2D patterns could use an update to the newer ways of handling things. I’d say try a bunch, figure out which work as expected, and then make a list of the ones that don’t (and the ones that do) and post the list. Some of us might take a look and figure out what needs an update.

Please remember, this forum is all volunteers. We’re often happy to help, but at the end of the day, learning how this works for your particular setup (especially non standard layouts, not 8x8 or 16x16, etc) and how to tweak it to work right will take some learning how this stuff works.

1 Like

@Changchung ,
Your preview doesn’t look very uniform, but I can’t tell if it actually looks that way in the picture you used to map. It should be mostly OK for patterns even if it’s a little off.

If you post the image you used to map, and the text of your pixel map coordinates, any of us can put these into the pixel mapper tool and help troubleshoot the map itself.

Pixelblaze V2 didn’t ship with many patterns that used render2D and could take advantage of the pixel map. Give it a try with “cube fire”, or some of the 2D patterns from the pattern site. Very old 2D patterns calculated the coordinates via pattern code, and assumed regular matrix configurations so won’t work with your sign. Look for “render2D” in the code.


Thanks Ben. Here is the picture and code that I am getting.



Hmm, I think the forum might have resized your image - it’s only showing up at 1920x662 pixels. If I double it, it’s close, but not quite. Whats the resolution of your source image?

It looks like the clicks/points aren’t on-center. The back of the D looks off a bit. Still, it’s close enough you’ll get some nice 2D effects from it. You could try mapping it again, just be sure to click right in the center of the LED each time - undo if needed to adjust.

1 Like

I am getting this with the firecube after saving the map code.

That looks correct to me.

Try this code

That’s not in the pattern library (yet), but does the KITT scan with 2D. Compare that to the normal KITT pattern (which would trace out each letter back and forth)


Yep, looks about right. You can also try “Red-Green XY 2D Sweep”
Red-Green XY 2D Sweep.epe (3.1 KB)

You could add a fake pixel to the map to lock in the aspect ratio to a square. .e.g add [3484,3484] at the end of your list. Don’t forget to add a comma, its sneakily absent on that last entry.


Hello guys. Sorry for the delay. This mapping is ok?

Just wanted to be sure you’re clicking on the image in the order that the pixels are wired, right? I am seeing some of the wires inside and wondering if you were marking them all, but not in their wiring order. For example, I couldn’t tell if a wire is directly connecting pixels numbered 14 and 15:

2D Pixel coordinate mapping tool for images - News and Announcements - ElectroMage Forum 2021-09-27 17-03-45

If you can post a video of the pattern Wizard included - Red-Green XY 2D Sweep.epe - that would be the most definitive answer as to whether it seems to be mapped correctly.


@jeff is right, you need to click on them in order. That should be listed clearly too on that page.

You need to start on the first pixel and click on them in order. Not just across the board, but the way the wiring goes. Otherwise it’ll be lighting up the wrong light and nothing will look right.

1 Like

@jeff jeff Ok. I understand now. I was selecting the Leds wrong. I will try it again.

@Scruffynerf Ok. Thanks. I will try it again and post the results.

Good morning again everyone. It is working know. I was making the mapping wrong.

Thanks everybody

@Scruffynerf The Kitt 2d effect is working just fine. Thanks a lot…


@jeff nice write up on mapping:. intro_to_mapping.md

I’d link to it, but unsure which link to use. @wizard?

Hopefully with the above discussion/confusion, some more “howto” will be added as well, including linking to the tool here.

1 Like

Thanks! I appreciate you noticing!

This mapping content’s been live here for a little over a year, but one effort I’ve been trying to support is unifying the navigation/cohesion of bhencke.com/pixelblaze, the github repos, and everything that lives on electromage.com. Within a few weeks, I’d like to see much of the “how to” type content fully migrated from bhencke.com/pixelblaze to electromage.com. It probably doesn’t have a durable, linkable home until then.

However, linking to it in it’s github.com/simap/pixelblaze/guides/ home is likely to be durable for quite some time, it’ll just be github markdown there, whereas it’ll be rendered into a cohesive nav experience when it gets integrated with electromage.com/setup/


Wow - that’s an awesome 2D version of the KITT pattern - discovered from the link in this thread. that one is the best!


It was a group effort. @zranger1 , @jeff and myself. Good example of the power of users collaborating. I’m hopeful that we can alter most of the current patterns in PB library to be more universal (map based).


2 posts were split to a new topic: New to pixel mapping - map a cylinder