View Issue Details

IDProjectCategoryView StatusLast Update
0003958The Dark ModGraphicspublic07.12.2014 07:52
ReporterSteveL Assigned ToSteveL  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionTDM 2.03 
Fixed in VersionTDM 2.03 
Summary0003958: Fix r_showShadows
Descriptionr_showShadows draws shadow volumes in black wireframe (option 1) or not at all (option 2, which should draw them solid). With Sikkmod code active it drew them in blue. It's supposed to draw them in colours chosen by the engine.
Additional InformationFrom forum thread: http://forums.thedarkmod.com/topic/16757-r-showshadows-drawing-in-black-or-not-at-all/page__view__findpost__p__360214

Somewhere along the way, we must have lost a line from shadow.vp:

MOV result.color, vertex.color;

Our shadow.vp doesn't set the vertex colour at all, which is why my lines were black and why option 2 (which uses an additive blend to paint the shadow volume "surfaces") didn't show up at all.

Sikkpin's shadow.vp set it to a constant RGB 0-0-1 which is why everything came out blue.

But the engine is set up to set the colours itself, using different colours for front faces and back faces, and for different shadow optimisation routines, so you can tell how a given shadow got drawn.
TagsNo tags attached.

Activities

SteveL

SteveL

07.12.2014 07:51

reporter   ~0007218

Added the missing line in rev 14133

/trunk/glprogs/shadow.vp

Issue History

Date Modified Username Field Change
07.12.2014 07:49 SteveL New Issue
07.12.2014 07:49 SteveL Status new => assigned
07.12.2014 07:49 SteveL Assigned To => SteveL
07.12.2014 07:51 SteveL Note Added: 0007218
07.12.2014 07:52 SteveL Status assigned => resolved
07.12.2014 07:52 SteveL Fixed in Version => TDM 2.03
07.12.2014 07:52 SteveL Resolution open => fixed