It is currently Mon Oct 16, 2017 7:15 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu Jun 15, 2017 7:09 am 
Offline
User avatar

Joined: Fri Nov 12, 2004 2:49 pm
Posts: 7223
Location: Chexbres, VD, Switzerland
Well, I have zero grudge against you or anyone else - I just find it's a shame you didn't use the "search" function in those specific cases - but if you don't want to use it I guess I can't force you to. It would save you a lot of time as you'd immediately see the existing answers appearing.


Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 7:21 am 
Offline
User avatar

Joined: Sat Sep 07, 2013 2:59 pm
Posts: 1389
Even on a purely factual level your complaint was not entirely justified:

The first thread that you linked only talked about logical organization of sprite order, not the ever changing, evenly distributed algorithm I'm looking for.

The second very short thread had maybe one single post where one possibility was explained a bit. The rest was mostly about slightly different stuff again. Hardly a full solution to my problem.

Besides, what am I supposed to do? Do you expect me to necrobump a seven or five year old thread?

_________________
Available now: My game "City Trouble".
Website: https://megacatstudios.com/products/city-trouble
Trailer: https://youtu.be/IYXpP59qSxA
Gameplay: https://youtu.be/Eee0yurkIW4
German Retro Gamer article: http://i67.tinypic.com/345o108.jpg


Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 7:32 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19084
Location: NE Indiana, USA (NTSC)
DRW wrote:
Do you expect me to necrobump a seven or five year old thread?

In the past, the preference here appears to have been necro over dupe. That's consistent with the worldview set forth in the classic Flash animation "Posting and You".


Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 8:32 am 
Offline
Formerly WheelInventor

Joined: Thu Apr 14, 2016 2:55 am
Posts: 890
Location: Gothenburg, Sweden
Isn't the sentiment against necroing that the content of the thread is no longer relevant/the original participants are no longer active? In which case, each thread can be individually judged based on its content and knowledge of the users.

Restricting dupes on the other hand seems most important in forums plagued by questions like "when will raspberry pi 4 be released" / "gee, i wish the next raspberry will have x gigs of ram or other features that goes against the foundation's principle to make 35 dollar educational computers widely available" and such? Especially on bostad with active users in the ten to hundred thousands?

_________________
http://www.frankengraphics.com - personal NES blog


Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 11:46 pm 
Offline
User avatar

Joined: Fri Nov 12, 2004 2:49 pm
Posts: 7223
Location: Chexbres, VD, Switzerland
DRW wrote:
Besides, what am I supposed to do? Do you expect me to necrobump a seven or five year old thread?

Indeed - you are "supposed" (that means really "encouraged") to look at existing info, and ask about things that remains unclear to you, including possibly necrobump something.

Quote:
Isn't the sentiment against necroing that the content of the thread is no longer relevant/the original participants are no longer active?

Many active people back then are still active today - many of us had been active here for the last 15 years.


Top
 Profile  
 
PostPosted: Fri Jun 16, 2017 1:24 am 
Offline
Formerly WheelInventor

Joined: Thu Apr 14, 2016 2:55 am
Posts: 890
Location: Gothenburg, Sweden
Precisely - so necroing doesn't seem to cause the same dilemma other boards may experience.

_________________
http://www.frankengraphics.com - personal NES blog


Top
 Profile  
 
PostPosted: Fri Jun 16, 2017 6:19 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1768
Location: DIGDUG
(Necro posts vs new similar post)

My opinion is "you should start a new thread". You get more [new] comments on a new post than a necro one, especially if the same people already commented in the necro post that are still here today.

Another thing...if you are new and have MANY questions, don't start 15 new threads, just continue on one thread.

Edit - added a word, in brackets

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Fri Jun 16, 2017 6:32 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1768
Location: DIGDUG
Back on topic.

I've tried...
"pick a random starting point each frame" and start filling from there, wrapping around. But not really random, nor just adding 9 each time (I think someone suggested something like that). But step through a list of start points that are preshuffled...0, $80, $20, $a0, $40, $c0, $60, $e0 or similar.

Or,
4 alternative lists of object ordering, for drawing metasprites...
(1,2,3,4,5,6,7,8)
(8,7,6,5,4,3,2,1)
(1,3,5,7,2,4,6,8)
(8,6,4,2,7,5,3,1)

Both were simple and seemed to work.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Mon Jun 19, 2017 1:39 pm 
Offline

Joined: Mon May 27, 2013 9:40 am
Posts: 351
I don't have a huge number of metasprites, and I don't usually need Z-order, so

1.- The index of the first metasprite to be processed is incremented each frame, modulus the total number N of sprites, by a prime of N. That way each metasprite in the list gets to be the first in a cycle of N frames.
2.- Then I iterate N times adding M to the current index modulus the total number N of sprites, with M a (different) prime of N. That way the whole list gets processed (i.e. sent incrementally to the OAM copy) in the current frame.

That way the order of metasprites is different enough from frame to frame without having to resort to lookup tables or random numbers.

This method proved useful in systems with a harshed limit of sprites per scanline such the SEGA SG-1000, which only supports 4 monochrome sprites per scanline.

_________________
http://www.mojontwins.com


Top
 Profile  
 
PostPosted: Mon Jun 19, 2017 3:35 pm 
Online
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10045
Location: Rio de Janeiro - Brazil
na_th_an wrote:
This method proved useful in systems with a harshed limit of sprites per scanline such the SEGA SG-1000, which only supports 4 monochrome sprites per scanline.

Too bad we can't see the actual effect in the video, since YouTube doesn't offer 60Hz playback for resolutions 480p and lower.


Top
 Profile  
 
PostPosted: Mon Jun 19, 2017 11:40 pm 
Offline

Joined: Mon May 27, 2013 9:40 am
Posts: 351
It is not 100% perfect but it does the job. Of course, with that number of sprites, the game is a blink fest :) You watch it yourself in any SEGA 8-bit emulator (for example Kega Fusion) as the game is free to download from our site or clicky, so no need for crappy youtube videos.

_________________
http://www.mojontwins.com


Top
 Profile  
 
PostPosted: Tue Jun 20, 2017 12:01 am 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5706
Location: Canada
tokumaru wrote:
na_th_an wrote:
This method proved useful in systems with a harshed limit of sprites per scanline such the SEGA SG-1000, which only supports 4 monochrome sprites per scanline.

Too bad we can't see the actual effect in the video, since YouTube doesn't offer 60Hz playback for resolutions 480p and lower.

We don't see the entire flicker sequence, but at least this is a flicker sequence that is long enough and varied enough that it still works when you drop every second frame, so it still looks effective at 30 Hz. (As opposed to various simple techniques with only 2-frame sequences where you end up only seeing half the picture.)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 5 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