Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Harvey ! (Registered 2024-11-25) You are not logged in - nap
CSDb User Forums


Forums > CSDb Discussions > VICE PAL Emulation Patch
2007-09-21 20:05
chatGPZ

Registered: Dec 2001
Posts: 11357
VICE PAL Emulation Patch

inspired by some of E.D.s comments i played with improving the PAL emu. read details in the txt.

http://hitmen.c02.at/temp/patch122-palemu.txt
http://hitmen.c02.at/temp/vice-1.22-palemu-0.diff

try it :)

example:

http://hitmen.c02.at/temp/old.png
http://hitmen.c02.at/temp/new.png
2007-09-21 20:30
Oswald

Registered: Apr 2002
Posts: 5086
nice one, btw being so faithfull.. how about emulating also the grey dots & the slightly visible vertical lines of charcolumns of newer VICIIs?
2007-09-21 20:38
chatGPZ

Registered: Dec 2001
Posts: 11357
the first is related to the actual VIC emulation, i surely wont touch that =D (and i hate those grey dots, so thats a double nono =D) afaik the actual cause of these dots isnt exactly known either, so its kinda hard to emulate.

the other is similar to the red/green artifacts that you get with composite video when displaying alternating black/white patterns in hires..... simply said, both are caused by "mixing" of the color and the luma signal. (part of the luma is interpreted as color) emulating this halfway accurate would be VERY computing intense. maybe in some years :=)
2007-09-21 22:31
MagerValp

Registered: Dec 2001
Posts: 1074
Interesting stuff, this will make PAL emulation nearly 100%.
2007-09-22 08:55
Sledge

Registered: Sep 2003
Posts: 102
Quote: nice one, btw being so faithfull.. how about emulating also the grey dots & the slightly visible vertical lines of charcolumns of newer VICIIs?

Perhaps I have missed this, but what is the "grey dots" effect on the newer VIC-II?

2007-09-22 09:13
tlr

Registered: Sep 2003
Posts: 1787
I never had a newer VIC-II myself, but I saw this the first time when the C128's started popping up. A grey dot appears in some cases when changing a color register like $d020.
Don't know the details either, but doing color splits, even if all colors are black can show this.

We deemed those new machines broken ofcourse, but then again linecrunch + vsp quite frequenctly froze my machine... :)
2007-09-22 09:46
MagerValp

Registered: Dec 2001
Posts: 1074
I think the color registers are multiplexed, and there's a timing glitch in the HMOS chips. When you write to the register it's unavailable for a short while from the picture generation circuit, and it gets floating inputs ($f), outputting a grey dot. I'm just guessing though, and have no details to back it up.

Either way, to emulate it you don't have to understand it perfectly :) Just output a half a pixel wide grey dot when updating the register.

YAPE, the plus/4 emulator, has grey dot emulation btw.

2007-09-22 09:57
tlr

Registered: Sep 2003
Posts: 1787
Ah, seems like a resonable theory.
AFAIK outputing half a pixel isn't supported in the core raster emulation code of vice currently though.
(common to all platforms)
2007-09-22 11:33
chatGPZ

Registered: Dec 2001
Posts: 11357
so, did anyone try the darn patch? =P
2007-09-22 11:34
Scout

Registered: Dec 2002
Posts: 1570
Quote: so, did anyone try the darn patch? =P

Well, if there was a Windows binary I would have...

Sorry ;)
2007-09-22 11:36
tlr

Registered: Sep 2003
Posts: 1787
The screen shots look really nice, maybe we'll drop this into VICEplus?
2007-09-22 11:44
chatGPZ

Registered: Dec 2001
Posts: 11357
it might need some additional patches to work with 256 colors, not sure .... try it =)
2008-04-26 10:24
Ed

Registered: May 2004
Posts: 173
Ok. so I built my own vice with the Groepaz patch using Ubuntu 8.04 LTS

First I downloaded the latest vice 1-22.tar.gz (source file) then I just put it in my Documents folder (you can of course put it anywhere you feel like storing it... Like for instance in your games folder.

i go to the System-> Administrator Tools -> Synaptic Package Manager and make sure I have build-essential and libxaw7-dev. (Just search for these, mark them and install them and their dependencies). (Yeah I know. commands rule, mouse gestures and windows dont :P )

Ok we are ready to start. Open a terminal: Applications -> Acessories -> Terminal:

cd Documents

farbraus.d64
vice-1.22-palemu-0.diff
patch122-palemu.txt Play_With_Colours_by_Wrath_Designs.d64
vice-1.22.tar.gz

tar -xvf vice-1.22.tar.gz

... it runs it untar thing...

patch -p1 < vice-1.22-palemu-0.diff

... it patches. Please keep the .diff file outside of
the vice 1-22 folder when patching...

then i enter the vice 1-22 folder, and write

make

... it runs it thing...

sudo make install


ok, if nothing went wrong you should be able to run the vice-emu, with command:

sudo x64

.. this because we want to change stuff and then save setting...
make sure to activate pal emulation and exakt colours...

I ran the Play_With_Colours_by_Wrath_Designs.d64
and it looked good. Also, I ran the good old demo
where the last graphics upscroller flicker very nicely, just like on the c64. Oh and even the Mirage
football look great :)

So. Incorporate this into vice emulator, dear vice creators and please throw in some easy to use
gliders/sliders/setting boxes, or anything else to make it tweakable... (did not get that working
here ok... but hey.. Ubuntu since 2008 04 24 -> only :) )

Oh, and remember that farbraus does not look that extra
cool run with true pal emulation :P

Respect

/Eddie
2008-04-26 17:45
chatGPZ

Registered: Dec 2001
Posts: 11357
.... and if you cant wait, the viceplus svn has it included, including gui options :)
2009-07-21 15:19
Joe

Registered: Apr 2002
Posts: 226
I'm interested in the newly raised questions about the check board mixing of colors and the behaviour of it on a real machine and let's say a 1084S monitor.
It seems most of the similar color blends in horizontal axis has been resolved, but not all of the vertical artefacts (or even diagonally and so on).
I remember that if one dithered black with extremely bright colors, the field could really stand out more (usually being heavily darker than what it would seem in emulation).
In a non-emulation it would probably look like the black color wasn't any different from let´s say dark grey or even middle grey part from the joining hm... Cyan?
It would be of interest if anyone could emulate to particularities from the real machine, and I do remember that they are even greater in hires.
2009-07-21 15:28
Joe

Registered: Apr 2002
Posts: 226
*In a non-PAL Emulation*
2009-07-24 17:29
Adam

Registered: Jul 2009
Posts: 323
Does anyone know how to use VICE on an external screen?
Im trying to run it on my PAL 50Hz television but VICE
insists on running on my monitor instead. I've got
multiple outputs on my video card and would like to
use my TV as the main monitor for VICE instead..
(for even more true PAL emulation!) ;)

>> Adam/Usagi <<
2014-08-08 13:29
Jammer

Registered: Nov 2002
Posts: 1335
Has anyone used recent build of Stella (Atari 2600 emulator)? There have emulated plenty of video signals and IMHO they did this right. Maybe WinVice should borrow the algorithm? ;)


2014-08-08 16:41
chatGPZ

Registered: Dec 2001
Posts: 11357
uhm, those images show the horizontal blur that VICE can do since forever? or what am i missing?
2014-08-08 19:29
Jammer

Registered: Nov 2002
Posts: 1335
WAT? ;) Not only, pay attention. Vice so far cannot emulate well those 'shadows'. Also greenish vertical gradient bars on light checkerboards are not handled well whereas Stella has no bigger problems here. To my eyes, Stella takes more details into account.
2014-08-08 19:51
algorithm

Registered: May 2002
Posts: 705
If you have a beefy computer, check out Micro64 and turn on the full PAL/CRT emulation :-)
2014-08-08 20:02
Jammer

Registered: Nov 2002
Posts: 1335
https://www.youtube.com/watch?v=d1qEP2vMe-I

Now that... was really awesome! :D
2014-08-09 08:56
TheRyk

Registered: Mar 2009
Posts: 2219
Wow, I wonder how much "beef" you would need to use this properly. Time for a new tower anyway after 3 or 4 years :)
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
FABS/HF
Mike
zscs
Barfly/Extend
Epyx/TSA
rexbeng
Alakran_64
Jammer
Electric/Extend
Rock/Finnish Gold
ArturoDente
Britelite/Dekadence
Guests online: 101
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 The Demo Coder  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Wonderland XIV  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Triad  (9.2)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Mikael  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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