32bit Graphics Extra Zoom Patch

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
GeekToo
Tycoon
Tycoon
Posts: 961
Joined: 03 Jun 2007 22:22

Re: [32bpp] Extra zoom levels, Updated V9 r16366

Post by GeekToo »

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.
Attachments
32bpp_17832_v12.diff
(104.18 KiB) Downloaded 472 times
screenshot, yellow CC
screenshot, yellow CC
Pratston Transport, 23rd Dec 1985.png (353.89 KiB) Viewed 6154 times
BeeJAy
Engineer
Engineer
Posts: 14
Joined: 21 Jun 2004 09:33
Location: Western Australia
Contact:

Re: [32bpp] Extra zoom levels, Updated V9 r16366

Post by BeeJAy »

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.
User avatar
tsjook
Traffic Manager
Traffic Manager
Posts: 197
Joined: 22 Apr 2009 18:33

Re: [32bpp] Extra zoom levels, Updated V9 r16366

Post by tsjook »

If anyone needs a binary compiled for Windows 32/64, let me know and I'll put them up.
That would be most welcome. I don't have MinGW etc. installed anymore.
Varivar
Traffic Manager
Traffic Manager
Posts: 255
Joined: 07 Aug 2008 17:31
Location: The Netherlands
Contact:

Re: [32bpp] Extra zoom levels, Updated V9 r16366

Post by Varivar »

BeeJAy wrote:If anyone needs a binary compiled for Windows 32/64, let me know and I'll put them up.
I'm using windows, so a Windows binary would be very welcome.

Great to see the 32bpp cc problem (mostly) solved :)
BeeJAy
Engineer
Engineer
Posts: 14
Joined: 21 Jun 2004 09:33
Location: Western Australia
Contact:

Re: [32bpp] Extra zoom levels, Updated V9 r16366

Post by BeeJAy »

Ok here are the two, I have tested them so they should have the correct files etc.

Windows 32-bit
Windows 64-bit
Varivar
Traffic Manager
Traffic Manager
Posts: 255
Joined: 07 Aug 2008 17:31
Location: The Netherlands
Contact:

Re: [32bpp] Extra zoom levels, Updated V9 r16366

Post by Varivar »

Thanks :) I'm using Windows Vista 32bit and it works fine.
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by maquinista »

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.
Attachments
Screenshot.
Screenshot.
Screenshot_newCC_1.JPEG (349.07 KiB) Viewed 1401 times
Screenshot.
Screenshot.
Screenshot_newCC_2.JPEG (244.7 KiB) Viewed 1401 times
Screenshot.
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][/size]
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by maquinista »

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.
Screenshot_newCC_4.JPEG (253.56 KiB) Viewed 1401 times
Screenshot.
Screenshot.
Screenshot_newCC_5.JPEG (216.43 KiB) Viewed 1401 times
Screenshot.
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][/size]
User avatar
GeekToo
Tycoon
Tycoon
Posts: 961
Joined: 03 Jun 2007 22:22

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by GeekToo »

Thanks Maquinista,
I guess you're right, the saturation is rather high, I'll do some experiments with different settings in the near future.
User avatar
tsjook
Traffic Manager
Traffic Manager
Posts: 197
Joined: 22 Apr 2009 18:33

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by tsjook »

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.
Just a suggestion: user-configurable saturation (for testing)?

Is that feasible?
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by maquinista »

tsjook wrote:
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.
Just a suggestion: user-configurable saturation (for testing)?

Is that feasible?
Not... but I can try some screenshots modified in GIMP to test different saturation levels.

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][/size]
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by Lord Aro »

also, (i dont know whether this was supposed to be fixed ?( )
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
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by Zephyris »

What saturation is being used? In my tests anything over 0.8 (out of 1) was starting to look very bright and cartoony...
User avatar
GeekToo
Tycoon
Tycoon
Posts: 961
Joined: 03 Jun 2007 22:22

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by GeekToo »

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.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by Zephyris »

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.
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by maquinista »

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.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
User avatar
NekoMaster
Tycoon
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

Post by NekoMaster »

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.
Image Proud Canadian Image
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!
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by petert »

I tried, but there were too many failed hunks, and compiling did not go well.
User avatar
NekoMaster
Tycoon
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

Post by NekoMaster »

petert wrote:I tried, but there were too many failed hunks, and compiling did not go well.
Aw, that sucks butt, I wonder how one would compile two patches together in the same binary : \
Image Proud Canadian Image
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!
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: [32bpp] Extra zoom levels, experimental new CC algorithm

Post by petert »

This must annoy the hell out of you, but, http://www.tt-forums.net/viewtopic.php?f=33&t=21678
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ahrefs [Bot], Deicide, Google [Bot] and 10 guests