32bit Graphics Extra Zoom Patch
Moderator: Graphics Moderators
Re: [32bpp] Extra zoom levels, Updated V9 r16366
OK, here a first experimental version of the CC algorithm provided by Zephyris. It's able to show all the company colours in different hue's, difference in brightness (so eg blue and lightblue) are not yet implemented.
I'm providing it here, so you can comment on the saturation value, that I picked (it's hardcoded for now (in 32bpp-base.hpp if you want to tweak it), and the CC mapping in general.
My first impression is that it indeed loses some of the hue and saturation gradients, but that the mapping of the CC's is very good, the red trucks now really look red, independent of the original sprites colour).
It's also not optimized (apart from using only int's iso floats) in any way, first I want to get the algorithm right.
So play around a little with it, and let me know what you think.
I'm providing it here, so you can comment on the saturation value, that I picked (it's hardcoded for now (in 32bpp-base.hpp if you want to tweak it), and the CC mapping in general.
My first impression is that it indeed loses some of the hue and saturation gradients, but that the mapping of the CC's is very good, the red trucks now really look red, independent of the original sprites colour).
It's also not optimized (apart from using only int's iso floats) in any way, first I want to get the algorithm right.
So play around a little with it, and let me know what you think.
- Attachments
-
- 32bpp_17832_v12.diff
- (104.18 KiB) Downloaded 472 times
-
- screenshot, yellow CC
- Pratston Transport, 23rd Dec 1985.png (353.89 KiB) Viewed 6154 times
Re: [32bpp] Extra zoom levels, Updated V9 r16366
Unfortunately I don't know the technicalities of how it works, but it appears to be displaying at least the general colours correctly, I assume cream and white requires the brightness differences to display correctly? If anyone needs a binary compiled for Windows 32/64, let me know and I'll put them up.
Re: [32bpp] Extra zoom levels, Updated V9 r16366
That would be most welcome. I don't have MinGW etc. installed anymore.If anyone needs a binary compiled for Windows 32/64, let me know and I'll put them up.
Re: [32bpp] Extra zoom levels, Updated V9 r16366
I'm using windows, so a Windows binary would be very welcome.BeeJAy wrote:If anyone needs a binary compiled for Windows 32/64, let me know and I'll put them up.
Great to see the 32bpp cc problem (mostly) solved

Re: [32bpp] Extra zoom levels, Updated V9 r16366
Ok here are the two, I have tested them so they should have the correct files etc.
Windows 32-bit
Windows 64-bit
Windows 32-bit
Windows 64-bit
Re: [32bpp] Extra zoom levels, Updated V9 r16366
Thanks
I'm using Windows Vista 32bit and it works fine.

-
- Tycoon
- Posts: 1829
- Joined: 10 Jul 2006 00:43
- Location: Spain
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
Some screenshots. I think that the saturation should be modified less, only the half than the current algorithm.
This is because some areas looks too oversaturated, and sometimes there are some strange borders. Note that stations have a wrong CC mask.
This is because some areas looks too oversaturated, and sometimes there are some strange borders. Note that stations have a wrong CC mask.
- Attachments
-
- Screenshot.
- Screenshot_newCC_1.JPEG (349.07 KiB) Viewed 1401 times
-
- Screenshot.
- Screenshot_newCC_2.JPEG (244.7 KiB) Viewed 1401 times
-
- Screenshot.
- Screenshot_newCC_3.JPEG (298.72 KiB) Viewed 1401 times
Sorry if my english is too poor, I want learn it, but it isn't too easy.
- [list][*]Why use PNG screenshots in 8 bpp games.
[*]Caravan site New Industry. · Spain set. · Some spanish trains for locomotion[*]Favourites:GRVTS · ECS · FIRS
-
- Tycoon
- Posts: 1829
- Joined: 10 Jul 2006 00:43
- Location: Spain
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
More screenshots. Look at the lines in the water depot. Also, the top of one building looks strange. I think that It could look better with less saturation.
- Attachments
-
- Screenshot.
- Screenshot_newCC_4.JPEG (253.56 KiB) Viewed 1401 times
-
- Screenshot.
- Screenshot_newCC_5.JPEG (216.43 KiB) Viewed 1401 times
-
- Screenshot.
- Screenshot_newCC_6.JPEG (195.56 KiB) Viewed 1401 times
Sorry if my english is too poor, I want learn it, but it isn't too easy.
- [list][*]Why use PNG screenshots in 8 bpp games.
[*]Caravan site New Industry. · Spain set. · Some spanish trains for locomotion[*]Favourites:GRVTS · ECS · FIRS
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
Thanks Maquinista,
I guess you're right, the saturation is rather high, I'll do some experiments with different settings in the near future.
I guess you're right, the saturation is rather high, I'll do some experiments with different settings in the near future.
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
Just a suggestion: user-configurable saturation (for testing)?GeekToo wrote:Thanks Maquinista,
I guess you're right, the saturation is rather high, I'll do some experiments with different settings in the near future.
Is that feasible?
-
- Tycoon
- Posts: 1829
- Joined: 10 Jul 2006 00:43
- Location: Spain
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
Not... but I can try some screenshots modified in GIMP to test different saturation levels.tsjook wrote:Just a suggestion: user-configurable saturation (for testing)?GeekToo wrote:Thanks Maquinista,
I guess you're right, the saturation is rather high, I'll do some experiments with different settings in the near future.
Is that feasible?
The problem is that the original algorith don't modify the saturation, and the new algorthim modifes it a lot.
Sorry if my english is too poor, I want learn it, but it isn't too easy.
- [list][*]Why use PNG screenshots in 8 bpp games.
[*]Caravan site New Industry. · Spain set. · Some spanish trains for locomotion[*]Favourites:GRVTS · ECS · FIRS
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
also, (i dont know whether this was supposed to be fixed
)
white is still grey!

white is still grey!
AroAI - A really feeble attempt at an AI
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
What saturation is being used? In my tests anything over 0.8 (out of 1) was starting to look very bright and cartoony...
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
Zephyris, it's 175 (out of 256) which is ~0.68 out of 1.
Lord Aro, please read my post accompanying the diff, especially the part of lightblue and blue, and then ask yourself how that would translate to white and gray.
Lord Aro, please read my post accompanying the diff, especially the part of lightblue and blue, and then ask yourself how that would translate to white and gray.
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
Maybe try lowering the brightness slightly too... Looking at histograms of the screenshots they are generally quite bright, lowering the brightness of the CC could help it seem less cartoony.
-
- Tycoon
- Posts: 1829
- Joined: 10 Jul 2006 00:43
- Location: Spain
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
White could be made with the highest value of the RGB values (this is like the HSV algorithm).
For example:
24,60,160 --> white --> 160,160,160
24,60,160 --> gray --> 81,81,81
If this algorithm for white increases too much the brightness, the final value could be added to the value of gray, and take the half of this value. Example 24,60,160 --> white --> 120,120,120.
For example:
24,60,160 --> white --> 160,160,160
24,60,160 --> gray --> 81,81,81
If this algorithm for white increases too much the brightness, the final value could be added to the value of gray, and take the half of this value. Example 24,60,160 --> white --> 120,120,120.
Sorry if my english is too poor, I want learn it, but it isn't too easy.
- [list][*]Why use PNG screenshots in 8 bpp games.
[*]Caravan site New Industry. · Spain set. · Some spanish trains for locomotion[*]Favourites:GRVTS · ECS · FIRS
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
Is there any way someone could make a new win32 binary with this Patch and CargoDist? I really like this and CargoDist and I hate to only be able to play one.


Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
I tried, but there were too many failed hunks, and compiling did not go well.
- NekoMaster
- Tycoon
- Posts: 4001
- Joined: 16 Aug 2008 22:26
- Skype: neko-master
- Location: Oshawa, Ontario, CANADA
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
Aw, that sucks butt, I wonder how one would compile two patches together in the same binary : \petert wrote:I tried, but there were too many failed hunks, and compiling did not go well.


Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Re: [32bpp] Extra zoom levels, experimental new CC algorithm
This must annoy the hell out of you, but, http://www.tt-forums.net/viewtopic.php?f=33&t=21678
Who is online
Users browsing this forum: Ahrefs [Bot], Deicide, Google [Bot] and 10 guests