Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: Values for glMaterial

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2008
    Posts
    2

    Values for glMaterial

    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!

  2. #2
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,370

    Re: Values for glMaterial

    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.

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2008
    Posts
    2

    Re: Values for glMaterial

    Sorry, let me rephrase that. I am using textures already - I search for the values of the light. Such as Shininess and so on..

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    748

    Re: Values for glMaterial

    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.

  5. #5
    Advanced Member Frequent Contributor _NK47's Avatar
    Join Date
    Mar 2008
    Posts
    574

    Re: Values for glMaterial

    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...s/node153.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •