I almost succeeded in making a tline-based tunnel effect in a tweetcart.
Two limitations : poor angle/side management and no perspective scaling.
Close enough.
Post-mortem explanation
Most sites explaining the effect are based on screen-space LUTs. pset-ing 128*128 times being very slow,
I got the idea to use tline to draw on the whole screen by considering that function as the converter between normal and polar coordinates.
To get the "normal coordinates" version, try replacing the for calls to w with w(x,0,x,127,p,o,0,v)
I accidentally made the tunnel circular instead of square, can't help explaining this part, sorry.
[Please log in to post a comment]