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).
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
- Forum Discussion (German): https://www.mta-sa.org/thread/38693-3d-frustum-ebene-schneidung-in-lua/
- Forum Discussion (English): https://forum.mtasa.com/topic/122576-software-rendering-in-mtasa-lua/