[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - transparency

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Tue May 21, 2024 4:35 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 39 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: transparency
PostPosted: Mon Jan 05, 2009 11:57 pm 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
I know that most of you are very much SSM's but... hopefully one of you can help me. I am making a new mod that is actually in the sky. you know... alot of platforms, air vehicles and that kinda stuff. I am making alot of custom objects for it. especially for the actual area that foot solders will be walking around on. I have seen transparent textures (glass ect.) alot but I can't seem to figure out transparency in dds files... Hopefully someone can head me in the right direction of making those for my custom objects. also when I edit scopes for the mod I need it because when I have edited scopes in the past I can only add on and not take from because of lack of transparency.

thanks

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: transparency
PostPosted: Tue Jan 06, 2009 2:15 am 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
This requires a few things, Photoshop, and an edit of an .rs file, which is the shader file for the standardmesh of an object.

First in photoshop you want to go to the channels tab, once there you want to make a new channel, it will be called Alpha 1, Alpha 1 will appear black, this means currently the entire texture will be transparent. In order to get things not to be transparent, you need to copy their shape onto the black alpha channel, and adjust their shade. The closer to white you get, the more opaque that part of the texture will become, the more black, the more transparent.

Then once you've saved your .dds file as a RGBA, I use Interpolated Alpha for my save, you are going to need to edit the .rs file where that texture is applied. So lets say you have a standardmesh named Glass.sm, there should be a Glass.rs, open that .rs with Notepad, and look for the part where the texture is defined. In that textures code you simply need to add the line

transparent true;

to the shader, and save it. Now pack it all up and try it out!


Top
 Profile Send private message E-mail  
 
 Post subject: Re: transparency
PostPosted: Tue Jan 06, 2009 2:58 am 
Offline
User avatar

Joined: Sun Sep 16, 2007 2:33 pm
Posts: 1809
Location: Your moms house
whoes the emo guy in your profile picture?


Top
 Profile Send private message E-mail  
 
 Post subject: Re: transparency
PostPosted: Tue Jan 06, 2009 5:05 am 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
thanks arch! That's perfect. And that's Billie Joe Armstrong the lead singer of the band Green day.

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: transparency
PostPosted: Tue Jan 06, 2009 10:29 am 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
To be honest, it looks creepy :lol:

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: transparency
PostPosted: Tue Jan 06, 2009 5:08 pm 
Offline
User avatar

Joined: Sun Sep 16, 2007 2:33 pm
Posts: 1809
Location: Your moms house
he looks like he cuts himself


Top
 Profile Send private message E-mail  
 
 Post subject: Re: transparency
PostPosted: Tue Jan 06, 2009 6:32 pm 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
haha yeah he does basically :lol:

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: transparency
PostPosted: Tue Jan 06, 2009 8:21 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
Would you mind changing your avatar back to the little plane? :lol:

_________________
Image


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 39 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 282 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group