View Issue Details

IDProjectCategoryView StatusLast Update
0006064Multi Theft Auto : San Andreaspublic2019-09-07 14:47
ReporterDevan_LT Assigned Tomyonlake  
Status resolvedResolutionfixed 
Fixed in Version1.6 
Summary0006064: Function for drawing 3D triangles

It would be cool to have a function for drawing triangles in 3D world - something similar to what dxDrawLine3D does with lines. The function could be something like:
x1..z3 : coordinates of triangle vertices in GTA SA world
filepath : texture file for triangle
u1..v3 : UV coordinates for each vertex
c1..c3 : color of each vertex (like color in dxDrawImage), interpolated for every pixel.

Such function would allow us to have unlimited number of models with dynamic shapes - something what we can hardly achieve with DFFs. Sometimes it may even be a bit wasteful to use DFFs.
Examples of possible uses:

  1. Ped DFFs can't be replaced yet. But if we had dxDrawTriangle3D function, we could set ped alpha to 0, calculate positions/rotations of the bones and draw a custom model around them.
  2. My drawtag resource ( ) uses a slot for a generated TXD. There can only be one tag texture. It's possible to improve the resource to have more textures visible at the same time, but then they would take more model slots. Using dxDrawTriangle3D, we could make MTA draw custom tags without wasting model slots for simple rectangular models :)

Though I don't know if this function would be fast enough...

TagsNo tags attached.



2019-09-07 14:46

administrator   ~~0027109

Fixed in 1.5.7-r19626
See PR at

Issue History

Date Modified Username Field Change