Gloss shader? -1 reply

  • 1
  • 2

Please wait...

Arc Nine

GF Pwns Me!

50 XP

3rd August 2009

0 Uploads

58 Posts

0 Threads

#1 9 years ago

How can i make a gloss shader? You know, it's like the opposite of a chrome shader: Instead of making metallic dark things it puts metallic white things. Y'know?




AshuraDX

WTF ?! BOOOOOOOM !

50 XP

10th May 2009

0 Uploads

1,462 Posts

0 Threads

#2 9 years ago

the only way I know is using an environment shader or specualrity shader you can also combine both here's a combined one :

"texturepath" { q3map_nolightmap { map "texturepath" blendFunc GL_ONE GL_ZERO rgbGen lightingDiffuse } { map "speculartexturepath" blendFunc GL_SRC_ALPHA GL_ONE detail alphaGen lightingSpecular } { map "environmenttexturepath" blendFunc GL_DST_COLOR GL_SRC_COLOR detail tcGen environment } }

for a very glossy appereance you should use something like this as environment texture glossyenviro.jpg

use different environment textures for different materials

maybe this isnt the best way but with the right use of environment texture you can get different effects




Arc Nine

GF Pwns Me!

50 XP

3rd August 2009

0 Uploads

58 Posts

0 Threads

#3 9 years ago

what's an environment texture? I don't have time to test it right now.




AshuraDX

WTF ?! BOOOOOOOM !

50 XP

10th May 2009

0 Uploads

1,462 Posts

0 Threads

#4 9 years ago
Arc Nine;4967794what's an environment texture? I don't have time to test it right now.

it over lays an texture and moves around acording to the lighting and camera perspetice :)




Authuran

Queef Richards

50 XP

2nd October 2005

0 Uploads

4,671 Posts

0 Threads

#5 9 years ago

So like the hangar floor in Darth Norman's Battle over Coruscant? o.O if it is then I figure I'll look into it more and use it on the Jedi Temple map I'm going to start soon from TFU




AshuraDX

WTF ?! BOOOOOOOM !

50 XP

10th May 2009

0 Uploads

1,462 Posts

0 Threads

#6 9 years ago
Authuran;4967839So like the hangar floor in Darth Norman's Battle over Coruscant? o.O if it is then I figure I'll look into it more and use it on the Jedi Temple map I'm going to start soon from TFU

something like that yes and that mettallic look at my sith stalker saber is made by using an environment texture too same for my ashoka tano lightsaber environment textures simulate a reflection




Authuran

Queef Richards

50 XP

2nd October 2005

0 Uploads

4,671 Posts

0 Threads

#7 9 years ago

Ahhh yes of course lol they will come in handy in future maps. Do they bring down fps considerably if used on all floors? (AKA, every single texture used on a floor uses envmap)




AshuraDX

WTF ?! BOOOOOOOM !

50 XP

10th May 2009

0 Uploads

1,462 Posts

0 Threads

#8 9 years ago

I'm pretty sure they will but only if you OVERUSE them or use very detailed enviro. textures




Authuran

Queef Richards

50 XP

2nd October 2005

0 Uploads

4,671 Posts

0 Threads

#9 9 years ago

What do very detailed envmaps look like? Because I am looking forward to creating sort of a shiny, sun ground, like it was in TFU and and DN's Battle Over Coruscant hangar




Raziel2121

Ninjas Are Cooler

50 XP

3rd September 2008

0 Uploads

155 Posts

0 Threads

#10 9 years ago

this is another shader that has a type of shine effect models/weapons2/tReb/Steel { { map models/weapons2/tReb/steel blendFunc GL_ONE GL_ZERO rgbGen lightingDiffuse } { map models/weapons2/tReb/steel_spec blendFunc GL_SRC_ALPHA GL_ONE detail alphaGen lightingSpecular } }




  • 1
  • 2