PDA

View Full Version : scene darkens when interpolating 3 textures



kuber
03-26-2005, 10:38 AM
hallo there
im trying to build a landscape in opengl and therefor i want to apply multiple textures to it.
when i interpolate between 2 textures, everything works fine.
but when i try to interpolate between 3 textures, the whole scene becomes pretty dark, and i have no idea whats the reason for this.

to fix this, ive alleady searched the internet and found an example, which does exactly what i want. ( http://www.delphi3d.net/articles/viewarticle.php?article=terraintex.htm ).
so i copied the source from the example into my own project. but nothing changed. the scene is still darker then it should. the strange thing is, that the precompiled version, that comes along with the example, works fine. it appears like it should.

here is a pic, that shows the dark scene:
http://mitglied.lycos.de/dohgilde/ogl/dark_scene.jpg
and here another, with normal brightness:
http://mitglied.lycos.de/dohgilde/ogl/normal_scene.jpg
and here is the part of the source, if someone wants to look at it:
http://mitglied.lycos.de/dohgilde/ogl/source.txt