Registriert: Mo Sep 23, 2002 19:27 Beiträge: 5812
Programmiersprache: C++
I've discovered that tutorial some months ago and already implemented that bumpmap-technique both on the torus that's shown in that tutorial and on MD3-Models. If there is interest, I'm going to release the source.
But it's no competition for bumpmapping with a shader, since you have to do at least two passes or even three when you also want specular highlight. But the advantage is the fact that it also runs on older hardware.
Registriert: Mo Sep 23, 2002 19:27 Beiträge: 5812
Programmiersprache: C++
Here you go : simplebump.zip (~600K, Bin+Source+Texture)
I've just cleaned up the code and removed all unnecessary libraries, so that it should compile just fine. If you're using Delphi 6 or lower, remove Variants form the uses-clausel. Don't know why Delphi 7 always wants to include that, even if you don't use it...
Edit : I noticed that I made a small fault. Please replace the following line (no.182) :
Registriert: Mo Sep 23, 2002 19:27 Beiträge: 5812
Programmiersprache: C++
Sorry, I forgot to include a unit from my basecode-folder. I've attached it. It contains some needed functions from my math library (like glMult3f) and also the functions to create the torus (+tangents and normals).
Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast
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.