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

Aktuelle Zeit: Di Mai 14, 2024 19:58

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



Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: NonOpaque
BeitragVerfasst: Di Sep 28, 2004 18:23 
Offline
DGL Member
Benutzeravatar

Registriert: Mi Jul 21, 2004 22:39
Beiträge: 360
Wohnort: UK, Scotland
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 | 2633-mal betrachtet ]
Dateikommentar: Helios
ACADEMY1_002-Small.jpg
ACADEMY1_002-Small.jpg [ 242.29 KiB | 2633-mal betrachtet ]

_________________
Free Map Editor - Game Requirements - Stucuk.Net
-Stu
Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mo Okt 11, 2004 15:27 
Offline
DGL Member
Benutzeravatar

Registriert: Mo Sep 23, 2002 19:27
Beiträge: 5812
Programmiersprache: C++
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.

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


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mo Okt 11, 2004 15:31 
Offline
DGL Member
Benutzeravatar

Registriert: Mi Jul 21, 2004 22:39
Beiträge: 360
Wohnort: UK, Scotland
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)

_________________
Free Map Editor - Game Requirements - Stucuk.Net
-Stu


Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Foren-Übersicht » English » English Programming Forum


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste


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.033s | 19 Queries | GZIP : On ]