transparency

This is a discussion on transparency within the SW:JK3 Modding, Mapping and Editing forums, part of the Jedi Knight III: Jedi Academy category; i made a bladed weapons pack that has blood effects, but the blood marks that show up when you hit ...

SW:JK3 Modding, Mapping and Editing Want more info about a Mod? Making a Mod? Looking for Modders, Mappers, Skinners, etc.? This is your Spot!

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1  
Old February 21st, 2007
IFailedEnglish's Avatar
<------- I drew that!
 
Join Date: December 16th, 2005
Location: None o' ya business
Posts: 438
Rep Power: 8
IFailedEnglish is a n00b
Default transparency

i made a bladed weapons pack that has blood effects, but the blood marks that show up when you hit someone always make the area around them black, and the same problem happens with a blood splater picture i made that is supposed to show up on the sword itself when you hit someone, but the area around that is black also. in the pictures for the blood. the parts ofitthat aren't blood are colored in black, so the black part shouldn't show up in jedi academy. but it does. ive included the pictures i used.
Attached Thumbnails
transparency-blood_splat.jpg  
Attached Images
   
Reply With Quote
Remove advertisements
Advertisement
Advertisement Sponsored links

  #2  
Old February 21st, 2007
Inyri Forge's Avatar
♥ ◊ ♥ Myaoi? ♥ ◊ ♥
 
Join Date: March 15th, 2005
Location: Chicago
Posts: 14,348
Rep Power: 26
Inyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured One
Default Re: transparency

Black is not automatically treated as transparency. You must have an alpha layer, and you must have an appropriate shader.
__________________
Reply With Quote
  #3  
Old February 21st, 2007
IFailedEnglish's Avatar
<------- I drew that!
 
Join Date: December 16th, 2005
Location: None o' ya business
Posts: 438
Rep Power: 8
IFailedEnglish is a n00b
Default Re: transparency

whats an alpha layer? and what would be an appropriate shader? this is the one im using for the cut marks:
gfx/damage/cut_mark
{
polygonOffset
{
clampmap gfx/damage/cut_mark
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
{
clampmap gfx/damage/cut_mark
blendFunc GL_ONE GL_ONE
rgbGen wave noise 1 0.5 0 2
}
}

and this is the one im useing for the blood splatter:

gfx/damage/blood_splat
{
polygonOffset
q3map_nolightmap
q3map_onlyvertexlighting
{
clampmap gfx/damage/blood_splat
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen lightingDiffuse
}
}
Reply With Quote
  #4  
Old February 21st, 2007
Inyri Forge's Avatar
♥ ◊ ♥ Myaoi? ♥ ◊ ♥
 
Join Date: March 15th, 2005
Location: Chicago
Posts: 14,348
Rep Power: 26
Inyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured One
Default Re: transparency

Alpha layer = alpha channel. Google it.
__________________
Reply With Quote
  #5  
Old February 21st, 2007
Crossbolt's Avatar
Semi-Phenomenal Nearly Cosmic
 
Join Date: August 30th, 2006
Posts: 304
Rep Power: 7
Crossbolt has disabled reputation
Send a message via MSN to Crossbolt Send a message via Yahoo to Crossbolt
Default Re: transparency

http://qbranch.cottages.polycount.co...haders-3.shtml

That shows you how to make an alpha channel in PhotoShop. If you are using Paint Shop Pro, you need to go into the layer menu, throw a mask on the layer you want to make into the alpha channel, and go into the mask toolbar along the top (only shows up if you have a mask selected) and then choose convert to alpha channel.

Hope that helps.
__________________

It has been said that a man's life is measured by the amount of achievements he has fulfilled. I disagree. It is measured not by his achievements, but by the achievements fulfilled by those he has taught.
Reply With Quote
  #6  
Old February 21st, 2007
IFailedEnglish's Avatar
<------- I drew that!
 
Join Date: December 16th, 2005
Location: None o' ya business
Posts: 438
Rep Power: 8
IFailedEnglish is a n00b
Default Re: transparency

im not using any of those. the only picture programs i have are picture it 9 and HP image zone.
Reply With Quote
  #7  
Old February 21st, 2007
Inyri Forge's Avatar
♥ ◊ ♥ Myaoi? ♥ ◊ ♥
 
Join Date: March 15th, 2005
Location: Chicago
Posts: 14,348
Rep Power: 26
Inyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured One
Default Re: transparency

Then get GIMP.
__________________
Reply With Quote
  #8  
Old February 22nd, 2007
Szico VII's Avatar
We want FF7-2/remake!
 
Join Date: September 14th, 2003
Location: A
Posts: 1,939
Rep Power: 14
Szico VII should make some friends
Send a message via AIM to Szico VII Send a message via MSN to Szico VII
Default Re: transparency

You dont need an alpha channel for those effects, you can actually use a png with transparency, which is often preferred for decals.

And, as we can see with that shader, there is no 'alphafunc GE128' or 'LT128' meaning even if you did make an alpha layer, the engine doesnt know whether to use the black alpha layer to make thigns transparent or not. I think by default with the shader you posted, it just assumes black sections of an image are transparent, for example, if you look at the effect images files, you will find they have transparency and are Jpeg files, thus, not having an alpha layer.
__________________


Next Maps:
Verschneit 25%
The Matrix Unleashed - Chateaux 2%
Reply With Quote
  #9  
Old February 22nd, 2007
Inyri Forge's Avatar
♥ ◊ ♥ Myaoi? ♥ ◊ ♥
 
Join Date: March 15th, 2005
Location: Chicago
Posts: 14,348
Rep Power: 26
Inyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured OneInyri Forge - the Honoured One
Default Re: transparency

Szico, what do you think the transparent part of a PNG is? It functions exactly the same way. A PNG basically is a targa anyway.
__________________
Reply With Quote
  #10  
Old February 22nd, 2007
lassev's Avatar
Degenerate scripter
 
Join Date: June 21st, 2004
Location: Finland
Posts: 789
Rep Power: 12
lassev is a regular member
Default Re: transparency

Quote:
Originally Posted by Szico VII View Post
And, as we can see with that shader, there is no 'alphafunc GE128' or 'LT128' meaning even if you did make an alpha layer, the engine doesnt know whether to use the black alpha layer to make thigns transparent or not.
Those are cut-off alpha functions. So, in a certain sense when you use them, there is no actual blending. The engine just determines whether to draw a pixel fully or not at all, based on the alpha channel. In the case of those two funcs if the alpha value is 128 or over, or if it's less than 128. The characteristic of transparency created by alphafuncs is, thus, very sharp borders between fully transparent and fully opaque portions of the texture.
__________________
Punks in a house.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transparency in TGA Valgarochi SW:EaW Problems, Errors and Help 3 February 25th, 2007 09:56 AM
Transparency <->Natty<-> The Graphics Department 7 December 17th, 2006 09:28 AM
transparency? AcE SoF Mapping, Modeling and Skinning 1 December 21st, 2003 05:16 AM
Transparency in JA static244 ST:A2 Problems, Errors and Help 1 October 28th, 2003 11:20 AM
Transparency Xan ST:BC Modding and Editing 6 November 22nd, 2002 06:38 PM


All times are GMT -7.