Author Topic: Difference -ogl_spec and -spec_exp  (Read 4900 times)

0 Members and 1 Guest are viewing this topic.

Difference -ogl_spec and -spec_exp
Is this a Direct3D OpenGL difference or what is it?

I mean, there's only one specular exponent, isn't there?

 

Offline redsniper

  • 211
  • Aim for the Top!
Re: Difference -ogl_spec and -spec_exp
-spec_exp isn't exponent, it's explosion. It affects how bright the lights from explosions are.
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."

 
Re: Difference -ogl_spec and -spec_exp

 

Offline redsniper

  • 211
  • Aim for the Top!
Re: Difference -ogl_spec and -spec_exp
huh, well either the wiki's wrong, or I'm wrong and I don't know how people are supposed to change the explosion brightness.
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."

 
Re: Difference -ogl_spec and -spec_exp
Maybe someone who knows the could could confirm either one here?

Explosions might also be bound to the point light factor actually. But then I'd still not understand what exp stands for if ogl_spec is the exponent...

 

Offline Aardwolf

  • 211
  • Posts: 16,384
    • Minecraft
Re: Difference -ogl_spec and -spec_exp
how about explosion ?

 
Re: Difference -ogl_spec and -spec_exp
it isn't explosion.. it is the exponent. I looked it up inside the code.

I'm still not sure what the difference to the OpenGL shininess value is.. I think the OpenGL value is used in the shaders, the exp value in the fixed function pipeline, but I'm not 100% sure, the code isn't exactly easy to read. But it is NOT explosions. Those are affected by the point light factor.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Difference -ogl_spec and -spec_exp
Both refer to the specular exponent of all lights, they just get applied in different areas.  The -spec_exp value is directly applied to the light itself before any other lighting calculations are done.  The -ogl_spec value is for the final lighting calculation of all lights and is used the same way in both the fixed function lighting calculations and in the shaders.

 
Re: Difference -ogl_spec and -spec_exp
What does that mean "applied to the light itself" how so? And where is it accessed? Multiplied to what?

Is that value used in the shaders at all?  I'm not really sure I'm getting this... how can the specular light be calculated before any other calculation?

 

Offline Aardwolf

  • 211
  • Posts: 16,384
    • Minecraft
Re: Difference -ogl_spec and -spec_exp
Oh, I get it; ogl_spec is a coefficient and spec_exp is the exponent.

i.e. the total specular component of the lighting is ogl_spec * (n ^ spec_exp), where n is probably some dot product

 
Re: Difference -ogl_spec and -spec_exp
Wrong. The OpenGL shininess is accessed by the shaders and used as an exponent by gl_FrontMaterial.Shininess.

 

Offline Aardwolf

  • 211
  • Posts: 16,384
    • Minecraft
Re: Difference -ogl_spec and -spec_exp
Are you asking or telling?

 

Offline Tolwyn

  • The Admiral
  • Administrator
  • 214
  • Ridiculously Old Fraud
    • Wing Commander Saga
Re: Difference -ogl_spec and -spec_exp
Are you asking or telling?

What's life without the ability to ask stupid question?
Wing Commander Saga: A Legend Is Reborn | WingCenter
 
Tolwyn’s reputation for risk taking with other people’s lives was considered  to understate the facts. The admiral’s willingness to sacrifice anyone or anything to achieve his objectives had long been lauded in the popular press. He was “the man who got things done”.- Colonel Blair

No errors, no random CTDs, just pure fun and proof of why getting hit with missiles is a bad thing.
-WC Saga's beta tester


Report Wing Commander Saga bugs with Mantis

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Minecraft
    • Steam
    • Twitter
    • ModDB Feature
Re: Difference -ogl_spec and -spec_exp
* Zacam laughs coffee out his nose
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 
Re: Difference -ogl_spec and -spec_exp
So would anyone knowing this code like to contribute any more information? Even a "I simply have no idea" would be helpful... So far I haven't found out what the heck this is supposed to change once shaders are used...

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Minecraft
    • Steam
    • Twitter
    • ModDB Feature
Re: Difference -ogl_spec and -spec_exp
Both refer to the specular exponent of all lights, they just get applied in different areas.  The -spec_exp value is directly applied to the light itself before any other lighting calculations are done.  The -ogl_spec value is for the final lighting calculation of all lights and is used the same way in both the fixed function lighting calculations and in the shaders.

Seems to sum it up rather nicely, I think.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 
Re: Difference -ogl_spec and -spec_exp
Ok fine.. I'll refrain from asking any question here from now on.

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Minecraft
    • Steam
    • Twitter
    • ModDB Feature
Re: Difference -ogl_spec and -spec_exp
Reh? I am not understanding what the issue is then. But that is a rather dramatic way to decide you haven't gotten what you are after.

Perhaps further clarification would allow us to provide a better response.

Applied to the light itself means that it sets the overall factor for the lighting before it's effects on, with or by any other surfaces or means takes place.

The shaders and fixed render pipeline operate with-ogl_spec the same way, the shaders act with gl.FrontMaterialShininess, which it can derive adjusted values from the usage of -ogl_spec as well as the resultant light from -spec_exp.

Now mind, as I am not a coder, I could be wrong. But this is what I infer with what little OpenGL knowledge I have and a great deal of assumption.
« Last Edit: April 06, 2009, 09:11:40 am by Zacam »
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 
Re: Difference -ogl_spec and -spec_exp
Could anyone give a DEFINITE answer to this that REALLY clearifies this?

  

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Minecraft
    • Steam
    • Twitter
    • ModDB Feature
Re: Difference -ogl_spec and -spec_exp
Could anyone give a DEFINITE answer to this that REALLY clearifies this?

Apparently not. If taylors answer and my attempted exposition has not helped any, I don't know what will.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys