View Issue Details

IDProjectCategoryView StatusLast Update
0004498The Dark ModTweakingpublic29.04.2018 20:45
Reporterduzenko Assigned Toduzenko  
PrioritynormalSeveritynormalReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionSVN 
Target VersionTDM 2.06Fixed in VersionTDM 2.06 
Summary0004498: Color in idDrawVert
DescriptionCan we remove color from idDrawVert?
1) Do we use any 3D models with colored vertices? Nbohr1more mentioned "vertex blended terrains like in A House of locked secrets" but I couldn't see the difference w/o vertex coloring.
2) Vertex color is used for particle age - can this be calculated in the particle shader rather than on CPU?
The benefit of this tweak would be
1) reduce vertex size from 60 to 56 bytes - slightly lower memory pressure and potentially better GPU cache fit
2) particle age in GPU shader would allow to do a few less memory writes
TagsNo tags attached.

Relationships

related to 0004431 resolvedduzenko Get rid of deprecated OpenGL functions 

Activities

duzenko

duzenko

02.04.2017 11:00

developer   ~0008787

Last edited: 02.04.2017 11:05

Confirm: courtyard of the Manor is blended with vertex color (grass/stone).
Disabling color hides the grass and leaves the stone only.

nbohr1more

nbohr1more

17.09.2017 20:15

developer   ~0009275

Moving all vertex color operations to shaders is too large a scope for 2.06 release window.

Moving to 2.07 for review.
VanishedOne

VanishedOne

17.09.2017 22:59

reporter   ~0009284

Last edited: 22.09.2017 01:37

'Do we use any 3D models with colored vertices?' -- It's certainly possible to use it for more than blending two textures: I don't know whether such a model has ever been released, but I've an experimental barber's pole that uses vertex colours for the red and white stripes (meaning it uses more polygons than it otherwise would but the stripes are perfectly crisp at any scale):

{
    blend diffusemap
    map _white
    vertexColor
    //rgb 0.6
}

Edit: also, I've just tried out vertex colours for grime/a.o. It seems to work pretty well on the stone steps I made.

duzenko

duzenko

22.09.2017 09:12

developer   ~0009327

Case closed

Issue History

Date Modified Username Field Change
25.03.2017 07:37 duzenko New Issue
25.03.2017 07:37 duzenko Status new => assigned
25.03.2017 07:37 duzenko Assigned To => duzenko
25.03.2017 07:37 duzenko Relationship added related to 0004431
25.03.2017 07:44 duzenko Description Updated
25.03.2017 07:44 duzenko Description Updated
02.04.2017 11:00 duzenko Note Added: 0008787
02.04.2017 11:05 duzenko Note Edited: 0008787
02.04.2017 11:05 duzenko Note Edited: 0008787
17.09.2017 20:15 nbohr1more Note Added: 0009275
17.09.2017 20:15 nbohr1more Product Version TDM 2.06 => SVN
17.09.2017 20:15 nbohr1more Target Version TDM 2.06 => TDM 2.07
17.09.2017 22:59 VanishedOne Note Added: 0009284
22.09.2017 01:37 VanishedOne Note Edited: 0009284
22.09.2017 09:12 duzenko Note Added: 0009327
22.09.2017 09:12 duzenko Status assigned => closed
22.09.2017 09:12 duzenko Resolution open => fixed
22.09.2017 09:12 duzenko Fixed in Version => TDM 2.06
29.04.2018 20:45 nbohr1more Target Version TDM 2.07 => TDM 2.06