View Issue Details

IDProjectCategoryView StatusLast Update
0004431The Dark ModCodingpublic15.09.2017 03:57
Reporterduzenko Assigned Toduzenko  
PrioritynormalSeveritynormalReproducibilityhave not tried
Status resolvedResolutionfixed 
Product VersionSVN 
Target VersionTDM 2.06Fixed in VersionTDM 2.06 
Summary0004431: Get rid of deprecated OpenGL functions
DescriptionDeprecated functions prevent using of NSight which indicates that it's time to refactor the rendering code and replace deprecated functions with their modern counterparts.
Here's a short log of NSight (18.05.17):
                                                   glTexEnvi
                                                   glColor3f
                                                  glColor4fv
                                                     glBegin
                                                glTexCoord2f
                                                  glVertex2f
                                                       glEnd
TagsNo tags attached.

Relationships

related to 0003684 new Investigate GPL Renderer Improvements 
related to 0004498 closedduzenko Color in idDrawVert 
related to 0004511 closedduzenko Bad display of certain foliage 

Activities

duzenko

duzenko

15.04.2017 08:40

developer   ~0008795

Last edited: 15.04.2017 08:50

View 2 revisions

RB_STD_T_RenderShaderPasses(1), RB_ARB2_CreateDrawInteractions: commented out color pointer as not used (?)
RB_ARB2_CreateDrawInteractions_simple (terrain blending), RB_STD_T_RenderShaderPasses(new particles): replaced color pointer with attrib[3]
RB_STD_T_RenderShaderPasses(old particles): left color pointer unchanged as part of fixed-pipeline not executing as long as new particles are enabled

GL progs .vfp modified:
soft_particle, interaction, interaction_direct

Tested: court yard in A House of Locked Secrets part 2.
Terrain blended properly, fire smoke looking good.

Only tested on Intel, should be also tested on Nvidia/AMD

duzenko

duzenko

17.04.2017 10:36

developer   ~0008802

Replaced the fixed-pipeline alfa test in depth stage with depth_alpha.vfp.
duzenko

duzenko

24.04.2017 18:11

developer   ~0008810

Replaced qglTexCoordPointer with qglVertexAttribPointerARB in RB_T_FillDepthBuffer (perforated surfaces only, others' texcoords are skipped entirely)
duzenko

duzenko

29.04.2017 19:54

developer   ~0008813

Replaced TexCoordPointer with VertexAttribPointer in RB_STD_T_RenderShaderPasses (old and new).
Old stages are rendered via a passthrough shader.
duzenko

duzenko

07.05.2017 19:50

developer   ~0008849

Replaced normal with attrib[2]
duzenko

duzenko

08.05.2017 20:08

developer   ~0008852

Replaced the last of qglColorPointer with qglVertexAttribPointerARB.
duzenko

duzenko

09.05.2017 10:10

developer   ~0008856

Replaced qglVertexPointer with qglVertexAttribPointerARB(0, ...)
duzenko

duzenko

11.05.2017 12:42

developer   ~0008859

Fixed underwater clipping and enhanced interaction vertex blending
duzenko

duzenko

13.05.2017 07:23

developer   ~0008860

Removed glClientActiveTextureARB
duzenko

duzenko

15.05.2017 09:30

developer   ~0008861

Added support for GLSL, rewrote the depth shader from ARB to GLSL as proof of concept.
duzenko

duzenko

16.05.2017 18:43

developer   ~0008865

Replaced tg_screen texgen's with glsl
duzenko

duzenko

18.05.2017 16:22

developer   ~0008869

Replaced fog and blend texgen's with shaders
duzenko

duzenko

21.05.2017 10:27

developer   ~0008870

Last edited: 21.05.2017 10:28

View 2 revisions

Fixed skybox for material flags TG_SKYBOX_CUBE, TG_WOBBLESKY_CUBE

duzenko

duzenko

27.05.2017 11:14

developer   ~0008876

Last edited: 27.05.2017 11:15

View 2 revisions

Using a uniform instead of qglColor in depth stage.
Nsight is happy now (tested with Down by the river)

Issue History

Date Modified Username Field Change
01.12.2016 11:53 duzenko New Issue
01.12.2016 11:53 duzenko Status new => assigned
01.12.2016 11:53 duzenko Assigned To => duzenko
01.12.2016 21:06 nbohr1more Relationship added related to 0003684
11.02.2017 09:54 duzenko Description Updated View Revisions
25.03.2017 07:37 duzenko Relationship added related to 0004498
15.04.2017 08:40 duzenko Note Added: 0008795
15.04.2017 08:50 duzenko Note Edited: 0008795 View Revisions
17.04.2017 10:36 duzenko Note Added: 0008802
23.04.2017 08:09 duzenko Relationship added related to 0004511
24.04.2017 18:11 duzenko Note Added: 0008810
29.04.2017 19:54 duzenko Note Added: 0008813
07.05.2017 19:50 duzenko Note Added: 0008849
08.05.2017 20:08 duzenko Note Added: 0008852
09.05.2017 10:09 duzenko Description Updated View Revisions
09.05.2017 10:10 duzenko Note Added: 0008856
11.05.2017 12:42 duzenko Note Added: 0008859
13.05.2017 07:23 duzenko Note Added: 0008860
15.05.2017 09:30 duzenko Note Added: 0008861
16.05.2017 18:43 duzenko Note Added: 0008865
18.05.2017 16:22 duzenko Note Added: 0008869
18.05.2017 16:23 duzenko Description Updated View Revisions
21.05.2017 10:27 duzenko Note Added: 0008870
21.05.2017 10:28 duzenko Note Edited: 0008870 View Revisions
27.05.2017 11:14 duzenko Note Added: 0008876
27.05.2017 11:15 duzenko Note Edited: 0008876 View Revisions
15.09.2017 03:57 nbohr1more Status assigned => resolved
15.09.2017 03:57 nbohr1more Resolution open => fixed
15.09.2017 03:57 nbohr1more Product Version TDM 2.06 => SVN
15.09.2017 03:57 nbohr1more Fixed in Version => TDM 2.06
15.09.2017 03:57 nbohr1more Target Version SVN => TDM 2.06