Registriert: Di Jul 01, 2003 18:59 Beiträge: 887 Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
i want to create a transparent surface with emboss bumpmapping.
for the emboss bumpmapping is use the alpha channel.
so i cannot use it anymore for controlling how transparent the surface will be.
I figured out it is possible to use the following with opengl 1.4:
Registriert: Mo Sep 23, 2002 19:27 Beiträge: 5812
Programmiersprache: C++
AFAIK, there is no other way of blending with a constant color on older cards if you already use the alpha channel. The problem is the fact that for example GL_CONSTANT_ALPHA is part of the GL_EXT_Blend_Color-Extension and that is only supported on TNT-Cards since the 43.45 driver release, which most likeley means that it's done in software on that cards (that should explain why it's so slow. And I'm also quite shure that there's no other way to do blending with a constant alpha.
So you have two possibilites : Either forget about users with such old hardware as the RivaTNT(2), which is in my eyes the best option. Or you'll have to write two renderpaths and use GL_SRC_ALPHA / GL_ONE_MINUS_SRC_ALPHA on TNT-Cards.
Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste
Du darfst keine neuen Themen in diesem Forum erstellen. Du darfst keine Antworten zu Themen in diesem Forum erstellen. Du darfst deine Beiträge in diesem Forum nicht ändern. Du darfst deine Beiträge in diesem Forum nicht löschen. Du darfst keine Dateianhänge in diesem Forum erstellen.