## Shininess

Joe-Schmoe
Private First Class
Posts: 192
Joined: Mon Jul 24, 2006 1:10 am
Location: This field unintentionally left blank.

### Shininess

Hi,

I noticed on the wiki that there's a parameter for "shininess". The only description given was "shiny!".

I want to make something in my map really shiny, but I don't know how. How does it work?
Join MI6!

JeffM
Staff Sergeant
Posts: 5187
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:
it sets the openGL parameter for specular shine.

http://www.digitalscores.com/featured-a ... iness.html
JeffM

Joe-Schmoe
Private First Class
Posts: 192
Joined: Mon Jul 24, 2006 1:10 am
Location: This field unintentionally left blank.
I'm sorry, I don't know anything about using OpenGL

The link you gave used this as a formula for shininess:
CosL + 10 * CosR ^ 10
Is it the "10" that I'm changing?

Basically, do higher numbers of shininess = shinier objects? If so what is a reasonable sort of value?

I messed around with a couple of different shininess values and didn't notice any difference in my maps.

I'd settle for the type of shininess given in image2, if possible.
Join MI6!

JeffM
Staff Sergeant
Posts: 5187
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:
the value is a decimal, it goes from 0 to 1
0 == no shine
1.0 == max shine.

0.5 = 1/2 shine.
JeffM

Spazzy McGee
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:
Hmm... When you use Trepan's Wings3D Exporter, it gives a value between 0 and 128
"Life is what happens to you while you're busy making other plans." - John Lennon

Joe-Schmoe
Private First Class
Posts: 192
Joined: Mon Jul 24, 2006 1:10 am
Location: This field unintentionally left blank.
I tried values of 1, 1/2, and 120, none of which had any noticeable difference.

Is there something I have to switch on in the client to see shiny stuff?
Join MI6!

Spazzy McGee
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:
You might need specular.

``specular 1 1 1``