Log In  

Cart #fawasirudi-0 | 2019-06-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
31

Here's a small demo we made for Flashback 2019 held in Sydney. There are some firsts (I think... I hope) like the full screen X/Y distorter (at 60 FPS).

Credits:

code - kometbomb
gfx - ilkke & animal bro
musix - gruber

P.S. I used my very old code that seem to use someone's matrix math functions and I can't find the thread I borrowed them from so thanks and credits to him/her! They're named like rot_x_m() and lookat_m() etc.

P#65344 2019-06-22 18:20

The fullscreen distorter is indeed impressive.
FYI (see @JWinslow23 post) that poke4 is ~30% faster than memcpy (memset?) for multiple of 4 bytes copy - looks like it can apply here.

function mcpy(dest,src,len)
 --because poke4() is so
 --relatively fast, it actually
 --outperforms memcpy(). the
 --print_big() function abuses
 --this very much.
 for i=0,len-1,4 do
  poke4(dest+i,peek4(src+i))
 end
end
P#65358 2019-06-23 09:19

Oh, wow. Thanks for that. Almost seems to be something to avoid, like the thing when rectfill() was pretty much free.

P#65360 2019-06-23 10:31

could that technique be used for full screen rotation?

P#65371 2019-06-23 19:08

Sure, I have code for that. The texture becomes a bit distorted in the process though.

P#65382 2019-06-24 11:26

OMG; this is the hardest I've ever scene. :P That track, tho - w00t w00t, gimme m0re gimme m0re gimme m0re!! bEST eVA.

P#113910 2022-07-02 19:06

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 00:03:22 | 0.020s | Q:24