Development > Artwork

Material parameters (to avoid super-shiny textures)

(1/2) > >>

Sandro:
As all of you are have noticed, changes in the renderer brought one very unpleasant feature: all textures that do not have material parameters "specular" and "hardness" defined are reflective to the point of oily, or even metallic look.

This is because of fixing the bug which prevented assignment of default material parameters to textures (in most cases), but current default parameters are not good: they are all set to 1.0, which is very shiny. Looks like it would be a good idea to set some different, better material parameters, but since I'm no artist, I want to ask people of arts -- what values are the best ones?

MCR:
This is hard to answer without doing some testing...

Where exactly can we set this default parameter to play around with different values ?

Sandro:
Simplest method would be to edit the .mat file. On the other hand, there are r_specular and r_hardness console variables in the game, but they act as multipliers, not the default values. It would be possible to change them to be the deafult values, or, even better, introduce a new r_default_specular and r_default_hardness variables.

Edit:
I mean, the values in the .mat file just replace the default parameters, so creating them will result in the very same image as by changing the default values. They are treated just the same.

MCR:
Editing the .mat file would mean to edit it for each texture separately afaik, that is why I was asking...

I vote for the new r_default_specular & r_default_hardness variables, which then can be overridden for defined textures via material system.

AFAIR Arisian did some coding on this issue & the maximum value was set to 1.0 then: (http://ufoai.ninex.info/forum/index.php?topic=3181.msg38560#msg38560)

Sandro:

--- Quote from: MCR on May 15, 2011, 01:04:02 am ---Editing the .mat file would mean to edit it for each texture separately afaik, that is why I was asking...

--- End quote ---

Sure, but that will be needed only for testing stage -- when good default values will be found, they will be hardcoded into game.


--- Quote from: MCR on May 15, 2011, 01:04:02 am ---I vote for the new r_default_specular & r_default_hardness variables, which then can be overridden for defined textures via material system.

--- End quote ---

If my amount of free time allows will code those vars, then.


--- Quote from: MCR on May 15, 2011, 01:04:02 am ---AFAIR Arisian did some coding on this issue & the maximum value was set to 1.0 then: (http://ufoai.ninex.info/forum/index.php?topic=3181.msg38560#msg38560)

--- End quote ---

Thanks, read the whole thread. It explains how all that default material values mess did happen :)

Navigation

[0] Message Index

[#] Next page

Go to full version