[BFV] [Bug] Opaque red windows and other issues

Until this forum becomes busy just include BF2, 2142 or BFV in the title

[BFV] [Bug] Opaque red windows and other issues

Postby Yronno » Fri Aug 31, 2018 3:50 pm

Hey folks, I was hoping you might be able to help me out with a bug I've been experiencing. So I've installed Battlefield Vietnam from Battlefield 1942: The Complete Collection. I installed the 1.2 and 1.21 official patches from eodmod.org. The game wouldn't launch, so I installed the executable patch from SiMPLE. Now the game launches fine and connects to multiplayer servers, but there are some glaring graphical glitches with weapons as well as air vehicles. Namely, the glass for helicopters and jets is opaque red. (See the images in the spoilers below.)

Image 1
Opaque red windows and red LAW sight

Image 2
Red knife

Image 3
View from the inside of the aircraft

I've heard from the helpful folks here that this is an unfortunate result of having an AMD graphics card. Their recommendation was to just use the nosecam for the vehicles in question, but I was curious and wanted to see if there's a better fix. I dug around the files with BGA and was able to find the source of the issue: cubemaps. Within Mods\BfVietnam\Archives\standardMesh.rfa, there's a lot of .rs files that go something like this:

Code: Select all
subshader "W_Law_Scope_m1_Material0" "StandardMesh/Default"
   lighting true;
   lightingSpecular true;
   materialDiffuse 1 1 1;
   materialSpecular .7 .7 .7;
   materialSpecularPower 6;
   glossmapinalphadiffuse true;
   texture "texture/W_Law";

subshader "W_Law_Scope_m1_Material1" "StandardMesh/Default"
   lighting true;
   lightingSpecular true;
   materialDiffuse .2 .2 .2;
   materialSpecular .5 .5 .5;
   materialSpecularPower 12;
   cubemap "texture/env_default.rcm";
   opacity .7;
   transparent true;
   reflectivity 1;
   selfillum .2 .2 .2 .1;
   texture "texture/W_LawLens";

Notice the line cubemap "texture/env_default.rcm";. This refers to a file in texture.rfa which shows six reflection images depending on where an object in-game is facing. By deleting this line in all the .rs files in which it occurs, this eliminates the opaque red, and the object becomes transparent again. This poses two major issues though: the first is that it requires a lot of digital digging to locate all the files in which this line occurs, and more importantly, this modification of the files prevents one from joining online servers.

I have a theory that I can more easily disable these cubemaps using the game.setEnvironmentMapping command, but I'm not sure how to make it work. I've tried including "game.setEnvironmentMapping 0" in my Mods\BfVietnam\settings\Profiles\Custom\Video.con file, but to no avail. When I try running this command in-game, I'm hit with an error.

Now that I know what's causing these graphical glitches, do you think there's any way I can fix them while still being able to connect to online servers? Could I be on the right track? I figured you would be the ones to ask. Thanks.
Posts: 1
Joined: Fri Aug 31, 2018 3:05 pm

Re: [BFV] [Bug] Opaque red windows and other issues

Postby freddy » Sat Sep 01, 2018 12:17 am

I made a quick search on cubemaps, check the post #2 it has some info about it http://community.bugbeargames.com/index ... pic=6643.0

Perhaps you could try change some setting for your graphics card for the anisotropic texture filtering level just to see if any results
User avatar
Posts: 1230
Joined: Sun Oct 18, 2009 4:58 pm

Return to Battlefield 2, 2142 and Vietnam Discussion

Who is online

Users browsing this forum: No registered users and 3 guests