Sky Problem [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Sky Problem [Solved]

Post by acryptozoo »

hey GT
i was trying to make a custom sky
i got the sjy's tga file to the right size and such
edited the sky file and munged and got no errors
but ingame the enitre sky is black
any ideas why its doing that

Sky file
Hidden/Spoiler:
SkyInfo()
{
Enable(1);

PS2()
{
NearSceneRange(0.100000, 70.000000, 100.000000);
NearSplitScreenRange(0.100000, 50.000000, 60.000000);
FarSceneRange(3000.000000);
}
PC()
{
NearSceneRange(100.0, 150.0, 150.0, 200.0);
FarSceneRange(200.000000, 1000.0);
}
XBOX()
{
NearSceneRange(0.200000, 90.000000, 130.000000);
NearSplitScreenRange(0.200000, 70.000000, 100.000000);
FarSceneRange(3000.000000);
}
}

DomeInfo()
{
Texture("GSC_sky.tga");
Angle(-90.000000);
Ambient(255.000000, 255.000000, 255.000000);
Filter(1);
Threshold(150);
Intensity(50);
TerrainColorDarkening();

Softness(1);
SoftnessParam(60);

XBOX()
{
TerrainBumpTexture("tat2_bump", 1.0);
}
PC()
{
TerrainBumpTexture("tat2_bump", 1.0);
}

DomeModel()
{
Geometry("tat2_sky_dome");
}

LowResTerrain()
{
Texture("tat2");
PatchResolution(4);
MaxDistance(3000);
}

}

SkyObject()
{
Geometry("rep_fly_assault_DOME");
NumObjects(2);
Height(350, 500);
VelocityZ(30, 50);
Distance(2500);
InDirectionFactor(2.5);
}

SkyObject()
{
Geometry("cis_fly_fedlander_DOME");
NumObjects(2);
Height(350, 500);
VelocityZ(30, 50);
Distance(2500);
InDirectionFactor(2.5);
}

SkyObject()
{
Geometry("all_fly_moncalamari_DOME");
NumObjects(2);
Height(350, 500);
VelocityZ(30, 50);
Distance(2500);
InDirectionFactor(2.5);
}

SkyObject()
{
Geometry("imp_fly_destroyer_DOME");
NumObjects(2);
Height(350, 500);
VelocityZ(30, 50);
Distance(2500);
InDirectionFactor(2.5);
}
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Sky Problem

Post by DarthD.U.C.K. »

did you use the original sky belonging to the dome as base for yours or another sky? if the texture doenst fit on the model the sky can be black/glowing sometimes.
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: Sky Problem

Post by acryptozoo »

DarthD.U.C.K. wrote:did you use the original sky belonging to the dome as base for yours or another sky? if the texture doenst fit on the model the sky can be black/glowing sometimes.
It was on an new Tga.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Sky Problem

Post by DarthD.U.C.K. »

is the resolution/ratio the same as the original texture's?
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: Sky Problem

Post by acryptozoo »

yes 512x1024
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Sky Problem

Post by AQT »

Don't you mean 1024X256? Or did you scale up a 512X256 to 1024X512? Anyway, if you open up tat2_sky_dome.msh in a hex editor or Notepad and search for .tga, does GSC_sky.tga come up? If not, there's your problem. The texture won't simply show up if you reference it in your .sky file. You must edit the skydome MSH so that it uses that texture name.
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: Sky Problem

Post by acryptozoo »

AQT wrote:Don't you mean 1024X256? Or did you scale up a 512X256 to 1024X512? Anyway, if you open up tat2_sky_dome.msh in a hex editor or Notepad and search for .tga, does GSC_sky.tga come up? If not, there's your problem. The texture won't simply show up if you reference it in your .sky file. You must edit the skydome MSH so that it uses that texture name.

thanks AQT the tat2_sky_dome.msh thing worked
Post Reply