Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm implementing lighting for a WebGL app but I'm not an artist so I don't know how to generate or where to obtain a list of materials with its values (diffuse, specular, ambient and shininess). I've been searching a lot but with no luck.

Is there any list or DB I might have overlooked? Any common repository or something similar?

Thanks in advance.

Note: English is not my main language, let me know if you don't understand something and I'll try to rephrase it.

share|improve this question
1  
Excellent question! I'm really interested in this as well. Also, WebGL for the win! –  akled Nov 19 '11 at 19:12
    
For now, all I could find is this: refractiveindex.info EDIT: Thanks to DEElekgolo from /r/gaming –  mikidelux Nov 19 '11 at 20:42
add comment

1 Answer

up vote 6 down vote accepted

Great question! There are a few online repositories of measured optical data about various materials.

BRDFs:

  1. http://www.merl.com/brdf/
  2. http://www.cs.columbia.edu/CAVE/software/curet/

These are tabulated according to incoming and outgoing light direction, so if you want to approximate them as diffuse and specular, you'll have to fit those curves to the data yourself. You'll probably want to read up on BRDFs and also physically-based shading. (This is a huge area of research, so there's a lot to learn!)

For refractive indices. there's http://refractiveindex.info/ as you already mentioned; and in case you're interested, there is also some measured photometric data available about light sources - how bright they are and how they distribute light in different directions: http://www.americanelectriclighting.com/Library/Photometry/

share|improve this answer
1  
Very insightful, thank you very much. I asked the same question in another page and it came up with some healthy discussion here. –  mikidelux Nov 20 '11 at 13:31
    
Nice to learn that not all of Reddit is "le xDD lololo trollfayce". Also, some dude gave a useful link to another dude's blog about physically based shading, that was awesome! –  akled Nov 20 '11 at 14:07
    
@bane, there are really valuable subreddits with really good people, you just have to find them... –  mikidelux Nov 20 '11 at 14:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.