Einzelnen Beitrag anzeigen

Georgy

Registriert seit: 19. Nov 2005
1 Beiträge
 
#1

die lightmaps mit radiosity

  Alt 19. Nov 2005, 19:52
screenshots: http://www.geocities.com/tmtlib/screenshots.html

updated information:

description: die lightmaps mit radiosity
source code: Delphi 6
system: Windows95/98/Xp/Me/2000
version: 1.0
license: public domain

Algorithmus.
--------------
wie es funktioniert:
1) Lightmap[i].pixel[u,v] -> u,v
2) u,v -> Gleichungen ->x,y,z
3) gluLookAt( x,y,z, x+polygon[i].normal.x, y+polygon[i].normal.y, z+polygon[i].normal.z, ...)
4) render
5) glReadPixels -> radiosityPointer
6) radiosityPointer -> Gleichungen -> TempColor (r,g,b)
7) Lightmap[i].pixel[u,v].red:=Lightmap[i].pixel[u,v].red+TempColor.r;
Lightmap[i].pixel[u,v].green:=Lightmap[i].pixel[u,v].green+TempColor.g;
Lightmap[i].pixel[u,v].blue:=Lightmap[i].pixel[u,v].blue+TempColor.b;
Angehängte Dateien
Dateityp: zip glrnew_290.zip (181,5 KB, 58x aufgerufen)
  Mit Zitat antworten Zitat