Dithering Pattterns

I've replaced the black dots with 50% gray dots. Sometimes this improves the appearance of the terrain tiles. This depends of course on the terrain tiles.

I've never left it blank.
I met the problem when I made winter terrain for TSFE. There are two kinds of hills: snow-covered for Europe and without snow for Africa. I wanted to blank out the dithering but met the same problem as you.

I haven't tried to change the dithering colour. It sounds interesting. Maybe it is possible to create special graphic effects for scenarios when changing some aspects of dithering :crazyeye:
The trick with blanking out the dither pattern, is to leave just a couple of black pixels, and it will work. If you leave a black pixel in each end of the square, its practically blanked, and terrains etc won't be dithered, except for those few pixels. The downside to removing the dithering is that terrains that are very different from the coastline colours won't blend in with the coastline, making it look a tad blocky and out of place.
sorry my english is not very good
maybe i'm wrong but are u speaking of delete the "mixed" pixels of the terrains squares ?

like this ? (MGE version)

or this (ToT version)

for ToT there's a little problem, Terrain must stay in it "base square", MGE terrains can oversize the upper side of the "base" square"
honestly... i don't know !

i just remember i've made lots and lots tests before i succeed to have "clean" terrain types without any "mixed" sprites

the strange thing is the difference between ToT and MGE as i've say in my previous messages.
yes as u can see there's some white, yellows or red bug pixels but they stand on the "ocean" not the ground terrains maybe i've not change as it should be the "ocean" terrain2 tiles
I did some extensive testing on this subject for my RiverWar scenario. If anyone noticed, I added a lot of dithering dots there with the effect to make all terrain a bit smoother. The only terrain that doesn't work as well as the others is the grassland terrain. With too many dots the grassland will cause strange horizontal lines to show up, which was mentioned earlier in this thread i believe.

Anyway, if you remove the entire dithering square, the whole map will be full with those horizontal lines. For some reason, though, this is only the case if you make it all purple (palette no 253 if I am correct). If the pink background colour is used, it does work as it should.
I don't remember the exact details anymore by heart, whether you should retain the diamond form or not, but this should work. Otherwise, have a look at my RiverWar scenario and try adding some dots and removing them.
... the white, yellows or red ocean bug pixels was due to some mistakes with the ocean tiles of terrain2 file

i've updated it and as u can see now on the 2 screenshots, these visual bugs didn't appears anymore !

need to update my scenario zip file now.
I'm sorry, but I read, but I still can't figure out what exactly dithering is and what its effects are. Could someone explain?
This is what they're talking about (see the attached image)...

It's the pattern used to control how smoothly adjacent terrain squares overlap at the edges.

EDIT: ALLARD!! You're alive! :jump:


  • dither.gif
    340 bytes · Views: 176
Ok, I'll explain the trick.

Using the pink normally 'invisible' background doesn't prove to be that invisible after all. As you can see, it works well in that the squares are indeed square without dithering overlaps.
However, all grassland squares do not follow the rules and strange horizontal lines will appear.


  • 1b.gif
    11.4 KB · Views: 97
If we delete all the pink altogether and leave the whole icon with the grey/purple (depending on what colour palette you choose, anyway the last colour of the palette) completely, it will look nice and neat, and no horizontal lines are visible.
This is what we want.

Note that if you use the pink completely in the square, grassland squares will kind of 'turn around'. Can't explain this really, test it for yourself.


  • 3b.gif
    15.4 KB · Views: 100
You can do more fun things by adding more dithering. (watch out.. not too much or it will go bad again).

This example as I used in RiverWar shows a more natural terrain where the individual squares are less distinctive and more or less blend together, which gives a nice effect especially in desert-like terrains where all looks a lot like each other.


  • 2b.gif
    14.1 KB · Views: 131
Top Bottom