Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Half pixel shifting
2005-11-21 08:13
Twynn
Account closed

Registered: Nov 2005
Posts: 9
Half pixel shifting

First of all: It's good to see that the C64-scene is still alive.
I kinda left the scene about ten years ago but after accidently crossing this site I got interested a bit again. Downloaded some demo's to see what happened since I left and I was quite amazed. Not those ugly 8x8 modes anymore, but good looking demos.

Anyway, when I was watching krestage I saw this intro for each demopart which used this high-resolution text which is said to use half pixel shifting? I'm still familiar with the normal vic-tricks, but this one made me curious.

Now I wonder how this is done. Is it just a visual trick or has the vic really some possibility to do half pixel movements or something?
2005-11-21 08:27
Oswald

Registered: Apr 2002
Posts: 5094
just a visual trick, tho I dunno how is it done, and if it can be at any level considered as a half pixel shift.
2005-11-21 08:29
Cruzer

Registered: Dec 2001
Posts: 1048
Just move the gfx one pixel each 2nd frame. E.g. if moved vertically the eye will be between two lines on the 2nd frame, since the eye will move smoothly rather than stopping and starting 25 times per second. If you then display the equal lines of the gfx on one frame and the odd lines on the other it will almost look like there's twice as many lines.

Same concept as interlace on a normal TV signal, except here the lines are auto-displaced half a line each frame, so you don't have to move your eyes.
2005-11-21 08:35
HCL

Registered: Feb 2003
Posts: 728
No, it's just a visual trick.

Theoretically you may think that the graphics is twice as wide as the screen, so when you show it you can only display every second pixel. But since the scroller moves one pixel each frame, you will display the other second half of the gfx the next frame. and so on..

Since the scroller moves with a constant speed, it also flickers between the two graphic screens at a constant rate. This makes it look good.
2005-11-21 08:56
Oswald

Registered: Apr 2002
Posts: 5094
I understand then. In short this is the same as IFLI interlacing, or as in the demo 400, which doubles the vertical resolution. But doing this with a diagonal scroll you may *think* that you doubled both resolution. As the displayed graphics only alternates between 2 of a kind, its not even virtually 640x400 imho, as to really display the amount of data needed you would need to display 4 kinds of gfx.
2005-11-21 09:33
JackAsser

Registered: Jun 2002
Posts: 2014
IFLI is not the same since in IFLI you actually shift half a multicolor pixel, thus you don't have to scroll the image to get the impression of higher resolution, you actually get true interlacing in IFLI.
2005-11-21 09:47
Twynn
Account closed

Registered: Nov 2005
Posts: 9
Ok, thanx all.

Just a little interlace trick.. Well, still nicely done.

JackAsser: isn't IFLI actually more ment for producing more colors instead of a higher resolution?
2005-11-21 10:00
JackAsser

Registered: Jun 2002
Posts: 2014
Twynn: If you shift half a pixel you get higher resolution, if you don't shift you get color blending, that's basically it when it comes to interlacing. However, the artist may use interlacing as a means of color blending if the pixels are put correct.
2005-11-21 11:20
algorithm

Registered: May 2002
Posts: 705
Doesn't really matter if it is a genuine VIC trick or illusion. As long as it gives the effect, that is all that matters.

Some other examples are alternative interlace methods which seem to reduce flicker (line interlacing or cross hatch)
2005-11-21 11:30
Oswald

Registered: Apr 2002
Posts: 5094
anyone knows of a ifli pic where each line is shifted to the opposite direction ? I wonder if that method is ufeful.
2005-11-21 11:46
chatGPZ

Registered: Dec 2001
Posts: 11386
oswald: i tried this a (long) time ago...it actually improves the quality of the interlace quite a bit (depending on the picture ofcourse). its a simelar thing with evening out the luminance of both half frames. the first will improve horizontal color blending (since the picture will be displayed in a "checkerboard" style all the time) and the second will reduce flickering.
 
... 43 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 | 4 | 5 | 6 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
leonofsgr/Singular C..
Conjuror
ΛΛdZ
CreaMD/React
Andy/AEG
Didi/Laxity
Guests online: 139
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.045 sec.