Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 87 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Lighting Problem
Ace008
General Member
Since: Jul 22, 2005
Posts: 738
Last: Jan 3, 2009
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Wednesday, May. 23, 2007 12:43 am
Well I can't compile my game, but I am going to try releasing anyway. Anyway here is my problem when I did a full fast compile and played in DX9 the models and player are all multicolored for some reason. Is there anyway to fix this for a SP map? Everything looks fine when I play in DX7. I just don't want to release my game if it will look bad.
Share |
cybershot
General Member
Since: Dec 29, 2005
Posts: 944
Last: Mar 4, 2018
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Wednesday, May. 23, 2007 05:26 am
most people say to put in some models into your map. and that solves the problem of the rainbow. most people play in dx7 anyway, so i wouldn't worry to much about the rainbow.
Share |
Ace008
General Member
Since: Jul 22, 2005
Posts: 738
Last: Jan 3, 2009
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Wednesday, May. 23, 2007 11:22 am
Alright I will try that thanks! Also I was searching some more and I totally forgot about a VClog. Would that help at all with this problem or the compile issue I am having and if so how would I do a VClog for a Call of Duty Single Player map? I have seen how to make one for a multi-player map but not single player.
Share |
Yorkshire-Rifles
General Member
Since: Mar 16, 2005
Posts: 272
Last: Apr 19, 2008
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Wednesday, May. 23, 2007 11:40 am
Ace, yes you do need to do a VC_log for SP. Do it exactly the same as the tutorial Here for MP, but it'll save to your main/maps folder.
Share |
Ace008
General Member
Since: Jul 22, 2005
Posts: 738
Last: Jan 3, 2009
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Wednesday, May. 23, 2007 01:01 pm
Okay, thanks York! I will try doing that and hopefully my problems will be close to solved.
Share |
Ace008
General Member
Since: Jul 22, 2005
Posts: 738
Last: Jan 3, 2009
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Saturday, May. 26, 2007 07:16 pm
Well I did the vclog, which was beyond mind numbing, and I still see bad lighting in DX9 on terrain and walls. The models all look fine so I am stumped as to why this may be happening. For setting during the Vclog I had these following things checked:

Compile BSP
Compile Lighting
Connect Paths
Fast
Verbose
ModelShadow

Then I went down checked the models collect dots thing and said make new grid, with which the game started and I started collecting all those little dots for an hour or so. When I got as many as I could I quit and then recompiled with the same settings only to be let down. One thing I did notice was that the grid file saved into the map_source folder and not the main maps folder so could that be causing the issue? The Grid file by the way is 332KB. Any help would be appreciated before I go mentally unstable[crazy]!
Share |
cybershot
General Member
Since: Dec 29, 2005
Posts: 944
Last: Mar 4, 2018
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Saturday, May. 26, 2007 07:34 pm
what do you mean by bad lighting. can you post a pic. also do you have these settings in your .gsc

setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setcvar("r_glowskybleedintensity0",".3");
Share |
Ace008
General Member
Since: Jul 22, 2005
Posts: 738
Last: Jan 3, 2009
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Sunday, May. 27, 2007 12:05 am
It is very hard to take a photo of the problem because it happens for only seconds at a time. Anyway what I mean by the bad lighting is the terrain and walls for a second or two turn green or purple when I try using DX9. The only way I was able to get rid of this annyoying effect was to take cull fog out of my GSC and use only exp fog or whatever it is but it looked horrible that way so that will not work. Could it be that it is just my pathetic excuse of a PC causing this because I only get like 2FPS while using DX9? Here is the script I used for fog and I added what you said but it still doesn't help.

Code:
//fog	
	//setcullfog (5, 4000, 0.247059, 0.254902, 0.286275, 0);
	setcullfog (5, 4000, 0.43, 0.43, 0.454, 0);
	
	
	setCullDist (6000);
 
setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setcvar("r_glowskybleedintensity0",".3");

setsavedcvar("r_specularColorScale", "3.5");
setsavedcvar("r_cosinePowerMapShift", "-.17");


Also I have it rainning in the map, could that cause this problem?

edited on May. 26, 2007 08:06 pm by Ace008
Share |
Yorkshire-Rifles
General Member
Since: Mar 16, 2005
Posts: 272
Last: Apr 19, 2008
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Sunday, May. 27, 2007 12:19 am
Might be an odd thing to ask Ace, but does you compiler fully finish or does it crash doing the lighting? If you have the Connect Paths option selected I find that the compiler just disappears when it ends - success or not.

Sometimes it'll crash from "out of memory" and close without informing you.

If you use the Bat file in downloads section from Stryder (Here) it pauses after BSP and Lighting, letting you then see if it finished correctly or whether it failed at any point.

Just a thought.

And yep, I agree logfiles are "beyond mind numbing" and they all of those dots make my eyes go funny!
Share |
Ace008
General Member
Since: Jul 22, 2005
Posts: 738
Last: Jan 3, 2009
[view latest posts]
Level 6
Category: CoD2 MP Mapping
Posted: Sunday, May. 27, 2007 12:25 am
I already downloaded that bat file by Stryder and it is finishing for sure, it even says it is using the grid file, thanks for the idea though[biggrin]! Also here is part of my FX file with the rain script I used in case that could be causing the effect.

Code:
#include maps\_weather;

main()
{
	precacheFX();
	treadFX();
	ambientFX();
	thread rainControl(); // level specific rain settings.
	thread playerWeather(); // make the actual rain effect generate around the player
//	thread playerEffect();
}

rainControl()
{
	// Rain
	level._effect["rain_heavy_cloudtype"]	= loadfx ("fx/misc/rain_heavy_cloudtype.efx");
	level._effect["rain_10"]	= loadfx ("fx/misc/rain_heavy.efx");
	level._effect["rain_9"]		= loadfx ("fx/misc/rain_9.efx");
	level._effect["rain_8"]		= loadfx ("fx/misc/rain_8.efx");
	level._effect["rain_7"]		= loadfx ("fx/misc/rain_7.efx");
	level._effect["rain_6"]		= loadfx ("fx/misc/rain_6.efx");
	level._effect["rain_5"]		= loadfx ("fx/misc/rain_5.efx");
	level._effect["rain_4"]		= loadfx ("fx/misc/rain_4.efx");
	level._effect["rain_3"]		= loadfx ("fx/misc/rain_3.efx");
	level._effect["rain_2"]		= loadfx ("fx/misc/rain_2.efx");
	level._effect["rain_1"]		= loadfx ("fx/misc/rain_1.efx");
	level._effect["rain_0"]		= loadfx ("fx/misc/rain_0.efx");

	// controls the temperment of the weather
	rainInit("hard"); // "none" "light" or "hard"
	level waittill("light rain");
	rainLight(15);
	level waittill("no rain");
	rainNone(30);
}

precacheFX()
{
	//footstep fx
	animscripts\utility::setFootstepEffect ("mud",			loadfx ("fx/impacts/footstep_mud.efx"));
	animscripts\utility::setFootstepEffect ("grass",		loadfx ("fx/impacts/footstep_mud.efx"));
	animscripts\utility::setFootstepEffect ("dirt",			loadfx ("fx/impacts/footstep_mud.efx"));
	animscripts\utility::setFootstepEffect ("concrete",		loadfx ("fx/impacts/footstep_water.efx"));
	animscripts\utility::setFootstepEffect ("rock",			loadfx ("fx/impacts/footstep_water.efx"));
	animscripts\utility::setFootstepEffect ("asphalt",		loadfx ("fx/impacts/footstep_water.efx"));



	level._effect["rain_heavy_cloudtype"]	= loadfx ("fx/misc/rain_heavy_cloudtype.efx");
	level._effect["rain_10"]	= loadfx ("fx/misc/rain_heavy.efx");
	level._effect["rain_9"]		= loadfx ("fx/misc/rain_9.efx");
	level._effect["rain_8"]		= loadfx ("fx/misc/rain_8.efx");
	level._effect["rain_7"]		= loadfx ("fx/misc/rain_7.efx");
	level._effect["rain_6"]		= loadfx ("fx/misc/rain_6.efx");
	level._effect["rain_5"]		= loadfx ("fx/misc/rain_5.efx");
	level._effect["rain_4"]		= loadfx ("fx/misc/rain_4.efx");
	level._effect["rain_3"]		= loadfx ("fx/misc/rain_3.efx");
	level._effect["rain_2"]		= loadfx ("fx/misc/rain_2.efx");
	level._effect["rain_1"]		= loadfx ("fx/misc/rain_1.efx");
	level._effect["rain_0"]		= loadfx ("fx/misc/rain_0.efx");

              animscripts\utility::setFootstepEffect ("mud",			loadfx ("fx/impacts/footstep_mud_beltot.efx"));
	//animscripts\utility::setFootstepEffect ("grass",		loadfx ("fx/impacts/footstep_mud_beltot.efx"));
	//animscripts\utility::setFootstepEffect ("dirt",			loadfx ("fx/impacts/footstep_mud_beltot.efx"));
	//animscripts\utility::setFootstepEffect ("concrete",		loadfx ("fx/impacts/footstep_water.efx"));
	//animscripts\utility::setFootstepEffect ("rock",			loadfx ("fx/impacts/footstep_water.efx"));
	//animscripts\utility::setFootstepEffect ("asphalt",		loadfx ("fx/impacts/footstep_water.efx"));



	
              level._effect["fogbank_large_duhoc"]	= loadfx ("fx/misc/fogbank_large_duhoc.efx");
              level._effect["fireheavysmoke"]	= loadfx ("fx/fire/fireheavysmoke.efx");
	level._effect["damaged_vehicle_smoke"]	= loadfx ("fx/smoke/damaged_vehicle_smoke.efx");
              level._effect["roadblock"] = loadfx("fx/explosions/barn_explosion.efx");
              level._effect["roadblock1"] = loadfx ("fx/explosions/artilleryExp_duhoc_clifftop.efx"); 
              level._effect["smoke_plumeBG"] = loadfx ("fx/smoke/smoke_plumeBG.efx"); 
             
}
playerEffect()
{
	
	player = getent("player","classname");
	level.heavy_rain = true;
	
	while(true)
	{
		playfx ( level._effect["rain_heavy"], player.origin + (0,0,650));
		if (level.heavy_rain)
		{
			playfx ( level._effect["rain_heavy_cloudtype"], player.origin + (0,0,650));
			// playfx ( level._effect["rain_mist"], player.origin + (0,0,350), player.origin + (0,0,380) );
		}

		wait (0.3);
	}
}


Thanks again for helping!

edited on May. 26, 2007 08:26 pm by Ace008
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»