|
Allegro/NVDiA bug |
type568
Member #8,381
March 2007
|
I ain't sure if it's a bug, since I blamed some feature before, and it appeared that I'm wrong. In certain cases function triangle(), doesn't do anything.. One of the cases, is while all three coordinates, are on 1 line, which is collateral to the X axis. I have a cube, made of polygon triangles, and on it's start of twisting, I don't see the top and upper lines.. Is this a bug? Thanks a lot.. EDiT: http://allegro.cc/files/attachment/592319
|
Albin Engström
Member #8,110
December 2006
|
I'm quite sure it has nothing to do with Nvidia.. Isn't allegro software rendered? |
type568
Member #8,381
March 2007
|
The code is big and complex, thanks.(not really big and complex, but I believe u will have to be real expert to understand it fast) Allegro, in my case has nothing to do with rendering.. the only allegro function for output used, in this case is triangle. Also as I know, allegro gets info of supported functions, and if some aren't supported, they are replaced by software with the use of what is supported. I believe that Ge-Force 6600, has some kind of triangle, or polygon hardware accelerated. Also, if I add a line, (actually two lines, from coord[0] to coord[1], and from coord[0] to coord[2]. It fixes the disappearance but adds the effect of more than one line.. Which is visible, and ugly.
|
gillius
Member #119
April 2000
|
Standard Allegro has no acceleration for 3D rendering, so if you are using the 3D functions in Allegro, you're doing everything in software and your video card doesn't have anything to do in this process (beyond just displaying images sent to it as normal). You need to use something like AllegroGL if you want 3D hardware acceleration in Allegro. Gillius |
type568
Member #8,381
March 2007
|
I really don't.. but function polygon (which draws a 3d polygon) is hardware accelerated..
|
Thomas Fjellstrom
Member #476
June 2000
|
Quote: I really don't.. but function polygon (which draws a 3d polygon) is hardware accelerated.. Allegro's 3d API does not use hardware acceleration. Its pure software. -- |
type568
Member #8,381
March 2007
|
Matt Smith
Member #783
November 2000
|
I think you'll have better results with triangle3d() or triangle3d_f() which take fixed or floats. Even if you pass them ints, the subpixel precision internally will help them to render a very thin triangle. IIRC, Allegro makes no effort to render colinear points as a line. |
type568
Member #8,381
March 2007
|
Can i handle without triangle3d? I want to do all the calculations myself.. And just get a triangle. Or a line, whatever my triangle happens to be..
|
|