• Welcome to SC4 Devotion Forum Archives.
 

News:

The SC4 Devotion Forums are no longer active, but remain online in an archived, read-only "museum" state.  It is not possible for regular members to post or use the private messaging system, and no technical support will be provided for any issues pertaining to the forums in their current state.  Attachments (those that still work) are accessible without login.

The LEX has been replaced with SC4Evermore (SC4E), and SC4E maintains an active Discord server.  For traditional forums, we recommend Simtropolis.

Main Menu

Terrain Problem

Started by Highrise99, July 13, 2010, 07:38:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Highrise99

Terrain Problem


The picture explains most of the problem: what should be a mesa is an ocean.  Perhaps I should explain in more detail what happened before the problem.
I created a terrain image.  For those of you who don't know what I'm talking about, a good tutorial is here.

This is the 24 bit terrain image.  The darkest grey has a value of 75, 10 under sea level.  The regular mainland has a value of 95, 10 above sea level.  The supposed mesa has a value of 185, 100 above sea level.  However, when I converted it into an 8 bit bitmap, this happens:

This is not the problem, as the unavailable color is converted into an available color with the same value.  It still works the same when you load it into SC4.  But the seemingly unaffected area turns into ocean when loaded in game.  That is the problem.  It is supposed to be a mesa, but it is an ocean.

SC4BOY

Just a thought.. you keep suggesting that sea level is 85.. this is not the default.. the default sealevel is 250 as I recall. I believe you can reset that in the .ini file, but I haven't fooled with that in a long time.. but that may put you on the right track.. Your 85 would be way below "standard" sea level.

Highrise99

#2
The 85 is the grayscale value, not the actual value.  As 255 is the maximum grayscale value, 250 is definitely not sea level.  According to the tutorial, 85 is sea level.  Thanks anyways.

dobdriver

G'Day Highrise99,

Your original image is ok, but it is a few shades too dark (sea and plain). The second image is actually index colour (an 8bit colour palette) rather than greyscale.

I have included a zip with an ingame pic and also a grey version of your original. The grey values were 78% sea = 165m; 71% plain = 220m; 34% mesa = 504m

The new grey values are 69% sea = 236m; 66% plain = 262m and I left the mesa as was. Change this as you like.
Remember when working with greyscale we are talking percentages not RGB values

Leave it as a png as the game came import 8bit png's ok like jpeg's and bmp's.

Hope this helps you.

Cheers
dobdriver

wouanagaine

To help you with dealing with greyscale, 8bit, RGB etc, use SC4Mapper or SC4TF which will take your original image and use it as a 'greyscale' without any convertion to an 8-bits antic area paletized picture

New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

Highrise99

Quote from: dobdriver on July 22, 2010, 02:05:27 PM
G'Day Highrise99,

Your original image is ok, but it is a few shades too dark (sea and plain). The second image is actually index colour (an 8bit colour palette) rather than greyscale.

I have included a zip with an ingame pic and also a grey version of your original. The grey values were 78% sea = 165m; 71% plain = 220m; 34% mesa = 504m

The new grey values are 69% sea = 236m; 66% plain = 262m and I left the mesa as was. Change this as you like.
Remember when working with greyscale we are talking percentages not RGB values

Leave it as a png as the game came import 8bit png's ok like jpeg's and bmp's.

Hope this helps you.

Cheers
dobdriver
Thank you so much!  It worked just as I planned it to.