PDA

View Full Version : Values for glMaterial



FabianW
11-01-2008, 02:25 AM
Hello!

I search for a collection of values for glMaterial like this: http://wiki.delphigl.com/index.php/Materialsammlung
I'm specially interested in values for Wood and Marble.

Thanks and best wishes from Germany!

dletozeun
11-01-2008, 11:19 AM
I'm specially interested in values for Wood and Marble.


This is very difficult thinking that wood or marble are materials whose color is not uniform, we recognize them firstly by their texture and secondly by their color. You should use texture instead.

FabianW
11-02-2008, 03:31 AM
Sorry, let me rephrase that. I am using textures already - I search for the values of the light. Such as Shininess and so on..

zeoverlord
11-02-2008, 04:39 AM
the problem is that there is no such uniform material properties, wood can either be shiny or dull, likewise marble.
The best way is probably to experiment yourself, it's not about what the "correct" values are, it's about what looks the best for the situation.

_NK47
11-03-2008, 10:07 AM
some of those values i saw in Advanced Graphics Programming using OpenGL but zeoverlord is right, it depends mostly on the scene.

got it:
http://www.opengl.org/resources/code/samples/sig99/advanced99/notes/node153.html