Difference between revisions of "User:Substitute541/Love3D"
(fixtest) |
(updated a little) |
||
Line 6: | Line 6: | ||
== Download == | == Download == | ||
− | [https://dl.dropbox.com/u/105405645/Love2D%20Libraries/ | + | [https://dl.dropbox.com/u/105405645/Love2D%20Libraries/Love3D%20by%20Substitute541.zip|The Love3D Library.zip] |
Current Version : 0.2.7 | Current Version : 0.2.7 | ||
Line 23: | Line 23: | ||
# (Note : FL means Focal Length. This value is usually 250. vp means Vanishing Point) And your done! Just call the functions and your ready to go! | # (Note : FL means Focal Length. This value is usually 250. vp means Vanishing Point) And your done! Just call the functions and your ready to go! | ||
− | == | + | == Functions == |
− | + | *'''love3D.load'''. Loads the library, must be called in the love.load function | |
+ | |||
+ | *'''love3D.calculatePointPosition'''. Calculates point position by transforming the 3D coordinates to 2D | ||
+ | |||
+ | *'''love3D.graphics.circle2D'''. Draws a 2D circle in 3D space | ||
+ | |||
+ | UNDER CONSTRUCTION | ||
== Contributors == | == Contributors == |
Revision as of 04:11, 16 October 2012
This library is still incomplete, you can expect some bugs... |
This library allows you to simulate pseudo-3D, although you can model some basic 3D polyhedrons with the 3D triangles. There are also other functions too.
Download
Current Version : 0.2.7
Instructions
- Unzip the .zip file
- If you are using this, put the Love3D.lua in your .love file
- On the outside of any function in main.lua add :
require "Love3D"
- Then on the INSIDE of love.load(), near the end of the function, add :
love.load(fl, vpX, vpY)
- (Note : FL means Focal Length. This value is usually 250. vp means Vanishing Point) And your done! Just call the functions and your ready to go!
Functions
- love3D.load. Loads the library, must be called in the love.load function
- love3D.calculatePointPosition. Calculates point position by transforming the 3D coordinates to 2D
- love3D.graphics.circle2D. Draws a 2D circle in 3D space
UNDER CONSTRUCTION