Search found 194 matches

by monolifed
Sun Oct 31, 2021 1:57 pm
Forum: Libraries and Tools
Topic: Math Library (with iqm animation demo)
Replies: 3
Views: 3023

Re: Math Library (with iqm animation demo)

Thanks, there must be more typos and mistakes
It should have been function quat.from_rot(r, a, x, y, z) like (mat4.rv etc) to begin with
by monolifed
Fri Oct 29, 2021 9:08 pm
Forum: Libraries and Tools
Topic: Math Library (with iqm animation demo)
Replies: 3
Views: 3023

Math Library (with iqm animation demo)

https://github.com/monolifed/lua-module ... main/vmath (MIT Licensed)

Library is a port of my C library: https://github.com/monolifed/vmath (Unlicense)

IQM animation demo is modified to use this library (replacing cpml)
by monolifed
Wed Sep 22, 2021 12:04 pm
Forum: Libraries and Tools
Topic: love launcher script
Replies: 1
Views: 16337

Re: love launcher script

#!/bin/sh # Name of the app binary BINNAME="love" # Names of the data folder and package file DATANAME="data" PACKNAME="game.love" SCRIPTPATH="$(dirname "$(readlink -f "$0")")" APPDIR="$SCRIPTPATH" if [ -n DATANAME ]; then DATADI...
by monolifed
Wed Sep 22, 2021 11:41 am
Forum: Libraries and Tools
Topic: Color library
Replies: 1
Views: 4910

Re: Color library

Color names has been added (as a separate file)
by monolifed
Wed Sep 22, 2021 11:40 am
Forum: Libraries and Tools
Topic: A* path finding
Replies: 2
Views: 9004

Re: A* path finding

The broken demo has been fixed and added
by monolifed
Sat Sep 18, 2021 9:58 am
Forum: Libraries and Tools
Topic: Color library
Replies: 1
Views: 4910

Color library

https://github.com/monolifed/lua-modules -> color It can convert between (see explanation in the color lua): rgba/RGBA/RGBA8 RGBA8/iRGBA8 hsla(hsva)/rgba hsla(hsva)/HSLA(HSVA) It can also check validity of ranges of the above types It can parse color strings: #123/#112233/#11223344 HSL(1, 2, 3) hsla...
by monolifed
Thu Sep 16, 2021 7:45 pm
Forum: Support and Development
Topic: [SOLVED] Bizarre nil issue
Replies: 27
Views: 9402

Re: Bizarre nil issue

x = notes[x][y].x0 -- x is never affected by this bug... y = notes[x][y].y0 -- somehow this can set y to nil even though I've just shown a non-nil value for y0... first statement sets x to notes[x][y].x0 but the second sets y to notes[notes[x][y].x0][y].y0 Not notes[x][y].y0 You can do x, y = notes...
by monolifed
Wed Sep 15, 2021 1:09 pm
Forum: Libraries and Tools
Topic: Easings Library
Replies: 8
Views: 4878

Re: Easings Preview

Thanks Yes very slight but there and compared to smootherstep it becomes very noticeable. polynomial outin functions seem to be smooth but all inout ones have that problem One solution is adding a higher degree polynomial that resembles the piecewise inout function (Like the smootherstep you provide...
by monolifed
Tue Sep 14, 2021 5:09 pm
Forum: Libraries and Tools
Topic: Easings Library
Replies: 8
Views: 4878

Re: Easings Preview

I understand that they are not mathematically smooth but I am yet to see visual artifacts caused by it, Feel free to provide an example That said I am not inventing new functions here. They are some standard functions and some other functions from easings.net If they are not smooth there is nothing ...
by monolifed
Tue Sep 14, 2021 3:09 pm
Forum: Libraries and Tools
Topic: Easings Library
Replies: 8
Views: 4878

Re: Easings Preview

Yes they (InOut ones) don't seem to have continuous second derivatives.
Interestingly leap from acceleration to deceleration doesn't seem to affect smoothness of the transition noticeably