Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

How to use the eyes from the MonsterM4sk with Pi_Eyes/SnakeE
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

How to use the eyes from the MonsterM4sk with Pi_Eyes/SnakeE

by centralHarlem on Tue Oct 19, 2021 9:08 am

Adafruit offers two different but sets of 'animated eyes' products, the MonsterM4sk and related micro-controller units (https://learn.adafruit.com/adafruit-monster-m4sk-eyes), and the Raspberry Pi-based "snake eyes" (https://learn.adafruit.com/animated-sna ... spberry-pi). I have used both to great success in various projects.

The graphics formats used by the two differ — the SnakeEyes want an irisMap and scleraMap in JPG, GIF, or PNG, plus an SVG file that represents the size of the various elements. The MonsterM4sk has variable elements including irisTexture, scleraTexture, upperEyelid, and lowerEyelid, with configuration in a text file containing a python dictionary called "config.eye".

Has anybody found a straightforward way to adapt MonsterM4sk eyes to run on SnakeEyes?

centralHarlem
 
Posts: 22
Joined: Tue Jun 19, 2018 7:00 pm

Re: How to use the eyes from the MonsterM4sk with Pi_Eyes/Sn

by mikeysklar on Wed Oct 20, 2021 5:32 pm

You should be able to make use of the all the eyes we have available from this github repo. It does not include a type 'monster', but has cyclops and dragon in addition to snake eyes.

https://github.com/adafruit/Pi_Eyes

I had helped another forum get things going so they could cycle between the available eye types:

viewtopic.php?f=50&t=183217&p=890112&hilit=%2Fboot%2FPi_eyes#p890112

mikeysklar
 
Posts: 6198
Joined: Mon Aug 01, 2016 8:10 pm

Re: How to use the eyes from the MonsterM4sk with Pi_Eyes/Sn

by centralHarlem on Thu Oct 21, 2021 11:55 am

Yes, I see those, thanks. I had been hoping to port over the 'demon' eyes from the MonsterM4sk repository for an Eye of Sauron project. I sense there may be no simple way to do that.

centralHarlem
 
Posts: 22
Joined: Tue Jun 19, 2018 7:00 pm

Re: How to use the eyes from the MonsterM4sk with Pi_Eyes/Sn

by mikeysklar on Thu Oct 21, 2021 3:22 pm

This is the collection of eyes from the M4SK.

https://github.com/adafruit/Adafruit_Le ... _Eyes/eyes

The file formats are different as DEMON uses BMP and Pi Eyes are using PNG/SVG/JPG. However, maybe that part does not matter so much.

I would experiment with /boot/Pi_Eyes files and try adding some of the other eye types to see if they are at all compatible.

mikeysklar
 
Posts: 6198
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.