Page 1 of 4

Movie Player

PostPosted: Sun Nov 20, 2016 10:10 am
by DaveMcW
I built a full color movie player. See it in action:

Image

Or download the save: sandstorm.zip


It has a 178x100 display, and 34MB of memory. In theory it could run at 60 FPS, in practice it runs at 1 FPS in Factorio 0.14.

I designed the movie player in 10 sections, then built them all from the same blueprint.

10-sections.jpg
10-sections.jpg (323.65 KiB) Viewed 205546 times

Each section has 3 parts: display, decoder, and memory.

display-decoder-memory.jpg
display-decoder-memory.jpg (116.95 KiB) Viewed 205546 times

Re: Movie Player

PostPosted: Sun Nov 20, 2016 10:13 am
by DaveMcW
Display

I use this combinator design to fit many color signals on one wire.

color-signals.gif
color-signals.gif (320.95 KiB) Viewed 205542 times

The processing time is O(n^2) where n is the number of signals the wire. So I split the signals between 5 wires to improve performance. Three wires can run along a column of combinators, and the other two hop along lamps to reach the distant combinators. The wire diagram looks like this. (They are really all green wires.)

wire-diagram.jpg
wire-diagram.jpg (432.86 KiB) Viewed 205542 times

Re: Movie Player

PostPosted: Sun Nov 20, 2016 10:15 am
by DaveMcW
Decoder

The decoder takes 5x 30-bit signals as input, and produces 50x 3-bit colors as output.

decoder.jpg
decoder.jpg (312.06 KiB) Viewed 205541 times

Here is how it works on a binary level:

binary.jpg
binary.jpg (74.77 KiB) Viewed 129662 times

Encoder

I published my encoder script on GitHub: https://github.com/DaveMcW/factorio-movie-maker

Re: Movie Player

PostPosted: Sun Nov 20, 2016 10:17 am
by DaveMcW
Memory

The memory uses a simple lookup scheme, with a frame select signal on the green wire and 180 data signals on the red wire.

memory.jpg
memory.jpg (297.89 KiB) Viewed 205538 times

This decider combinator setup has poor performance when used with a high number of signals. Here are my performance stats:

performance.jpg
performance.jpg (454.06 KiB) Viewed 205538 times

Re: Movie Player

PostPosted: Sun Nov 20, 2016 10:43 am
by Danielv123
This is all well and good, but... Songname?

Re: Movie Player

PostPosted: Sun Nov 20, 2016 11:21 am
by Smarty
holy.. but... but..

That is amazing!

Re: Movie Player

PostPosted: Sun Nov 20, 2016 12:34 pm
by Acarin
Dave, you never cease to amaze me with your Factorio skills. That is... Extremely impressive :-)

Re: Movie Player

PostPosted: Sun Nov 20, 2016 1:23 pm
by Grimakar
You really should put this save to the Performance optimization - post your saves Thread. This really makes my computer burn :D

Re: Movie Player

PostPosted: Sun Nov 20, 2016 2:00 pm
by Necriptos
holy hell how on earth

Re: Movie Player

PostPosted: Sun Nov 20, 2016 5:18 pm
by jasa_m
amazing!!

Re: Movie Player

PostPosted: Sun Nov 20, 2016 5:21 pm
by steinio
How can i watch the Netflix Series? :)

Re: Movie Player

PostPosted: Sun Nov 20, 2016 11:00 pm
by RichPL
I'm out....

srs tho.

I consider myself not too un-smart, heck sometimes I get a little swell of pride when I do something moderately clever. But this, this blows my freekin' mind.

Re: Movie Player

PostPosted: Mon Nov 21, 2016 12:20 am
by Axios
Amazing! Congratulations!

Re: Movie Player

PostPosted: Mon Nov 21, 2016 12:39 am
by impetus maximus
Factorio might get an AO rating now. :lol:

really impressive. holy cow.

Re: Movie Player

PostPosted: Mon Nov 21, 2016 3:44 am
by JJosh
But before we talk about the circuit network, we have to talk about parallel universes.

Re: Movie Player

PostPosted: Mon Nov 21, 2016 10:16 am
by Grimakar
Hey Dave, you made it. The Gamestar is writing about you^^
http://www.gamestar.de/spiele/factorio/ ... 05606.html

Hope you understand german :D

Re: Movie Player

PostPosted: Mon Nov 21, 2016 11:06 am
by GosuGian
Holyshit!
MIND = BLOWN

Re: Movie Player

PostPosted: Mon Nov 21, 2016 1:28 pm
by Zeblote
60000 views in 1 day ...?

Re: Movie Player

PostPosted: Mon Nov 21, 2016 3:09 pm
by aober93
yeas got news coverage lol

Re: Movie Player

PostPosted: Mon Nov 21, 2016 4:53 pm
by Rahjital
Holy crap, 34 megabytes of memory! With that you could store the entirety of Doom 1 and 2 and still have 8MB to spare. That's seriously impressive!