View Issue Details

IDProjectCategoryView StatusLast Update
0000128FSSCPOpenGLpublic2004-03-16 17:45
Reporterphreak Assigned Tophreak  
PriorityhighSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0000128: shields don't appear on ships being hit in OGL HT&L
Descriptionpretty self explanatory, it looks like the shields are being transformed in software and rendered to garbage values
TagsNo tags attached.

Activities

taylor

2004-03-07 01:49

administrator   ~0000356

It worked for me on a low detail shield setting so I changed render_shield_triangle() in code/ship/shield.cpp to use g3_transfer_vertex() with HT&L and added TMAP_HTL_3D_UNLIT to the flags passed to g3_draw_poly(). It is now working for me with high and low detail settings. I have made other changes to OGL for the Linux stuff and 32-bit support so it could be a combination of the changes.

Someone might want to test whether the changes to shield.cpp are all that's needed. I can't use OGL mode on WIN32 since I've got a crappy vidcard on that system and only D3D works.

phreak

2004-03-08 21:59

developer   ~0000404

thats what was wrong. figured it was overlooked.

fixed

RandomTiger

2004-03-16 11:47

developer   ~0000479

Test your damn code people!
Whoever put in this line of code in to shield.cpp 593:

if (!Cmdline_nohtl) g3_transfer_vertex(&points[j],&pnt);
else g3_rotate_vertex(&points[j], &pnt);

As well as it not fixing OGL, it actually broke shields for D3D.

taylor

2004-03-16 16:59

administrator   ~0000483

It was tested. phreak forgot to add the TMAP_HTL_3D_UNLIT flag to the two g3_draw_poly() calls. This gets it working in D3D and OGL.

phreak

2004-03-16 17:35

developer   ~0000484

Last edited: 2004-03-16 17:39

oops. it was working for me at least :rolleyes:

i think i changed some logic in the gr_opengl_tmapper() function that affected this

edited on: 03-16-04 12:39

phreak

2004-03-16 17:45

developer   ~0000485

ok i added TMAP_HTL_3D_UNLIT to the flags if Cmdline_nohtl is 0

Issue History

Date Modified Username Field Change
2004-03-05 17:10 phreak New Issue
2004-03-05 17:10 phreak Status new => assigned
2004-03-05 17:10 phreak Assigned To => phreak
2004-03-07 01:49 taylor Note Added: 0000356
2004-03-08 21:59 phreak Note Added: 0000404
2004-03-08 21:59 phreak Status assigned => resolved
2004-03-08 21:59 phreak Resolution open => fixed
2004-03-08 21:59 phreak Status resolved => closed
2004-03-16 11:47 RandomTiger Status closed => feedback
2004-03-16 11:47 RandomTiger Resolution fixed => reopened
2004-03-16 11:47 RandomTiger Note Added: 0000479
2004-03-16 16:59 taylor Note Added: 0000483
2004-03-16 17:35 phreak Note Added: 0000484
2004-03-16 17:39 phreak Note Edited: 0000484
2004-03-16 17:44 phreak Status feedback => resolved
2004-03-16 17:44 phreak Resolution reopened => fixed
2004-03-16 17:45 phreak Status resolved => closed
2004-03-16 17:45 phreak Note Added: 0000485