Log In  

Cart #53807 | 2018-06-25 | Code ▽ | Embed ▽ | No License
1


Update!
Left and right to rotate the faces

P#53674 2018-06-21 12:37 ( Edited 2018-06-21 16:37)

Have a look a this (now classic) cart:
https://www.lexaloffle.com/bbs/?tid=2688

That said, don't get your hope too high (and certainly not @60fps)!

P#53678 2018-06-21 15:23 ( Edited 2018-06-21 19:23)

Ya @freds72 it uses a simmilar technique. Anyway, I'm looking for some 30fps or 20fps, but it's a bit hard to get this result as plotting to the screen is pretty slow.

P#53688 2018-06-21 20:39 ( Edited 2018-06-22 00:39)

Had a second look at your code - there is a lot that can be optimized!

I don't know what is your intent, but make sure you have the fastest polygon rasterizer before going into texture mapping, like:

  • efficient clipping based on face winding
  • efficient vertex representation (vertex sharing between faces for one)
  • optimized transform loop (e.g. use matrix to express multiple transforms, not multiple function calls)
  • use lua syntax as much as possible. Ex:
x,y=y,x

is valid and doesn't require an additional variable

This post will get you started on trifill:
https://www.lexaloffle.com/bbs/?pid=34326
(good luck!)

P#53705 2018-06-22 14:54 ( Edited 2018-06-22 18:55)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 07:18:38 | 0.044s | Q:19