It is currently Mon Nov 20, 2017 7:50 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Tue Feb 12, 2013 7:32 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5824
Location: Canada
I felt like making a real NES version of an image of Bill Murray made by Svetlana, but it used colours a little bit liberally and I wasn't sure if it could be managed or not. So... I wrote a quick python program to try to automate the process of building a nametable and overlaid sprites.

ROM: bill.nes
Source: bill.zip (ca65 + python 3)

The process looked like this:
Image Image Image

1. Choose some palettes by hand. (This could probably be automated, but that'll be an exercise for the next time I do this.)
2. Generate nametable by choosing the attribute palette that will maximize the number of pixels in the corresponding nametable block.
3. Progressively create sprites from the leftover pixels.

There are a lot of different ways I could approach step 3. What I settled on for this project was to greedily take the sprite which maximizes pixel coverage. This worked okay for this, but was kinda subject to overlap problems, and also tends to isolate pixels at the edges, which end up taking up their own sprites.

Anyhow, this was just a quick and dirty project for me, but I thought it might be useful to share the source for anybody who needs an example.

(The music is also by Svetlana.)


Top
 Profile  
 
PostPosted: Tue Feb 12, 2013 9:34 pm 
Offline
User avatar

Joined: Wed Dec 06, 2006 8:18 pm
Posts: 2803
I was so confused when I saw this thread title. Pretty neat program though.


Top
 Profile  
 
PostPosted: Tue May 28, 2013 8:15 pm 
Offline

Joined: Tue Apr 05, 2005 7:30 pm
Posts: 179
Well, you certainly made Bill Murray look like Bill Murray. Good job.

_________________
Be whatever the situation demands.


Top
 Profile  
 
PostPosted: Thu May 30, 2013 3:59 pm 
Offline
User avatar

Joined: Thu Apr 23, 2009 11:21 pm
Posts: 803
Location: cypress, texas
How does your program start... there is no input code? :?


Top
 Profile  
 
PostPosted: Thu May 30, 2013 4:11 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5824
Location: Canada
What do you mean by "input code"?


Top
 Profile  
 
PostPosted: Thu May 30, 2013 4:18 pm 
Offline
User avatar

Joined: Thu Apr 23, 2009 11:21 pm
Posts: 803
Location: cypress, texas
well... like there's no controller reading... it doesn't ever do anything. In my head I expected a press the A button to start the pixel sprite dissappearance part.


Top
 Profile  
 
PostPosted: Thu May 30, 2013 4:22 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5824
Location: Canada
Oh, no, that animation was made by the python script that builds the sprite data. This ROM is not interactive.


Top
 Profile  
 
PostPosted: Thu May 30, 2013 4:29 pm 
Offline
User avatar

Joined: Thu Apr 23, 2009 11:21 pm
Posts: 803
Location: cypress, texas
rainwarrior wrote:
Oh, no, that animation was made by the python script that builds the sprite data. This ROM is not interactive.
Ok. I thought it would be. Sorry. :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group