Sky view distance problem

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
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Sky view distance problem

Post by elfie »

Alright this was really wierd. I changed the view distance in the sky file to something ridicoulusly big like 400000. I munged without cleaning, went ingame and the view distance was great, everything was visible and no lag. Except the sky was gone. It was just this big black sky and this happened without changing the tga/geometry section. What happened? THanks
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: sky problem

Post by Teancum »

It's possible you made the viewable area larger than the skybox itself, effectively turning the skybox off. Try lowering your numbers back to defaults and see if it comes back.
User avatar
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Re: sky problem

Post by elfie »

But if I do that then I wont have a high view distance anymore and It will be all foggy and hard to see.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: sky problem

Post by Teancum »

I'm just telling you what the issue more than likely is. Try lowering it just to see if that's the problem. You can always put the big numbers back in. 20 bucks says that's it though.

How big is the terrain on your map? Even with 512x512 terrain you shouldn't need a number that big.
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: sky problem

Post by Aman/Pinguin »

Teancum wrote:Try lowering your numbers

At least try that.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: sky problem

Post by Maveritchell »

You don't need that high a view distance. :roll:

Four hundred thousand units is something on the scale of about 2 orders of magnitude too high. The biggest maps are only about 1000x1000 - and that's rare - and on a map like that you probably only ever need a distance of about 6000 at most.
User avatar
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Re: sky problem

Post by elfie »

Four hundred thousand units is something on the scale of about 2 orders of magnitude too high. The biggest maps are only about 1000x1000 - and that's rare - and on a map like that you probably only ever need a distance of about 6000 at most.
I had It set originally at 6000 but it made no difference. My terrain is about I think 620x620. I had it set low and it did nothing. I have lowered them. Here is my sky file if you want to take a look.

Code: Select all

SkyInfo()
{
	Enable(1);

	FogColor(23,93,19);
	PS2()
	{
		NearSceneRange(0.5, 200.000000, 270.000000);
		NearSplitScreenRange(1.000000, 140.000000, 200.000000);
		FarSceneRange(800.000000);
	}
	PC()
	{
		NearSceneRange(9000.0, 25000.0, 12000.0, 30000.0);
		FarSceneRange(6000.000000, 14000.0);
	}
	XBOX()
	{
		NearSceneRange(0.5, 200.000000, 270.000000);
		NearSplitScreenRange(1.000000, 200.000000, 270.000000);
		FarSceneRange(800.000000);
	}
}

DomeInfo()
{
	Texture("dag1_Skydome.tga");
	Angle(-90.000000);
	Ambient(255.000000, 255.000000, 255.000000);
	Softness(1);
	SoftnessParam(60);

	DomeModel()
	{	
		Geometry("dag1_skydome.msh");
	}


}
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: sky problem

Post by obiboba3po »

wait your terrain is 620x620, then we have a problem, it has to be a multiple of 2 (256, 512, 1024, 2048)
User avatar
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Re: sky problem

Post by elfie »

310 x 2 = 620 = an even number. That is not the problem btw but I do appreciate the help. I got it fixed...mostly. When I zoom in with my weapon the sky goes black again. No matter how low I set the Far/near screen I still have the problemo.
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: sky problem

Post by obiboba3po »

oh lol i thought it had to be a power of 2 :) good thing that you got it fixed though. (for the most part :) )
User avatar
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Re: sky problem

Post by elfie »

I tried a clean then munge. I will test it out in a minute and see if the problem goes away.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: sky problem

Post by Teancum »

elfie wrote:310 x 2 = 620 = an even number.
No, it MUST be a POWER of 2. Not an even number. So if it's not a problem now it will be very soon.

it ABSOLUTELY MUST BE:

64x64, 128x128, 256x256, 512x512. 1024x1024 technically would work, but is so incredibly huge you'd never use all of it, even in a starfighter, plus it can crash most people's games.
User avatar
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Re: sky problem

Post by elfie »

wait, never mind. It was 1024x1024. It seems big but It was neccessary. Besides, I have seven command posts and at each one are up to 5 speeders that spawn continuesly for both sides. This is for my map The Old Republic btw.
Post Reply