Log In  

Cart #quasi_tunnel-0 | 2020-08-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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.

P#80961 2020-08-19 19:01 ( Edited 2020-09-03 21:46)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-12-05 21:46:52 | 0.010s | Q:10