[Bf-committers] Realistic specularity in the game engine

Alexander Ewering blender at instinctive.de
Wed Feb 2 02:34:11 CET 2005


Hi,

I managed to greatly improve the realism of realtime specularities:

Old: http://pub.intrr.org/spec2.jpg
(Specs don't move relative to the surface when the viewer moves, extend
infinitely into the surface)

New: http://pub.intrr.org/spec3.jpg
(Specs move, no strange extending into the surface, totally
realistic)

The fix was simple: In the GL init stuff, just do:

float f= 1.0;
glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, &f);

Might be worth including ;-)

| alexander ewering              instinctive mediaworks
| ae[@]instinctive[.]de   http://www[.]instinctive[.]de


More information about the Bf-committers mailing list