Files |  Tutorials |  Articles |  Links |  Home |  Team |  Forum |  Wiki |  Impressum

Aktuelle Zeit: Fr Jul 18, 2025 22:13

Foren-Übersicht » English » English Programming Forum
Unbeantwortete Themen | Aktive Themen



Ein neues Thema erstellen Auf das Thema antworten  [ 7 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: bummapping
BeitragVerfasst: Fr Jan 30, 2004 19:37 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
I found this tutorial on bumpmapping: http://www.paulsprojects.net/tutorials/ ... ebump.html

It also shows how to use your existing opengl lights (only one)

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Feb 01, 2004 12:11 
Offline
DGL Member
Benutzeravatar

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.

_________________
www.SaschaWillems.de | GitHub | Twitter | GPU Datenbanken (Vulkan, GL, GLES)


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Feb 01, 2004 17:48 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
Please do it. All i get is a black thingy, but no bumpmapping...

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Feb 01, 2004 18:22 
Offline
DGL Member
Benutzeravatar

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) :
Code:
  1. LoadTexture('stone_nmap.tga', NormalMap, False, GL_LINEAR, GL_LINEAR_MIPMAP_LINEAR, False);

with this :
Code:
  1. LoadTexture('stone_nmap.tga', NormalMap, False, GL_LINEAR, GL_LINEAR, False);

Normalmaps shouldn't be mipmapped, and you would notice that if moving in and out of a scene.

_________________
www.SaschaWillems.de | GitHub | Twitter | GPU Datenbanken (Vulkan, GL, GLES)


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mo Feb 02, 2004 19:25 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
Thanks i have a look at it. Also i managed to make my version to work.

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Feb 04, 2004 19:26 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
i looked at your code and it seems some units are missing.

where can i find the command glmult3f?

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Feb 04, 2004 19:30 
Offline
DGL Member
Benutzeravatar

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).


Dateianhänge:
glPrimitives.zip [1.94 KiB]
308-mal heruntergeladen

_________________
www.SaschaWillems.de | GitHub | Twitter | GPU Datenbanken (Vulkan, GL, GLES)
Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 7 Beiträge ] 
Foren-Übersicht » English » English Programming Forum


Wer ist online?

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.

Suche nach:
Gehe zu:  
cron
  Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de
[ Time : 0.010s | 16 Queries | GZIP : On ]