Skip to content

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

Notifications You must be signed in to change notification settings

quiret/mta_lua_3d_math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages