The Love3D R1 Library [V 0.4.2]
Posted: Tue Sep 04, 2012 8:16 am
Now, the project is back again... Actually it isn't even a project, it's now a library . This is the discussion thread for the library. Downloads, changelog, and more info, are in my blog.
Documentation are in my Wiki. Feel free to contribute
Starting Original Post
Documentation are in my Wiki. Feel free to contribute
Starting Original Post
Starting old post
Everything below here will be demos(unless stated otherwise.)
Please note, all files here works only for Love 0.8.0. This might work for 0.7.0/.1, but, test at your own risk.
The first one uses the perspective formula. Pretty simple, just use the Q and E keys.
[attachment=2]perspective.love[/attachment]
This one is springing in space. For some reason, it always spawns at the bottom right corner...
...Actually I know why; the origin is at the vanishing points
[attachment=1]perspective3.love[/attachment]
The next one, is a group of rotating balls.
[attachment=0]perspective5.love[/attachment]
The next one is fireworks
perspective7.love
This one are 4 points position by hand
perspective8.love
And here's the final version.
perspective9.love
Yeah the reason why it is transparent, is because I can't sort the quads in the z-space... atleast, not now. You can press the s key to see the vertices and the lines.
BROKEN
Here is the Perspective.lua file. This Lua file has the 2 perspective functions, and the 6 rotate functions(2 which are short versions, 3 which are long versions, and 1 which is for rotating in 2D... just an extra.) If you found any bugs, please report it to me and I will try to fix it. You need Notepad++ or something like that, to open it. However, you can rename the .lua to .txt if you want to open it in your normal text editor(in Windows, Notepad.)
Perspective.lua
BROKEN
This one is the PerspectiveTwo.lua file. Almost the same as above, only removed the long functions, and added a fog simulator, 3D distance-based collision detector, and the 2 Z-Sort functions. Apparently I haven't tested it yet, so yeah. Credit for the zSort function goes to Nixola
PerspectiveTwo.lua
Whew. And you are free to make some experiments.