Character optical illusion

Basic and Machine Language

Moderator: Moderators

User avatar
kelp7
Vic 20 Amateur
Posts: 40
Joined: Fri Aug 29, 2008 4:16 am

Re: Character optical illusion

Post by kelp7 »

Which is what I wondered. Wouldn't that effectively be 25fps ? Is 25fps not fast enough to fool the human eye?
MZ-80A Secrets
http://mz-80a.com
tlr
Vic 20 Nerd
Posts: 567
Joined: Mon Oct 04, 2004 10:53 am

Re: Character optical illusion

Post by tlr »

kelp7 wrote:Which is what I wondered. Wouldn't that effectively be 25fps ? Is 25fps not fast enough to fool the human eye?
Absolutely not.

Think of a flourescent light. That flickers at 100 Hz or 120 Hz depending on your country. (i.e both positive and negative half cycles) If you slow that down to 25 Hz it's going to flicker quite a bit.
rhurst
Omega Star Commander
Posts: 1369
Joined: Thu Jan 31, 2008 2:12 pm
Website: https://robert.hurst-ri.us
Location: Providence, RI
Occupation: Tech & Innovation

Re: Character optical illusion

Post by rhurst »

... and you all came back full circle to my first reply and suggestion that he just run Omega Fury for himself, as it does a proper VIC screen bank switch between screen update cycles to swap-out (any) two static characters (and sometimes colors) that occupy the same space:

1. Grenade mine is two green set of diamonds
2. Hull blaster is white skull alternating with purple cross
3. Sonic blaster are blue & cyan waves ((())), very nice effect
4. Heart stopper are simple red hearts, one smaller to look like its beating

So, yes, it FLICKERS. He wrote (flicker-free), which any one of us knows the (real) VIC screen flickers regardless. :lol:

Especially (full-speed) @ 30 fps for NTSC, 25 fps for PAL, best you can achieve. But as a cheap trick for animation or for getting two colors in "hi-res" mode, the "optical illusion" sought for "works" on a 1980s piece of hardware. :roll:

Or run this demo with +8K memory expansion and see the VIC graphic ball character (solid alternate with outline) effect on a later screen.
Any technology distinguishable from magic is insufficiently advanced.
https://robert.hurst-ri.us/rob/retrocomputing
User avatar
kelp7
Vic 20 Amateur
Posts: 40
Joined: Fri Aug 29, 2008 4:16 am

Re: Character optical illusion

Post by kelp7 »

Aha, I think I have all the understanding I need now :) Thanks everyone and sorry it was such a silly/basic question....!
MZ-80A Secrets
http://mz-80a.com
RJBowman
Vic 20 Enthusiast
Posts: 198
Joined: Tue Oct 25, 2011 7:50 pm

Re: Character optical illusion

Post by RJBowman »

Are you trying to switch back and forth rapidly to create a persistence-of-vision effect of two overlapping characters? If that is what you are trying to do, then the best bet is a raster-synchronized machine language subroutine that switches the characters thirty times per second. The result, if everything works perfectly, could be two semi-transparent characters superimposed into the same spot on the screen. Whether or not this produces flickers will depend on the persistence of the phosphors in your monitor.
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: Character optical illusion

Post by groepaz »

switches the characters thirty times per second.
better do that once per frame, ie 50(pal) or 60(ntsc) times per second :)
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
RJBowman
Vic 20 Enthusiast
Posts: 198
Joined: Tue Oct 25, 2011 7:50 pm

Re: Character optical illusion

Post by RJBowman »

You might think that 60 FPS was the way to go if you didn't know about interlaced video. At sixty per second, some monitors will display an interlaced image, with each row of pixels split vertically, one character at the upper half of the row, the other character at the lower half of the row.
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: Character optical illusion

Post by groepaz »

unless you actually somehow make the VIC output an interlaced signal (that means shifting down every other frame half a line), no. if a monitor shows it the way you say, then its deinterlacer is broken :)
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
User avatar
darkatx
Vic 20 Afficionado
Posts: 470
Joined: Wed Feb 04, 2009 2:17 pm
Location: Canada

Re: Character optical illusion

Post by darkatx »

Flicker Fusion frequency is 24 FPS/Hz or whatever. :roll:

The trick is in the changes themselves - if they're gradual then its seamless as in animation. Can people still detect flicker at that range? Well yeah, but it all depends on what you're trying to achieve.
Learning all the time... :)
rhurst
Omega Star Commander
Posts: 1369
Joined: Thu Jan 31, 2008 2:12 pm
Website: https://robert.hurst-ri.us
Location: Providence, RI
Occupation: Tech & Innovation

Re: Character optical illusion

Post by rhurst »

darkatx wrote:... but it all depends on what you're trying to achieve.
Well stated, enough said.
Any technology distinguishable from magic is insufficiently advanced.
https://robert.hurst-ri.us/rob/retrocomputing
User avatar
tokra
Vic 20 Scientist
Posts: 1120
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: Character optical illusion

Post by tokra »

groepaz wrote:unless you actually somehow make the VIC output an interlaced signal (that means shifting down every other frame half a line), no. if a monitor shows it the way you say, then its deinterlacer is broken :)
Set bit 7 of $9000 - sadly VIC-6560 (NTSC) only
User avatar
kelp7
Vic 20 Amateur
Posts: 40
Joined: Fri Aug 29, 2008 4:16 am

Re: Character optical illusion

Post by kelp7 »

Awesome replies all but not quite the original idea :-)
Thanks though, I've realised by now it's not possible.

I wanted, as an example, to put the character 'A' on the screen at position x0,y0 in the first frame (out of the 50 frames), then in the 2nd frame, put character 'B' there in the same position, then swap back to 'A' in the 3rd frame, then swap to 'B' again in the 4th frame etc etc in the hope you could somehow make it look as if two display characters were occupying the same space on the screen...
MZ-80A Secrets
http://mz-80a.com
Post Reply