SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Giftheck on May 17, 2017, 08:23:20 AM

Title: Blue and green colours in 'low res' terrain texture
Post by: Giftheck on May 17, 2017, 08: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](http://i23.photobucket.com/albums/b356/ggctuk/terrain.png) (http://s23.photobucket.com/user/ggctuk/media/terrain.png.html)[/spoiler]

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.
Title: Re: Blue and green colours in 'low res' terrain texture
Post by: Ginev on May 17, 2017, 11:12:54 AM
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:
Title: Re: Blue and green colours in 'low res' terrain texture
Post by: Giftheck on May 17, 2017, 12:00:22 PM
All my terrain textures are 512x512. I'll post a screenshot soon of what it looks like ingame.
Title: Re: Blue and green colours in 'low res' terrain texture
Post by: Giftheck on May 17, 2017, 12:11:49 PM
Here's how it looks ingame.

(http://i23.photobucket.com/albums/b356/ggctuk/Ingame01.jpg) (http://s23.photobucket.com/user/ggctuk/media/Ingame01.jpg.html)
Title: Re: Blue and green colours in 'low res' terrain texture
Post by: Ginev on May 17, 2017, 04: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...
Title: Re: Blue and green colours in 'low res' terrain texture
Post by: Giftheck on May 18, 2017, 01: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.
Title: Re: Blue and green colours in 'low res' terrain texture
Post by: Ginev on May 18, 2017, 07:56:39 AM
Now try using the COLOR section in ZERO EDITOR.Maybe gray will be nice just to remove the brightness.
Title: Re: Blue and green colours in 'low res' terrain texture
Post by: Giftheck on May 18, 2017, 12:53:43 PM
I think i have it figured out. Thanks Ginev :)
Title: Re: Blue and green colours in 'low res' terrain texture
Post by: Giftheck on May 18, 2017, 02: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:

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);
}
Title: Re: Blue and green colours in 'low res' terrain texture
Post by: Ginev on May 18, 2017, 11:29:14 PM
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....

Title: Re: Blue and green colours in 'low res' terrain texture
Post by: Giftheck on May 19, 2017, 03: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.
EhPortal 1.34 © 2024, WebDev