Search found 745 matches

by Sik
Thu Jan 17, 2019 6:08 pm
Forum: Video Display Processor
Topic: Help scale and rotation sega genesis
Replies: 5
Views: 225

Re: Help scale and rotation sega genesis

Huuuuh yeah, get good at unrolling loops in asm and cycle counting because you'll need it (and by that I mean "unroll the loops for whole lines"). Although if you only limit yourself to scaling instead of rotation it'll be much easier, so you may want to look into that. I wouldn't expect 60 FPS (unl...
by Sik
Thu Jan 17, 2019 8:44 am
Forum: Video Display Processor
Topic: Help scale and rotation sega genesis
Replies: 5
Views: 225

Re: Help scale and rotation sega genesis

You could do it in software, but it's slow as hell (hence "Mega Drive can't do scaling/rotation") so you need to find ways to cheat :​O) If we're talking about sprites that don't take up the full screen (and you have some bandwidth to spare) these techniques could be useful: https://plutiedev.com/sc...
by Sik
Fri Jan 11, 2019 2:06 am
Forum: SGDK
Topic: Do you need tutorials ?
Replies: 69
Views: 13252

Re: Do you need tutorials ?

Just firing an interrupt every line (with an interrupt that returns immediately) will eat up about 10% of the CPU. So yeah… Also there's the problem that in practice you really don't want pixel-perfect collision: e.g. with enemies or other hazards you want to allow some contact before it registers (...
by Sik
Wed Jan 02, 2019 6:55 pm
Forum: SGDK
Topic: Sprite sorting
Replies: 49
Views: 824

Re: Sprite sorting

Thanks Stef! ...can't you reverse add ordering so they are added from top to bottom priority order in the meantime... No I can't, since the order of the 16 added sprites aren't important. It is only important that they all appear in front of the already existing sprites (especially the sprite that ...
by Sik
Sun Dec 30, 2018 5:37 am
Forum: Megadrive/Genesis
Topic: Tons of trouble with Echo (pulling my hair out)
Replies: 11
Views: 470

Re: Tons of trouble with Echo (pulling my hair out)

Locking a channel outright forces a key-off on return (on the assumption that BGM will eventually play a new note later). Behavior has to be like this because it's not always possible to restore an ongoing note (it's pretty problematic for FM in particular).
by Sik
Fri Dec 28, 2018 5:59 am
Forum: Megadrive/Genesis
Topic: Tons of trouble with Echo (pulling my hair out)
Replies: 11
Views: 470

Re: Tons of trouble with Echo (pulling my hair out)

First of all my BGM files are locking all of the channels, which seems sorta wrongish. …yeah, Echo will screw up spectacularly if you try to use the lock commands in a BGM (it'll try to execute a different event and possibly go out of sync with the stream, which means it'll execute garbage… althoug...
by Sik
Thu Dec 27, 2018 5:32 pm
Forum: Megadrive/Genesis
Topic: Tons of trouble with Echo (pulling my hair out)
Replies: 11
Views: 470

Re: Tons of trouble with Echo (pulling my hair out)

That sounds more like a bug in Echo than hardware >.> Not like I can tell without the stream.

Echo is a buggy piece of shit and honestly I'm surprised anybody still uses it instead of XGM. Maybe because the latter doesn't do FM sound effects…
by Sik
Tue Dec 25, 2018 12:05 am
Forum: Megadrive/Genesis
Topic: Tons of trouble with Echo (pulling my hair out)
Replies: 11
Views: 470

Re: Tons of trouble with Echo (pulling my hair out)

EDIT 3: Alright that's WAY better. Only issue now is that the sound effect retains the panning of whatever was playing before, but I probably just need to modify the exporter to initialize all used channels with default panning. Yeah, if it plays on a channel that may be panned then the sound effec...
by Sik
Mon Dec 24, 2018 5:41 pm
Forum: Megadrive/Genesis
Topic: Tons of trouble with Echo (pulling my hair out)
Replies: 11
Views: 470

Re: Tons of trouble with Echo (pulling my hair out)

The stream you posted looks correct (aside from needlessly resetting LFO), so that's not it... but sfx_Cursor.esf.bytes has different values (the first three bytes are 32 34 38 instead of F8 22 00). That probably would do it…
by Sik
Thu Dec 13, 2018 10:11 am
Forum: Controls
Topic: Activator read and write
Replies: 1
Views: 424

Re: Activator read and write

Here are the routines in question (cleaned up for easier reading). The ROM in question is "Activator Command Demo 60 Hz (W) [c][!].bin". At $001FC0: ;**************************************************************************** ; ReadActivator ; Reads the sensors from the Activator. ;----------------...
by Sik
Thu Dec 13, 2018 8:05 am
Forum: Controls
Topic: Activator read and write
Replies: 1
Views: 424

Activator read and write

So, it turns out you can write back to the Activator to change the heights it's looking for. Although it seems only the demo program may be doing it, no idea if the released device supports this (especially seeing as it looks up if light bounces at a certain angle or not , it'd require either tiltin...
by Sik
Thu Dec 13, 2018 7:48 am
Forum: Controls
Topic: Every peripheral ID?
Replies: 6
Views: 226

Re: Every peripheral ID?

Ugh, I thought it used some switch or something (you can tell I never had an Activator :​v), I thought I had figured out what was going on but that throws me off again. This thing is doing something really weird with the direction of the pins. I guess it determines whether to stay in compatibility m...
by Sik
Thu Dec 13, 2018 2:43 am
Forum: Controls
Topic: Every peripheral ID?
Replies: 6
Views: 226

Re: Every peripheral ID?

It's returning the sensor state for all 16 sensors in one packet. First the 8 low sensors for kicks, and then the 8 high sensors for punches. The only thing you can't tell from the code is which way the sensors go around the octagon. That last part is what I can't figure out :​O) (although not rele...
by Sik
Wed Dec 12, 2018 6:00 am
Forum: Controls
Topic: Every peripheral ID?
Replies: 6
Views: 226

Re: Every peripheral ID?

There's also the possibility of DATA0 being pulled either up or down, which is how the printer adapter is likely doing its peripheral ID (since it also has the issue of DATA lines being output). From what I gather, Activator has TH and DATA0 as output, and the rest as input (unlike just about every ...
by Sik
Mon Dec 10, 2018 9:31 am
Forum: Controls
Topic: Every peripheral ID?
Replies: 6
Views: 226

Every peripheral ID?

Trying to build a list of every peripheral ID we can figure out (and a list of peripherals that can't be detected this way). So far what I could collect: 1111 (15) : undetectable 1101 (13) : Mega Drive controller 1100 (12) : Mega Drive controller* 1011 (11) : Saturn controller 1010 (10) : Mega Anser...