[CSM] Transparent roadbed

Ask questions, discuss ideas, get answers

Transparent roadbed

Postby Diamondback » Wed Jan 01, 2020 10:04 pm

I am trying to make the roadbed of the railroad objects in BF1942 transparent for my mod, but all I can see in Battlecraft is some black roadbed:
Image

As you can see in the image, the part below the straight railroad object should be transparent, but Battlecraft displays the color as black. Testing the map also shows a black roadbed.

Here is what I have done to try to generate the transparent roadbed:

1) Open the Rail_Base_I.dds object from vanilla BF with GIMP 2.10
2) Filled the part of the image (the roadbed) I wanted transparent with a black color, then added an alpha channel to make that part of the image transparent (Layer > Transparency > Add Alpha Channel)
3) Added the "Color to Alpha" effect on the black part of the image (Layer > Transparency > Color to Alpha)
4) Saved the image, then exported it as a DDS with the same dimensions (256x256 pi) and following settings: Compression = BCI / DXTI; Mipmaps: use existing mipmaps; all other settings left default)
5) Copied the new Rail_Base_I.dds image with the transparent roadbed to my texture folder, packed it with winRFA to my mod Archives, then fired up BC

Has anyone used GIMP to manipulate DDS files from BF1942, most importantly, to make transparent textures (with an alpha channel). If so, would anyone know the right export settings from GIMP to export as a DDS image with transparency? Thank you.
See my Strasbourg map project here.
Diamondback
 
Posts: 518
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

Re: Transparent roadbed

Postby GoodDayToDie!! » Mon Jan 06, 2020 9:01 pm

Hi Diamondback,

Try posting this to the is82.com forums. If you're lucky, you might get a faster response.

Cheers
Image
GoodDayToDie!!
 
Posts: 217
Joined: Mon Dec 13, 2010 7:59 am
Location: Bat Country, California

Re: Transparent roadbed

Postby Diamondback » Mon Jan 06, 2020 9:33 pm

Thanks GD2D, ziba was able to make a new model of the railroad tracks minus the roadbed, which is even better, since now the collision LODs associated with the roadbed part of the railroad objects are now gone. I can post the tracks minus the roadbeds here upon request.
See my Strasbourg map project here.
Diamondback
 
Posts: 518
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada


Return to 1942 Modding Discussion

Who is online

Users browsing this forum: Majestic-12 [Bot] and 42 guests

cron