<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - Logones & NES graphics, clarifying "attributes"]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/9693/"/>
	<updated>2013-01-03T01:34:38Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/9693/logones-nes-graphics-clarifying-attributes/</id>
		<entry>
			<title type="html"><![CDATA[Re: Logones & NES graphics, clarifying "attributes"]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/148906/#p148906"/>
			<content type="html"><![CDATA[<p>Thanks Kvee, I kind of worked it out. I am fiddling around with a 16 color image which kind of &quot;fades&quot; from top to bottom. I am trying to convert it to nes but the palettes were really confusing me. Thanks for clarifying!</p>]]></content>
			<author>
				<name><![CDATA[Lazerbeat]]></name>
				<uri>https://chipmusic.org/Lazerbeat</uri>
			</author>
			<updated>2013-01-03T01:34:38Z</updated>
			<id>https://chipmusic.org/forums/post/148906/#p148906</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Logones & NES graphics, clarifying "attributes"]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/148841/#p148841"/>
			<content type="html"><![CDATA[<p>I&#039;m not really familiar with logoNES or the other tools, only with PPU palettes in general.<br /></p><div class="quotebox"><cite>Lazerbeat wrote:</cite><blockquote><p>But the nametables dont always seem to use the palettes I expect after I complile the rom.</p></blockquote></div><p>Are they <em>completely</em> off, or do they differ in some of the colors only?<br />The thing is, three of those 16 colors (bytes 4, 8, 12) are not really used, instead, the PPU uses the first byte&#039;s value. Might be related. (<a href="http://wiki.nesdev.com/w/index.php/PPU_palettes" target="_blank">...</a>)</p><div class="quotebox"><cite>Lazerbeat wrote:</cite><blockquote><p>As far as I can work out, each 16x16 square of tiles has some way to specify which of the 4 palettes it should use?</p></blockquote></div><p>Yep, the so-called <a href="http://wiki.nesdev.com/w/index.php/PPU_attribute_tables" target="_blank">attribute tables</a> define this relation.</p><p>Sorry I can&#039;t be of more help. Hey, if noone else can help, I could look into this. :]</p>]]></content>
			<author>
				<name><![CDATA[kvee]]></name>
				<uri>https://chipmusic.org/kvee</uri>
			</author>
			<updated>2013-01-02T18:46:36Z</updated>
			<id>https://chipmusic.org/forums/post/148841/#p148841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Logones & NES graphics, clarifying "attributes"]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/148829/#p148829"/>
			<content type="html"><![CDATA[<p>I don&#039;t know what LogoNES is but in memory there is 960 bytes of the nametable (32 x 30 set of tiles to use) followed by 64 bytes of attribute (palette to use for each 2x2 tile region, 4 to a byte). If using shiru&#039;s tool make sure that you &quot;save nametable and attributes&quot;, which should save the whole thing together as a 1kb block of data.</p>]]></content>
			<author>
				<name><![CDATA[rainwarrior]]></name>
				<uri>https://chipmusic.org/rainwarrior</uri>
			</author>
			<updated>2013-01-02T17:27:33Z</updated>
			<id>https://chipmusic.org/forums/post/148829/#p148829</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Logones & NES graphics, clarifying "attributes"]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/148606/#p148606"/>
			<content type="html"><![CDATA[<p>Sorry. I was a little drunk when I first read this.&nbsp; I missed the fact you already had the code posted. Ignore.</p>]]></content>
			<author>
				<name><![CDATA[DSC]]></name>
				<uri>https://chipmusic.org/DSC</uri>
			</author>
			<updated>2013-01-01T06:51:04Z</updated>
			<id>https://chipmusic.org/forums/post/148606/#p148606</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Logones & NES graphics, clarifying "attributes"]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/148605/#p148605"/>
			<content type="html"><![CDATA[<p>I am dabbling with logones and I am having a bit of trouble understanding how the pallettes work. I am comfortable with .chr and nametable and I am using shirus&nbsp; nesST to edit both. The one thing which is tripping me up is the colors. As far as I can work out, the 4 pallets are defined in logones NOT in nesST. The relevant code is this part here</p><div class="quotebox"><blockquote><p>palette:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; palette data<br />;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p1&nbsp; &nbsp; p1&nbsp; &nbsp;p1&nbsp; &nbsp;p1&nbsp; &nbsp;p2&nbsp; p2&nbsp; &nbsp; p2&nbsp; &nbsp;p2&nbsp; &nbsp;p3&nbsp; &nbsp;p3&nbsp; &nbsp;p3&nbsp; &nbsp;p3&nbsp; &nbsp;p4&nbsp; &nbsp; p4&nbsp; p4&nbsp; &nbsp;p4<br />&nbsp; &nbsp; &nbsp; &nbsp; .byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 0 - aligns with pic0.nam below<br />&nbsp; &nbsp; &nbsp; &nbsp; .byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$0F,$0F,$00,$0F ; palette 1 - alings with pic1.nam below<br />&nbsp; &nbsp; &nbsp; &nbsp; .byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 2 - aligns with you know what below...<br />&nbsp; &nbsp; &nbsp; &nbsp; .byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 3<br />&nbsp; &nbsp; &nbsp; &nbsp; .byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 4<br />&nbsp; &nbsp; &nbsp; &nbsp; .byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 5<br />&nbsp; &nbsp; &nbsp; &nbsp; .byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 6<br />&nbsp; &nbsp; &nbsp; &nbsp; .byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 7<br />&nbsp; &nbsp; &nbsp; &nbsp; .byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 8<br />&nbsp; &nbsp; &nbsp; &nbsp; .byte $08,$00,$10,$30,$0F,$05,$26,$30,$0F,$13,$23,$33,$08,$18,$18,$08 ; palette 9</p></blockquote></div><p>But the nametables dont always seem to use the palettes I expect after I complile the rom. As far as I can work out, each 16x16 square of tiles has some way to specify which of the 4 palettes it should use? Is that right? However when I am using nesST I cant quite nail down how to specify that. Also in logo nes. it is pallet 4 which color cycles?</p><p>Sorry if that is a bit specific but thanks to anyone who can help!</p>]]></content>
			<author>
				<name><![CDATA[Lazerbeat]]></name>
				<uri>https://chipmusic.org/Lazerbeat</uri>
			</author>
			<updated>2013-01-01T05:23:25Z</updated>
			<id>https://chipmusic.org/forums/post/148605/#p148605</id>
		</entry>
</feed>
