/mta_lua_3d_math

Lua implementation of 3D frustum-plane intersection written for Multi Theft Auto San Andreas.

Primary LanguageLua

mta_lua_3d_math

Lua implementation of 3D frustum-plane intersection written for Multi Theft Auto San Andreas.

Uses Linear Algebra for software rendering 3D polygons. Comes with a RenderWare DFF parser so you can draw models from GTA:SA.

Uses some code from other sources. Credit is given where it is due (i.e. StackOverflow).

Useful commands

After starting this resource you can execute the following commands for testing:

  • send_bbuf: draw a test scene defined at the top of math_server.lua
  • draw_model: renders a DFF file
  • tridraw: performs per-frame frustum checking of a triangle located at the middle of GTA:SA map

External References

Math calculation samples