Autor Beitrag
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: So 23.01.05 17:21 
Ich habe mit OpenGL Nebel darstellen lassen mit folgendem Quelltext:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
{ glEnable(GL_FOG);}
 glEnable(GL_DEPTH_TEST);
 glShadeModel(GL_SMOOTH);
 ShowCursor(false);
 FogColor.Red:=1;
 FogColor.Green:=1;
 FogColor.Blue:=1;
 FogColor.Alpha:=0;
 glFogfv(GL_FOG_COLOR, @fogColor);
 glFogf(GL_FOG_START, 1);
 glFogf(GL_FOG_END, 20);
 glFogf(GL_FOG_DENSITY, 0.05);
 glFogi(GL_FOG_MODE, GL_Exp);

Meine Frage ist jetzt, wo liegt der Unterschied zwischen GL_Exp und Gl_Exp, da beide irgendwie das gleiche Ergebnis liefern.
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: So 23.01.05 17:25 
Liegt vielleicht daran, dass Delphi keinen Unterschied zwischen Groß- und Kleinschreibung kennt :gruebel:?

AXMD
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: So 23.01.05 17:29 
AXMD, ich glaube eher, dass Heiko da eine 2 vergessen hat.

Hier hab ich folgende Erklärung gefunden:
NeHe Productions hat auf ihrer Website geschrieben:
* GL_EXP - Basic rendered fog which fogs out all of the screen. It doesn't give much of a fog effect, but gets the job done on older PC's.
* GL_EXP2 - Is the next step up from GL_EXP. This will fog out all of the screen, however it will give more depth to the scene.
* GL_LINEAR - This is the best fog rendering mode. Objects fade in and out of the fog much better.


Gruß,
raziel

_________________
JSXGraph
Heiko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: So 23.01.05 17:30 
Enstschuldigung habe im ersten Post einen Fehler, meine Frage ist, was der Unterschied zwischen GL_Exp und GL_Exp2 ist (und nicht was der Unterschied zwischen GL_Exp und GL_Exp ist :autsch: )
Heiko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: So 23.01.05 17:37 
@raziel kannst du dass mal auf Deutsch sagen? Ich verstehe den Text nicht ganz und die kostenlosen Übersetzer geben kein sinnvolles Ergebnis zurück.
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: So 23.01.05 17:41 
GL_EXP: für ältere PCs, sieht nicht so gut aus
GL_EXP2: gibt der Szene mehr Tiefe
GL_LINEAR: Objekte dringen besser in den Nebel ein (und wieder raus); bester Renderingmode

AXMD
Heiko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: So 23.01.05 17:44 
Danke, Frage erledigt. Was GL_Linear ist wusste ich schon. aber was der Unterschied zw. GL_EXP und GL_EXP2 ist, da ich auf meinem Rechner keinen Unterschied sehe.