login

Author Topic: Blue and green colours in 'low res' terrain texture  (Read 335 times)

Gistech

  • Imperial Shock Trooper
  • This Man Has No Life
  • *****
  • Posts: 1682
  • Awards Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
  • PSN: ggctuk
  • Steam ID:
Blue and green colours in 'low res' terrain texture
« on: May 17, 2017, 09:23:20 AM »
I'm getting an issue where I have blue-green colours in my lowres terrain texture, and it's causing the terrain to take on that same hue in-game.

Here's the terrain texture in question:

Spoiler (click to show/hide)

I thought it was because I changed the colour of my terrain (to a darker grey) but even removing the colour does not solve the issue. Removing the texture entirely doesn't solve it either as zeroeditor generates a duplicate of this when I save.
Works in Progress:
--Star Wars: Battlefront Legacy (Phase 1 released - Phase 2 in development, base game due 2017)

Ginev

  • Master Modder
  • Advanced Member
  • ***
  • Posts: 674
  • Nub Nub
  • Awards Award for extensive modding contributions and/or donations to TWD Battlefront Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
  • Steam ID:
Re: Blue and green colours in 'low res' terrain texture
« Reply #1 on: May 17, 2017, 12:12:54 PM »
Is your terrain texture exactly two dimensional.I mean if its like 512x1024 for example or 128x256,256x512 it will work however i find out that there is a weird color when you watching from the side such textures.Try 512x512 or 1024x1024.If its not this i really dont know what might by.I think you want to keep the map for now in secret however showing us how the problem ingame with one picture will help us alot to understand clearly your problem Gistech...  :g:

Gistech

  • Imperial Shock Trooper
  • This Man Has No Life
  • *****
  • Posts: 1682
  • Awards Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
  • PSN: ggctuk
  • Steam ID:
Re: Blue and green colours in 'low res' terrain texture
« Reply #2 on: May 17, 2017, 01:00:22 PM »
All my terrain textures are 512x512. I'll post a screenshot soon of what it looks like ingame.
Works in Progress:
--Star Wars: Battlefront Legacy (Phase 1 released - Phase 2 in development, base game due 2017)

Gistech

  • Imperial Shock Trooper
  • This Man Has No Life
  • *****
  • Posts: 1682
  • Awards Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
  • PSN: ggctuk
  • Steam ID:
Re: Blue and green colours in 'low res' terrain texture
« Reply #3 on: May 17, 2017, 01:11:49 PM »
Here's how it looks ingame.

Works in Progress:
--Star Wars: Battlefront Legacy (Phase 1 released - Phase 2 in development, base game due 2017)

Ginev

  • Master Modder
  • Advanced Member
  • ***
  • Posts: 674
  • Nub Nub
  • Awards Award for extensive modding contributions and/or donations to TWD Battlefront Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
  • Steam ID:
Re: Blue and green colours in 'low res' terrain texture
« Reply #4 on: May 17, 2017, 05:25:05 PM »
1.Hmm.I never had such a problem while i was modding Battlefront 1.Try opening thouse textures in your paint program,gimp,photoshop whatever you using and try re export them with RLE compression removed.Some times this actually is helping.Remunge them after that.Here is example:I once used Battlefield 3 textures in Battlefront 2 and they were working fine however when i look one of thouse textures for example applyed to a wall and when i look it from the side i was seeing a green kinda color on them.So i just re-opened the textures in Gimp and re-exported them with RLE uncheck and that fixed the problem.Maybe it will work and for you who knows....

2.Is this problem appearing only for certain ground textures or its for all textures that are used for the terrain?If so better check your sky file.Maybe you put some color terrain value or something like that...

Gistech

  • Imperial Shock Trooper
  • This Man Has No Life
  • *****
  • Posts: 1682
  • Awards Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
  • PSN: ggctuk
  • Steam ID:
Re: Blue and green colours in 'low res' terrain texture
« Reply #5 on: May 18, 2017, 02:31:11 AM »
Reverting the sky file back to its original settings seems to have resolved the issue for the moment but my terrain is now way too bright. Some more tinkering is a must.
Works in Progress:
--Star Wars: Battlefront Legacy (Phase 1 released - Phase 2 in development, base game due 2017)

Ginev

  • Master Modder
  • Advanced Member
  • ***
  • Posts: 674
  • Nub Nub
  • Awards Award for extensive modding contributions and/or donations to TWD Battlefront Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
  • Steam ID:
Re: Blue and green colours in 'low res' terrain texture
« Reply #6 on: May 18, 2017, 08:56:39 AM »
Now try using the COLOR section in ZERO EDITOR.Maybe gray will be nice just to remove the brightness.

Gistech

  • Imperial Shock Trooper
  • This Man Has No Life
  • *****
  • Posts: 1682
  • Awards Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
  • PSN: ggctuk
  • Steam ID:
Re: Blue and green colours in 'low res' terrain texture
« Reply #7 on: May 18, 2017, 01:53:43 PM »
I think i have it figured out. Thanks Ginev :)
Works in Progress:
--Star Wars: Battlefront Legacy (Phase 1 released - Phase 2 in development, base game due 2017)

Gistech

  • Imperial Shock Trooper
  • This Man Has No Life
  • *****
  • Posts: 1682
  • Awards Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
  • PSN: ggctuk
  • Steam ID:
Re: Blue and green colours in 'low res' terrain texture
« Reply #8 on: May 18, 2017, 03:40:03 PM »
Nope, still getting those wierd colours ingame.

But my lowres texture is now devoid of them.

So that has me moving to my sky file. Here's what I have:

Code: [Select]
SkyInfo()
{
    ObjectVisibility(250.000000, 500.000000, 750.000000);
    FogColor(128, 128, 128);
FogRange(0.000000, 3000.000000);
NearSceneRange(60.0, 150.0, 75.0, 200.0);
        FarSceneRange(1000.000000, 1000.0);
AmbientColor(78, 87, 91);
        TopDirectionalAmbientColor(120, 101, 76);
        BottomDirectionalAmbientColor(126, 70, 35);
        CharacterAmbientColor(209,156,73);
        VehicleAmbientColor(189, 136, 53);
Enable(1559);
FogRamp(3);
}

SunInfo()
{
Angle(145.000005, 150.000000);
Color(210, 200, 190);
Texture("");
    Degree(90.000011);
    BackAngle(180.000022, 0.000000);
    BackColor(128, 128, 128);
    BackDegree(0.000000);
}


DomeInfo()
{
        Texture("sky_scarif_1.tga");
Angle(190.000005);
Ambient(256.000038, 256.000038, 256.000038);
Filter(1);
Threshold(50);
Intensity(50);
Softness(1);
SoftnessParam(60);

    DomeModel()
    {
        Geometry("sky_scarif_1");
Reflect();
    }

    LowResTerrain()
    {
        Texture("scarif1");
        PatchResolution(7);
        FogNear(300.0);
        FogFar(700.0);
        FogColor(142,82,38, 128);
        DetailTexture("kas2_far_detail");
        DetailTextureScale(0.25);
    }
}


//Big rep flyer
SkyObject()
{
    Geometry("imp_fly_destroyer_DOME");
    NumObjects(2);
    Height(500, 600);
    VelocityZ(20, 50);
    Distance(1500);
    InDirectionFactor(2);
}

//IMP fighters
SkyObject()
{
    Geometry("emp_fly_reaper_dome_1");
    NumObjects(10);
    Height(480, 540);
    VelocityZ(80, 120);
    VelocityY(-10, 10);
    Distance(600);
    InDirectionFactor(0.5);
}

SkyObject()
{
    Geometry("emp_fly_reaper_dome_2");
    NumObjects(5);
    Height(480, 540);
    VelocityZ(80, 120);
    VelocityY(-10, 10);
    Distance(600);
    InDirectionFactor(0.5);
}

SkyObject()
{
    Geometry("emp_fly_striker_dome_1");
    NumObjects(10);
    Height(480, 540);
    VelocityZ(80, 120);
    VelocityY(-10, 10);
    Distance(600);
    InDirectionFactor(0.5);
}

SkyObject()
{
    Geometry("emp_fly_striker_dome_2");
    NumObjects(5);
    Height(480, 540);
    VelocityZ(80, 120);
    VelocityY(-10, 10);
    Distance(600);
    InDirectionFactor(0.5);
}

//ALL fighters
SkyObject()
{
    Geometry("reb_fly_uwing_dome_1");
    NumObjects(2);
    Height(480, 540);
    VelocityZ(80, 100);
    VelocityY(-10, 10);
    Distance(300);
    InDirectionFactor(0.5);
}

SkyObject()
{
    Geometry("reb_fly_uwing_dome_2");
    NumObjects(2);
    Height(480, 540);
    VelocityZ(80, 100);
    VelocityY(-10, 10);
    Distance(300);
    InDirectionFactor(0.5);
}

SkyObject()
{
    Geometry("reb_fly_xwing_dome_1");
    NumObjects(10);
    Height(480, 540);
    VelocityZ(80, 100);
    VelocityY(-10, 10);
    Distance(300);
    InDirectionFactor(0.5);
}

SkyObject()
{
    Geometry("reb_fly_xwing_dome_2");
    NumObjects(3);
    Height(480, 540);
    VelocityZ(80, 100);
    VelocityY(-10, 10);
    Distance(300);
    InDirectionFactor(0.5);
}
Works in Progress:
--Star Wars: Battlefront Legacy (Phase 1 released - Phase 2 in development, base game due 2017)

Ginev

  • Master Modder
  • Advanced Member
  • ***
  • Posts: 674
  • Nub Nub
  • Awards Award for extensive modding contributions and/or donations to TWD Battlefront Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
  • Steam ID:
Re: Blue and green colours in 'low res' terrain texture
« Reply #9 on: May 19, 2017, 12:29:14 AM »
I know that some .fx files (located in your world1 folder) have also some parameters that can touch colors in game so check also for such file and look if there are some parameters that may mess with your sky file.Who knows....


Gistech

  • Imperial Shock Trooper
  • This Man Has No Life
  • *****
  • Posts: 1682
  • Awards Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
  • PSN: ggctuk
  • Steam ID:
Re: Blue and green colours in 'low res' terrain texture
« Reply #10 on: May 19, 2017, 04:02:54 PM »
I'm starting to think it's because I altered the original textures to 512x512 from 1024x1024. So I'm trying replacing the textures with the original versions.

If all else fails, I can upload my World folder and you guys can see what I've done wrong.

EDIT: That didn't work.
« Last Edit: May 19, 2017, 04:37:24 PM by Gistech »
Works in Progress:
--Star Wars: Battlefront Legacy (Phase 1 released - Phase 2 in development, base game due 2017)