Sunday 1 October 2017

Rendering Holograms.

The 'video' display of a Cosmos is an array of 7 x 6 LEDs with a switchable 3D hologram in front of it which can display one of two images.

The hologram is like those things you used to get with breakfast cereal (if you're my sort of age) where it displayed two seperate images depending on how you tilted it.  I don't remember if any of these were 3D OTOMH.

A Cosmos doesn't tilt it, it just shines light on it from different directions, and from the LEDs behind.

Going to have some issues with 3D, so I've flattened it to 2D.

I've written a Python script which takes the picture (the flowers and the UFO, first things off openclipart.org ....) and produces two versions of it ; one is darker than normal because there's no background LED, and one lit by an array of 7x6 LEDs (the green bar is solid colour so doesn't show the Red directly). The colours of the objects are reddened slightly as well so it looks like RED LEDs are lighting it up - so the flowers look pinker on the top.

The emulator will just grab a square chunk of the graphic depending on what LEDs are on and which Hologram is selected - there will be two of these image - pairs as each hologram can display two different images.

At the moment the prototype emulator just displays a grid of square LEDs. If I build a real one - I have the parts for this, a 16x8 LED array (half for the digit display), a Mega2560 and a joypad shield in my bits box somewhere.

No comments:

Post a Comment