Jump to content

Home

"applying the ghost shader"...


boinga1

Recommended Posts

in the root direcotry for you model, where you have the models folder, and the sounds folder and the bots folders (if they exist) you need to create a folder called shaders.

 

In there, copy the shader file for morgan.

 

open up the morgan.shader (or whatever it's named) with notepad, and edit the lines where you see models/players/morgan/thetexturename.tga with the texture file pathc for your model.

 

you do not want to edit the path for the effect though (the blue glow), just the paths for the morgan skin to your model's skin.

 

rename the shader with your model name and voila!

Link to comment
Share on other sites

Pending Kman's approval, here's a shader I made for his fantastic Yoda model that gives it that "Blue Glowie" look, just like Morgan's Ghost in SP:

 

models/players/yoda/h_alpha
{
q3map_nolightmap
   {
       map models/players/yoda/h_alpha.tga
       alphaFunc GE192
       depthWrite
       rgbGen lightingDiffuse
   }
   {
       map models/players/yoda/h_alpha.tga
       blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
       rgbGen lightingDiffuse
       alphaGen wave sin 0.7 0.1 0.1 0.1
   }
   {
       map models/players/morgan/blue_glow
       blendFunc GL_ONE GL_ONE
       rgbGen wave sin 0.9 0.1 0.1 0.1
   }
}


models/players/yoda/yoda_head
{
surfaceparm	metalsteps
q3map_nolightmap
sort	seeThrough
   {
       map models/players/yoda/yoda_head.tga
       blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
       depthWrite
       rgbGen lightingDiffuse
       alphaGen wave sin 0.7 0.1 0.1 0.1
   }
   {
       map models/players/morgan/blue_glow
       blendFunc GL_ONE GL_ONE
       rgbGen wave sin 0.9 0.1 0.1 0.1
   }
}

models/players/yoda/yoda_body
{
q3map_nolightmap
   {
       map models/players/yoda/yoda_body.jpg
       blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
       depthWrite
       rgbGen lightingDiffuse
       alphaGen wave sin 0.7 0.1 0.1 0.1
   }
   {
       map models/players/morgan/blue_glow
       blendFunc GL_ONE GL_ONE
       rgbGen wave sin 0.9 0.1 0.1 0.1
   }
}

 

Hope that helps!

Link to comment
Share on other sites

yah, i got it, thanks khk h2o. just for the record, there is already a yodaghost out there. For a cool effect, though, you could make the red skin glow red by changing the "blue_glow.jog" to red, then telling the shader to use that instead of the blue_low.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...