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

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
centralHarlem
 
Posts: 29
Joined: Tue Jun 19, 2018 7:00 pm

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

Post by centralHarlem »

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?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

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

Post by mikeysklar »

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&hi ... es#p890112

User avatar
centralHarlem
 
Posts: 29
Joined: Tue Jun 19, 2018 7:00 pm

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

Post by centralHarlem »

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.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

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

Post by mikeysklar »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”