You are not logged in.
Pages: 1
Okay, well it's pretty obvious that you shouldn't try to draw 'triangle-based' primitives (eg. pr_trianglelist, pr_trianglestrip, etc.) with less than three points because nothing will be drawn (trying to draw a triangle with two points draws nothing). When trying to draw a triangle with one point one would expect nothing to be drawn (just as with two points). But instead, it causes a BSOD (I'm guessing that draw_line_width_color uses triangle primitives also).
I've only tested with pr_trianglestrip and pr_trianglefan, but I'd expect pr_trianglelist to act similarly.
Last edited by $pecter (2008-06-29 00:46:29)
Offline
Interesting. I haven't experienced any problems or unusual behavior. I've tested all of the primitives with the draw_primitive and d3d_primitive functions using one and two vertices in both GM6.1 and GM7. I did not test textured primitives. If a line or triangle required more vertices than it was given, the display did not change. I'd guess that it is the GPU/driver that is causing the crash because it is getting unexpected data from Game Maker. It may only be a driver issue but it could be that GM sending data it shouldn't be. The same probably holds true with draw_line_width_color().
Can you provide some code or a download that always crashes you computer?
Abusing forum power since 1986.
Offline
*a number of crashes later...*
Well, it seems I've jumped the gun here. I can't seem to replicate it in a new, identical project file, but the original project file still does it.
http://host-a.net/tarkimos/bad_primitive.gm6
Password is 'xot' (I don't want anyone downloading without knowing what it is, just in case it hurts their computer ).
(Username is 'tarkimos'.)
Last edited by $pecter (2008-06-30 07:13:12)
Offline
I didn't have any problem with that. The bit about not being able to reproduce the crash in a new project is interesting. When I was initially checking out draw_line_width_color() in Fede-lasse's paint example, for some reason it did not crash, but it did cause massive lag with zero length lines. Only when I tried to reproduce the problem in a new project did I start getting crashes.
Abusing forum power since 1986.
Offline
Pages: 1