From: <bug...@fr...> - 2009-07-13 08:14:52
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 Summary: nexuiz game: missing weapons and enemies models Product: Mesa Version: CVS Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/DRI/r300 AssignedTo: dri...@li... ReportedBy: fab...@li... I noticed that I can no longer see enemies model (I can only see their weapons flying but no characters) and my weapons with the game nexuiz (2.4.2-1 found with Ubuntu 9.04). It used to work fine with older mesa. I am using 2009-07-13 mesa master git (up to bb4c703587) under a RV530 with no KMS, compiled without libdrm_radeon: GL_RENDERER = Mesa DRI R300 (RV530 71C5) 20090101 x86/MMX/SSE2 TCL This issue may be related to bug 16692. -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-08-13 06:48:56
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #1 from Andre Maasikas <ama...@gm...> 2009-08-12 23:48:44 PST --- Seems it fails the max_index check in drawrangeelements when rendering player models. e.g: Mesa warning: glDraw[Range]Elements(start 0, end 126, count 240, type 0x1403, indices=(nil)) index=126 is out of bounds (max=125) Element Buffer 85 (size 480) Mesa warning: glDraw[Range]Elements(start 6, end 1495, count 5130, type 0x1403, indices=0xfad0ac4) index=1495 is out of bounds (max=1494) Element Buffer 0 (size 0) You can try if commenting out the return statement in this check or inside the game using gldrawelements fixes it (open console shift->ESC type: gl_mesh_drawrangeelements 0). -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-08-13 12:31:34
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 Roland Scheidegger <sr...@tu...> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Component|Drivers/DRI/r300 |Mesa core Resolution| |NOTOURBUG --- Comment #2 from Roland Scheidegger <sr...@tu...> 2009-08-13 05:31:21 PST --- This is a nexuiz bug and should be fixed there (if it isn't already, I didn't test latest version). Note that nexuiz doesn't actually use that index which is one too large, it's just the end value to the DrawRangeElements call which is wrong. (Though, I'm not actually really sure it's against the spec to use a end value which is larger than what the bound arrays can provide and larger than the largest index value as it's a mere hint that no larger indices will be used but doesn't indicate that the end index value will be used itself - but anyway the app certainly didn't want to use that value.) -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-08-18 08:45:50
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #3 from Fabio <fab...@li...> 2009-08-18 01:45:38 PST --- (In reply to comment #2) > This is a nexuiz bug and should be fixed there (if it isn't already, I didn't > test latest version). Note that nexuiz doesn't actually use that index which is > one too large, it's just the end value to the DrawRangeElements call which is > wrong. I tried also nexuiz 2.5.1 with current mesa but the bug is still here (my weapons are visible but not enemy models). -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-08-19 07:27:39
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #4 from Fabio <fab...@li...> 2009-08-19 00:27:27 PST --- > You can try > inside the game using gldrawelements fixes it (open console shift->ESC type: > gl_mesh_drawrangeelements 0). This works indeed! -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-08-19 08:41:33
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 Forest Hale <lor...@gh...> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lor...@gh... --- Comment #5 from Forest Hale <lor...@gh...> 2009-08-19 01:41:19 PST --- I've committed an update to the darkplaces svn to use -1 bias on the end vertex, my understanding of the word "end" is that it is one past the "last", so this mix-up was inevitable, I am careful to use the words first and last as parameter names when this is the intended usage. However it is also interesting that other drivers do render in this case. P.S. I am the primary author of the engine. -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-08-19 08:49:20
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #6 from Fabio <fab...@li...> 2009-08-19 01:49:10 PST --- (In reply to comment #5) > I've committed an update to the darkplaces svn to use -1 bias on the end I confirm that using the svn version of darkplaces engine this problem is no longer reproducible. Thanks! -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-08-19 09:51:52
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #7 from Fabio <fab...@li...> 2009-08-19 02:51:42 PST --- > However it is also interesting that other drivers do render in this case. There is someone with same problem on Windows: http://alientrap.org/forum/viewtopic.php?p=62297#62297 -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-08-24 19:32:53
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 ajax at nwnk dot net <aj...@nw...> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|CVS |git --- Comment #8 from ajax at nwnk dot net <aj...@nw...> 2009-08-24 12:32:49 PST --- Mass version move, cvs -> git -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-09-13 12:44:29
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 Sven Arvidsson <sa...@wh...> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sa...@wh... --- Comment #9 from Sven Arvidsson <sa...@wh...> 2009-09-13 05:44:20 PST --- *** Bug 23471 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-05 10:10:36
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #10 from Assy Nipple <why...@gm...> 2009-10-05 03:10:25 PST --- I fixed this by disabling Vertex Buffer Objects in the game video settings. -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-05 11:51:16
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #11 from Fabio <fab...@li...> 2009-10-05 04:51:05 PST --- (In reply to comment #10) > I fixed this by disabling Vertex Buffer Objects in the game video settings. > It should be fixed in nexuiz 2.5.2, FYI (but I didn't test it). -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-13 08:04:03
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #12 from Tobias Hain <tob...@gm...> 2009-10-13 01:03:50 PST --- I'm on latest intel with a X3100 graphics: OpenGL renderer string: Mesa DRI Intel(R) 965GM GEM 20090712 2009Q2 RC3 OpenGL version string: 2.1 Mesa 7.6 . gl_mesh_drawrangeelements 0 does NOT work for me . Vertex Buffer Objects : "Disable" or "Vertices" fixes the problem. Default "Vertices some Tris (compatible" does NOT fix the problem. . present in Nexuiz 2.5.1 and 2.5.2 . Mesa 7.5 fixes the problem as well Is this a different issue then or the same and has been fixed in latest svn, but didn't make it into 2.5.2? -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-13 08:06:33
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 Tobias Hain <tob...@gm...> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tob...@gm... --- Comment #13 from Tobias Hain <tob...@gm...> 2009-10-13 01:06:19 PST --- *** Bug 24471 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-13 08:35:01
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #14 from Fabio <fab...@li...> 2009-10-13 01:34:50 PST --- > Is this a different issue then or the same and has been fixed in latest svn, > but didn't make it into 2.5.2? I built an updated nexuiz intel 32 bit binary just after the fix, which you can get here: http://rapidshare.com/files/269056184/nexuiz.html It fixed the problem here. Can you try it? -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-13 09:19:15
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #15 from Tobias Hain <tob...@gm...> 2009-10-13 02:19:01 PST --- I tried it although on x86_64 platform. Results are: . Fabio's built still has artifacts and doesn't render characters, nor weapons. But walls are textured now, whilst 2.5.1/2.5.2 some walls were black, when enabling Vertex Buffer Objects for vertices and triangles. . Fabio's built CAN'T be fixed by turning off Vertex Buffer Object usage. If I'm facing a slightly different bug, then I think I can't tell whether it's a Mesa regression (7.5 works) or the game using Mesa in an unsupported way. -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-13 09:46:10
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #16 from Forest Hale <lor...@gh...> 2009-10-13 02:46:01 PST --- If it is a regression it is not necessarily the same one, it could be a shader compile error or other silent problems. Please provide a log of running the game with these extra commandline options: -developer -condebug +gl_paranoid 1 This should produce a log named ~/.nexuiz/data/qconsole.log containing many details of how the renderer is operating, and if any GL errors were reported. Options that may tickle the bug (use in any combination you like and see if they fix it): -notexturenonpoweroftwo (disables use of non-power-of-two texture sizes) -novbo (disables use of GL_ARB_vertex_buffer_object) -nocva (disables use of GL_EXT_compiled_vertex_array) +gl_mesh_testmanualfeeding 1 (causes game to use glVertex and friends instead of glDrawRangeElements, slow) +gl_mesh_testarrayelement 1 (causes game to use glArrayElement instead of glDrawRangeElements, slow) +gl_mesh_drawrangeelements 0 (causes game to use glDrawElements instead of glDrawRangeElements) There are other options that might be involved but those are the likely suspects. Options that will almost certainly make things appear, but will perform poorly: -nofragmentshader (disables use of GLSL shaders) -safe (uses OpenGL 1.1 API only, no extensions) You may also want to try different Effects presets in the options menu to see if you can tickle the bug and isolate the causal relationships. -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-13 13:49:44
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #17 from Fabio <fab...@li...> 2009-10-13 06:49:30 PST --- Created an attachment (id=30342) --> (http://bugs.freedesktop.org/attachment.cgi?id=30342) nexuiz 2.5.2 ~/.nexuiz/data/qconsole.log taken after a "rm -rf ~/.nexuiz" with current r300 master driver when run with "-developer -condebug +gl_paranoid 1 -safe" I would add two things: * with current r300 driver the original problem is no longer reproducible, even on the old, bugger nexuiz version; * when running with -safe option, i.e.: ./nexuiz-linux-686-sdl -developer -condebug +gl_paranoid 1 -safe the problem appears again, tested with both old nexuiz and 2.5.2 binary downloaded from nexuiz web site. I'll attach the qconsole.log, apparently something is wrong since I see many lines like: R_Mesh_Draw: invalid vertex index 0 (outside range 264 - 504) in element3s array -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-14 08:03:17
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #18 from Tobias Hain <tob...@gm...> 2009-10-14 01:03:02 PST --- Created an attachment (id=30375) --> (http://bugs.freedesktop.org/attachment.cgi?id=30375) X3100 vbo_off -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-14 08:03:36
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #19 from Tobias Hain <tob...@gm...> 2009-10-14 01:03:29 PST --- Created an attachment (id=30376) --> (http://bugs.freedesktop.org/attachment.cgi?id=30376) X3100 vbo_vertices -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-14 08:04:08
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #20 from Tobias Hain <tob...@gm...> 2009-10-14 01:03:58 PST --- Created an attachment (id=30377) --> (http://bugs.freedesktop.org/attachment.cgi?id=30377) X3100 vbo_vertices_some_tris -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-14 08:04:29
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #21 from Tobias Hain <tob...@gm...> 2009-10-14 01:04:18 PST --- Here some test results for intel GM965 (GMA X3100). As previously stated Vertex Buffer Objects : "Disable"|"Vertices" fixes the problem for me. What results in corrupted display (some walls transparent, no enemies, no weapons) is the setting "Vertices some Tris (compatible)". Using Nexuiz 2.5.2 everything an default and "Vertices some Tris (compatible)" enabled with the various command line options: No fix: ------- -notexturenonpoweroftwo -nocva +gl_mesh_drawrangeelements 0 -nofragmentshader transparent walls fixed, but still no weapons, no enemies: ---------------------------------------------------------- -novbo fixed: ------ -safe but lots of messages: R_Mesh_Draw: invalid vertex index 0 (outside range 2226 - 2230) in element3s array +gl_mesh_testmanualfeeding 1 app crash: ---------- +gl_mesh_testarrayelement 1 with message: nexuiz-linux-x86_64-glx: main/api_arrayelt.c:1316: _ae_invalidate_state: Assertion `!actx->mapped_vbos' failed. --- I attach the qconsole.logs. They were obtained from: ./nexuiz-linux-glx.sh -nosound -developer -condebug +gl_paranoid 1 with the three vbo settings [off|vertices|vertices+some tris]. There's nothing special in those logs. All contain ^7scripts/common.shader parsing warning: unknown surfaceparm "skip" ^7scripts/common.shader parsing warning: unknown surfaceparm "skip" which can't be the cause, since it works in vbo setting [off|vertices]. The log from vbo_vertices_some_tris.log, which causes visual bugs, is not different in it's critical parts from the one vbo_verticles, which does NOT. -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-14 09:29:01
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #22 from Forest Hale <lor...@gh...> 2009-10-14 02:28:54 PST --- Thanks to the reports of R_Mesh_Draw warnings I have identified a problem when GL_ARB_vertex_buffer_object is not detected (such as in -safe mode), it was not initializing the ushort triangle data on models, causing them to disappear, which can be avoided with the setting gl_mesh_prefer_short_elements 0. However this does not explain any bugs when GL_ARB_vertex_buffer_object is supported. -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-14 09:38:09
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #23 from Forest Hale <lor...@gh...> 2009-10-14 02:37:58 PST --- (In reply to comment #21) > +gl_mesh_testarrayelement 1 with message: > nexuiz-linux-x86_64-glx: main/api_arrayelt.c:1316: _ae_invalidate_state: > Assertion `!actx->mapped_vbos' failed. This is an interesting restriction (although logical) - glArrayElement does not support vertex arrays inside buffer objects? I may have to force off vertex buffers when the debugging setting gl_mesh_testarrayelement 1 is used, although this is of limited interest to most people. I should note the ushort triangles bug mentioned in my previous comment was introduced in revision 8252 of DarkPlaces svn on 2008-04-10, quite a sleeper bug. -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |
From: <bug...@fr...> - 2009-10-14 12:29:35
|
http://bugs.freedesktop.org/show_bug.cgi?id=22743 --- Comment #25 from Forest Hale <lor...@gh...> 2009-10-14 05:20:27 PST --- Please be more specific - what bugs remain with the current darkplaces svn on Intel graphics? -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. |