Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Work in progress Using Lights to make any Image using only scripting
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#5
RE: Using Lights to make any Image using only scripting

Today I adjusted the system to fix a small bug and support colours. Still need to improve the int encoding routine, but pictures only require UINTs so that is low on the list of fixes right now. I also recorded a stress test with a picture using 10k lights, unsurprisingly this lagged a little bit - but it worked and looks really cool. I had to write a timer which drew half a column at a time so I could be sure the game didn't crash!





If you are interested in the string that was generated for this picture:
http://pastebin.com/D9yC3gbF
Using the alphabet:
string alphabet = " !()*+,-.0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ[]_abcdefghijklmnopqrstuvwxyz{|}";
uint tSize=4;

So, as it is, it really is only feasible for small images with less than 2k lights - but that was kind of obvious from the start.
(This post was last modified: 10-21-2011, 12:56 PM by Apjjm.)
10-21-2011, 12:50 PM
Find


Messages In This Thread
RE: Using Lights to make any Image using only scripting - by Apjjm - 10-21-2011, 12:50 PM



Users browsing this thread: 1 Guest(s)