'torch' effect ?

For anything related to VDP (plane, color, sprite, tiles)

Moderators: BigEvilCorporation, Mask of Destiny

Post Reply
User avatar
KanedaFr
Administrateur
Posts: 1117
Joined: Tue Aug 29, 2006 10:56 am
Contact:

'torch' effect ?

Post by KanedaFr » Sat Oct 21, 2017 11:17 pm

Here comes another "how would you do that ?" post ;)

I'd like to add a torch effect on my game, when you're on a cave.
By torch effect, i mean this circle around when everything (tile/sprite) not INSIDE it won't be visible.
Something near
Image
without the blur effect of course

I assume i add to use a plan with a hole on it, and handle priorities BUT i wonder if it could also be done by sprites, using shadow/hightlight ?

Moon-Watcher
Very interested
Posts: 117
Joined: Sun Jan 02, 2011 9:14 pm

Re: 'torch' effect ?

Post by Moon-Watcher » Sun Oct 22, 2017 12:48 am

Mickey Mania do it without any effect and works okay for me
https://youtu.be/iL6xnm5pJIM?t=1093

User avatar
Sik
Very interested
Posts: 716
Joined: Thu Apr 10, 2008 3:03 pm
Contact:

Re: 'torch' effect ?

Post by Sik » Sun Oct 22, 2017 1:11 am

That's the SNES version though (SNES has it easy)... here's the Mega Drive counterpart
https://youtu.be/6znkZOa5EBE?t=817

The question is whether you want to waste a plane or not. Wasting a whole plane on it makes things much easier, but it means no parallax (or minimal one, if aided through sprites or software rendering the parallax). That said, using sprites for a cutout is probably even less flexible because of sprite bandwidth (in fact, at the top and bottom borders you'll actually be unable to render sprites).

Another alternative (which I recall seeing in a PC Engine game) is to rewrite the tilemap as you move around to darken tiles that are further away. But that's relatively low resolution and eats up palettes (neither are an issue on the PCE since you can waste palettes and using many of them for blurring helped make up for the low resolution... but this is a MD we're talking about). Alternatively you can use different tiles instead of the same tile with different palettes, at the expense of more memory. Either case this is horribly cumbersome to do.
Sik is pronounced as "seek", not as "sick".

User avatar
Miquel
Very interested
Posts: 341
Joined: Sat Jul 30, 2016 12:33 am

Re: 'torch' effect ?

Post by Miquel » Sun Oct 22, 2017 11:59 am

KanedaFr wrote:
Sat Oct 21, 2017 11:17 pm
i wonder if it could also be done by sprites, using shadow/hightlight ?
As the image you post no. Other sprites will be not obscured or, totally hidden while the scenario remains visible.

But you can do it with normal sprites.
Yeah, I see you have to hive hope for the “believers” and the “non- believers”. Don’t worry I know.
“How much you have yet to learn”, is usually what them tell me when I fail to comprehend.

Manveru
Very interested
Posts: 60
Joined: Wed Sep 05, 2012 3:30 pm

Re: 'torch' effect ?

Post by Manveru » Sun Oct 22, 2017 2:51 pm

It is not exactly the same, but you can keep the two planes using h/s, like in The lost World https://youtu.be/VPzKP8zubs0?t=1h53m36s. The only thing is i don't know how they do it :lol:
The man who moves a mountain begins by carrying away small stones. Confucius, 551-479 BC

User avatar
Miquel
Very interested
Posts: 341
Joined: Sat Jul 30, 2016 12:33 am

Re: 'torch' effect ?

Post by Miquel » Sun Oct 22, 2017 4:12 pm

Also notice you can do it all, including the "blur effect", with palettes. In fact, palettes are the most powerful technique there is, most of the timer overlooked because they are easy.
Yeah, I see you have to hive hope for the “believers” and the “non- believers”. Don’t worry I know.
“How much you have yet to learn”, is usually what them tell me when I fail to comprehend.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests