DGL
https://delphigl.com/forum/

NonOpaque
https://delphigl.com/forum/viewtopic.php?f=19&t=3297
Seite 1 von 1

Autor:  Stucuk [ Di Sep 28, 2004 18:23 ]
Betreff des Beitrags:  NonOpaque

Im wondering how to get nonopaque looking like JKA's, Screenshots below.

Currently im just changing the colour values:

Code:
  1.  
  2.   if shader.NonOpaque then
  3.   for j := 0 to numOfVerts-1 do begin
  4.   If colorBuffer[j, 0] > 50 then
  5.     colorBuffer[j, 0] := 50; // red
  6.   If colorBuffer[j, 1] > 50 then
  7.     colorBuffer[j, 1] := 50; // green
  8.   If colorBuffer[j, 2] > 50 then
  9.     colorBuffer[j, 2] := 50; // blue
  10.   If colorBuffer[j, 3] > 50 then
  11.     colorBuffer[j, 3] := 50; // gamma
  12.   end;
  13.  


One thing it does thta it shouldn't is that the light rays add together when they overlap in view, which doesn't happen in jka.

P.S Yes lightmaps are screwed, Evil RBSP format

Dateianhänge:
Dateikommentar: JKA's Level shot
academy1.jpg
academy1.jpg [ 76.88 KiB | 3463-mal betrachtet ]
Dateikommentar: Helios
ACADEMY1_002-Small.jpg
ACADEMY1_002-Small.jpg [ 242.29 KiB | 3463-mal betrachtet ]

Autor:  Sascha Willems [ Mo Okt 11, 2004 15:27 ]
Betreff des Beitrags: 

Have you fixed it yet (totally forgot to answer on this one)? It seems that JKA draws the rays fron-to-back, so that they don't overlap due to the nature of blending. If you draw it from front to back, then the first polygon (In your shot the one on the right) generates depth-values and when you draw the next one (the next one to the left), that polygon only blends where there are no depth-values from the first drawn one.

Autor:  Stucuk [ Mo Okt 11, 2004 15:31 ]
Betreff des Beitrags: 

lowered the RGB further and shoved alpha to 255, looks better. Good idea about rendering the oposite way round. With JKA i got far worse problems now.(and no clue what the changes i made were that caused them)

Seite 1 von 1 Alle Zeiten sind UTC + 1 Stunde
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/