lighting - How to set material for metal(like silver) in OpenGL? -


how set material metal(like silver) in opengl? knows?

how set material metal(like silver) in opengl? knows?

if want material "kinda" metal, need set corresponding diffuse, ambient, specular , "shininess" parameters. investigate existing material libraries 3d editors blender , see how it. that's cheap, cheap. material low gl_shininess value (3..12, think?) "kinda" metallic surface.

if want material more metal, under lighting condition, you'll need write pixel shader use photorealistic texture of silver, additional texture map controls specular color , strength. texture allows away horrible , easy shader, long lighting conditions selected. requires programmer glsl knowledge , artist make texture, , artist more important - non-metallic shader per-pixel phong can fine-tuned hand want (precess might boring , tedious). shader requires per-pixel lighting specular (any specular), normalmapping support , environmental reflection mapping (with fresnel term support). using hdr weakly-reflective polished surfaces help.

if want real , perfect silver, you're in trouble , should reconsider. metallic surfaces have "fuzzy" reflections can pain implement quickly, depending on hardware. problem you'll have pretty study metal itself, check every metallic surface demo exists out there, read gdc papers, etc. i.e. research, can take lot of time/effort , won't pay off in end because quite possible final result have horrible performance. important thing don't need simulate real material make right - need fool viewer thinking silver.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -