nesdev.com
http://forums.nesdev.com/

sprite rendering
http://forums.nesdev.com/viewtopic.php?f=3&t=521
Page 1 of 1

Author:  mattmatteh? [ Mon Aug 29, 2005 7:49 am ]
Post subject:  sprite rendering

i am working on gettting sprites to work. reading BT docs, the sprite buffer is parsed during the rendering to fill the in range temp buffer. for accuracy, can this be done after the rendering but before hblank? or if the game does a mid scan trick i am not sure if i need to code that by ppu cc. i was going to code it by ppu cc during hblank for getting the in range sprites ready for the next scan line. sorry if i didnt word this question right.

and, i have a registered log in name but can not log in. i had the password emailed to me and tried that but still failed.

matt

Author:  Disch [ Mon Aug 29, 2005 10:14 am ]
Post subject: 

I loaded all the sprite data on cycle 256 of the previous scanline. That's probably "good enough" for every existing commercial game (I don't know of any which do mid-frame sprite tricks -- and if they do, they likely shut the PPU off for a few scanlines anyway)

Author:  Zepper [ Mon Aug 29, 2005 3:41 pm ]
Post subject: 

I can't say I'm right 'cuz my PPU engine starts at cc zero (instead of previous scanline bleh bleh). Anyway, by parsing the sprites during cc 0-255 would cause glitches due to $2002.20 being set prematurely (?). Taking cc 256 seems to fix this problem. It would require a real test though.

Author:  Guest [ Mon Aug 29, 2005 4:22 pm ]
Post subject: 

what about the sprite computing during hblank? anyone have problems doing that at the end instead of by each ppu cc

matt

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/