Blargg's NTSC filter demo for Windows

A place for your artistic side. Discuss techniques and tools for pixel art on the NES, GBC, or similar platforms.

Moderator: Moderators

User avatar
rainwarrior
Posts: 8731
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Blargg's NTSC filter demo for Windows

Post by rainwarrior »

I have compiled Blargg's NTSC filter demo for Windows. This may be useful for previewing how an image may look as an NTSC screen.

It's a command line tool. It works on test.bmp by default, but you can use an argument filename, or just drag a BMP onto the EXE.

Original source code by Blargg, available here: http://slack.net/~ant/libs/ntsc.html
Attachments
blargg_ntsc.zip
Blargg's NTSC snes_ntsc demo.c, windows build.
(165.17 KiB) Downloaded 1473 times
Last edited by rainwarrior on Thu Oct 23, 2014 7:11 am, edited 3 times in total.
User avatar
Bregalad
Posts: 8055
Joined: Fri Nov 12, 2004 2:49 pm
Location: Divonne-les-bains, France

Re: Blargg's NTSC filter demo for Windows

Post by Bregalad »

Very cool indeed.

Why is the colour depth reduced ? Do you force to use the NES palette ? But then what about if we want to test graphics for another platform ?
Sik
Posts: 1589
Joined: Thu Aug 12, 2010 3:43 am

Re: Blargg's NTSC filter demo for Windows

Post by Sik »

There's a different library for each system and each of them take the color depth native to each system (there's also the fact that each system has its own set of artifacts)
User avatar
thefox
Posts: 3134
Joined: Mon Jan 03, 2005 10:36 am
Location: 🇫🇮
Contact:

Re: Blargg's NTSC filter demo for Windows

Post by thefox »

Thanks. I was going to compile it myself, but couldn't bother to install SDL.
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi
User avatar
Macbee
Posts: 120
Joined: Sat Nov 26, 2011 8:31 am
Location: Brazil
Contact:

Re: Blargg's NTSC filter demo for Windows

Post by Macbee »

Pretty cool, I'll have a lot of fun with this.
User avatar
Bregalad
Posts: 8055
Joined: Fri Nov 12, 2004 2:49 pm
Location: Divonne-les-bains, France

Re: Blargg's NTSC filter demo for Windows

Post by Bregalad »

What would be great is to have this as an option in a tile editor such as Tile Molester or YY-CHR, so that you can preview your BGs or sprites directly with the NTSC fiilter as you draw them.
User avatar
rainwarrior
Posts: 8731
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Blargg's NTSC filter demo for Windows

Post by rainwarrior »

Ah, I didn't realize the nes_ntsc one reduced colour like that. I have rebuilt with the snes_ntsc version.
User avatar
DragonDePlatino
Posts: 94
Joined: Mon Oct 20, 2014 1:50 pm

Re: Blargg's NTSC filter demo for Windows

Post by DragonDePlatino »

Awesome! Thanks for compiling this to make things easier on us artsy people. I'll definitely be giving this a shot with a bunch of my NES assets once I get home later. I'll show you my results.
tepples
Posts: 22705
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Blargg's NTSC filter demo for Windows

Post by tepples »

Bregalad wrote:What would be great is to have this as an option in a tile editor such as Tile Molester or YY-CHR, so that you can preview your BGs or sprites directly with the NTSC fiilter as you draw them.
Run my graphics editor in Nestopia with the NTSC filter turned on.
User avatar
Bregalad
Posts: 8055
Joined: Fri Nov 12, 2004 2:49 pm
Location: Divonne-les-bains, France

Re: Blargg's NTSC filter demo for Windows

Post by Bregalad »

Mmh, sorry, yes I know your editor is impressive and all, but honnestly running it like that is so much less user friendly than a PC program that allows the mouse to be used. Again sorry, but I'd sooner use YY-CHR without NTSC filter than your editor with NTSC filter.
User avatar
DragonDePlatino
Posts: 94
Joined: Mon Oct 20, 2014 1:50 pm

Re: Blargg's NTSC filter demo for Windows

Post by DragonDePlatino »

Here's an image for your first post using the map from my M25 project! I decided to choose something detailed to demonstrate that the NTSC filter isn't too destructive of details. On the left is the unaltered image, the center is FCEUX's filter at 3x zoom and the the right image is Blargg's filter.

Image

Threads are always better with images. :D
User avatar
rainwarrior
Posts: 8731
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Blargg's NTSC filter demo for Windows

Post by rainwarrior »

Why'd you squish the NTSC output vertically instead of leaving at its original increased width? The scaling you've applied seems to completely overshadow the NTSC filter.
User avatar
DragonDePlatino
Posts: 94
Joined: Mon Oct 20, 2014 1:50 pm

Re: Blargg's NTSC filter demo for Windows

Post by DragonDePlatino »

Well, the output of the NTSC filter was at a completely different aspect ratio than the other two versions so there wasn't much I could do to help that. I mean, I could have stretched it to force a 0.875 aspect ratio but that would have looked even sillier.
User avatar
rainwarrior
Posts: 8731
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Blargg's NTSC filter demo for Windows

Post by rainwarrior »

Why not leave it in its original aspect ratio?
User avatar
DragonDePlatino
Posts: 94
Joined: Mon Oct 20, 2014 1:50 pm

Re: Blargg's NTSC filter demo for Windows

Post by DragonDePlatino »

If I take this 256x224 image (0.875 aspect ratio)...

Image

Then I apply Blargg's filter and don't touch the output at all, I get this 602x448 image (0.744186 aspect ratio)

Image

That's impossible to cleanly resize back down to 256x224 unless I want to stretch the pixels in the process.
Post Reply