Sign in to follow this  
Followers 0
tincxd

help with images

10 posts in this topic

Hi!

 

I m modding cod4 .. creating new mod ..

...have a problem...

 

 
I dont want the black stuff .. only need the logo..
How do i edit the image so the black stuff is transparent ;) 
 
Thanks 

 

1

Share this post


Link to post
Share on other sites

Select the part you don't want in whatever program you use and then make an alpha channel of of the selected

1

Share this post


Link to post
Share on other sites

I did that but it didnt work.. i think i v done everything correctly in asset manager...compiled mod....and script is 

#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_globallogic_utils;
#include duffman\_common;

init()
{
  
        precacheShader( "tincxd_logo" );
	
	wait 0.1;
	if(level.instrattime)
		self thread logo();
	
		
		
}

logo()
{
    
    level.vosu = newHudElem();
	level.vosu.alignx = "center";
	level.vosu.alignY = "bottom";
	level.vosu.horzAlign = "center";
	level.vosu.vertAlign = "bottom";
	level.vosu.x = 0;
	level.vosu.y = -16;
	level.vosu.sort = 1;
	level.vosu setShader("tincxd_logo", 250, 250);

}

here is it ok ? :)

0

Share this post


Link to post
Share on other sites

Script seems fine, you must've done something wrong in asset manager. Make sure that blendFunc is set to Blend and your Color map is set to no tile.

1

Share this post


Link to post
Share on other sites

Set it to DXT5 ARGB   8 bpp | interpolated alpha then try again.

3

Share this post


Link to post
Share on other sites

Set it to DXT5 ARGB   8 bpp | interpolated alpha then try again.

 

 

Since when did this Stefan kid know about all of this.

 

+rep for all you've learnt since I last spoke to you

0

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0