[REL]:Grey-Scale color palette for Mapgen

Discuss, get help with, or post new modifications, graphics or related tools for Locomotion in this forum.

Moderator: Locomotion Moderators

Post Reply
User avatar
Killianbass3
Traffic Manager
Traffic Manager
Posts: 221
Joined: 17 Aug 2012 20:19

[REL]:Grey-Scale color palette for Mapgen

Post by Killianbass3 »

The Explanation

If you've ever tried to make a map with the mapgen you've probably had trouble getting the right colors to make it have the right height well have trouble no more here is the very solution you were looking for. This topic will help you get the very specific colors you need to have a good map!

Here are the Hex codes for the different elevations

Code: Select all

Locomotion Heights and their corresponding Hex Codes


Height          Hex Code

<-48ft>----------<#000000>

<-32ft>----------<#060606>

<-16ft>----------<#0d0d0d>

<0ft>----------<#131313>

<16ft>----------<#1a1a1a>

<32ft>----------<#202020>

<48ft>----------<#262626>

<64ft>----------<#2d2d2d>

<80ft>----------<#333333>

<96ft>----------<#3a3a3a>

<112ft>----------<#404040>

<128ft>----------<#464646>

<144ft>----------<#4d4d4d>

<160ft>----------<#535353>

<176ft>----------<#5a5a5a>

<192ft>----------<#606060>

<208ft>----------<#666666>

<224ft>----------<#6d6d6d>

<240ft>----------<#737373>

<256ft>----------<#7a7a7a>

<272ft>----------<#808080>

<288ft>----------<#868686>

<304ft>----------<#8d8d8d>

<320ft>----------<#939393>

<336ft>----------<#9a9a9a>

<352ft>----------<#a0a0a0>

<368ft>----------<#a6a6a6>

<384ft>----------<#adadad>

<400ft>----------<#b3b3b3>

<416ft>----------<#bababa>

<432ft>----------<#c0c0c0>

<448ft>----------<#c6c6c6>

<464ft>----------<#cdcdcd>

<480ft>----------<#d3d3d3>

<496ft>----------<#dadada>

<512ft>----------<#e0e0e0>

<528ft>----------<#e6e6e6>

<544ft>----------<#ededed>

<560ft>----------<#f3f3f3>

<576ft>----------<#fafafa>
Those hex codes will provide accurate results every time.

For those interested here's how I did it.

First off I'd like to say that it took me a while to perfect this palette and hope people will appreciate the time I spent to create this for the benefit of all to use it.

List of important numbers I used to calculate the correct colors for map creating

256- the # of colors in the Locomotion color palette

16- the number of ft. each level

(-48-576)- the height range of Locomotion

The Calculations

First I needed need to know the number of elevation levels that are allowed, so I did this:

Range of elevation at +4 sea level
-48 - 576
lowest highest
To find the total amount of elevation I had to do some math (-48)-576=(-624)
Since your total elevation cant be negative you invert it and it's 624ft

alright now since the total elevation is 624ft and each level is 16ft you divide

624/16=39 but basic math doesn't count the 0ft level as a level so you have to +1

So the total number of levels is 40 for most of the time I worked on this, this is where I was stuck until I realized that: the color palette of Locomotion is 256 colors so I needed a grey-scale palette that also had 256 colors I quickly created a palette to start from and I figured the best way to get 40 colors from 256 evenly was to divide it so I divided: 256/40=6.4 From that information in hand I opened up Excel and created a chart that would tell me the numbers of the color to pick without me actually doing the math my self and easily creating an accurate Palette that helped me create my first map. I hope you use this to your advantage. Enjoy.

Good Luck,
Zane
User avatar
doxlulzem
Traffic Manager
Traffic Manager
Posts: 161
Joined: 05 Mar 2014 21:44
Skype: carl.stonehouse1
Location: Teesside, North Yorkshire

Re: [REL]:Grey-Scale color palette for Mapgen

Post by doxlulzem »

Well ain't that useful? I need to appreciate this more. Just a quick question, is 16ft about a click off the ground? Like half the height of a tunnel entrance?
Good job BTW! :bow:
IJN Takao is life. Why did the Shinano get converted? Gotta love NeuroTec for Garry's Mod. I even have a server!
How Can Mirrors Be Real If Our Eyes Aren't Real? - Jaden Smith 2014
User avatar
Killianbass3
Traffic Manager
Traffic Manager
Posts: 221
Joined: 17 Aug 2012 20:19

Re: [REL]:Grey-Scale color palette for Mapgen

Post by Killianbass3 »

yes it is half the height of a tunnel. Thank you.
uktrackbuilder_loco
Director
Director
Posts: 582
Joined: 06 Mar 2007 18:57

Re: [REL]:Grey-Scale color palette for Mapgen

Post by uktrackbuilder_loco »

Just a quickie for the moderators bearing in mind that Mapgen has been hit and miss to use with getting a good landscape shouldn't this be stickied and added to the relevant section on Mapgen so that the user can find out a guide on how to use Mapgen and what hex codes are needed to create landscapes?
Post Reply

Return to “Locomotion Graphics, Modifications & Tools”

Who is online

Users browsing this forum: No registered users and 7 guests