Show HN: Tiny PS1-like Renderer in 500 lines
1–10 of 47 posts
Re: Show HN: Tiny PS1-like Renderer in 500 lines
#2WOW! Looks great! Definitely hit my nostalgia nerve!
Re: Show HN: Tiny PS1-like Renderer in 500 lines
#3Funny that my first thought was that the polygons better wobble and it's right there in the features list.
Re: Show HN: Tiny PS1-like Renderer in 500 lines
#4Amazing. On the other hand it makes use of a graphics library that is way bigger than 500 lines. Regardless thank you for sharing but I get the feeling it was good fun.
Re: Show HN: Tiny PS1-like Renderer in 500 lines
#5So cool. Took me back to my childhood instantly. You nailed it
Re: Show HN: Tiny PS1-like Renderer in 500 lines
#6Linked in the README is the article this is probably based on, which explains the rendering for a PS1 and why it has certain behaviors, it's a great article: https://www.david-colson.com/2021/11/30/ps1-style-renderer.h...
Re: Show HN: Tiny PS1-like Renderer in 500 lines
#7I was wondering how this was done in 500 lines...then I saw the 5000+ line library file borrowed from another project. I do enjoy the look of your results though.
How long before somebody includes your library and says they created PSX graphics in 25 lines?
Re: Show HN: Tiny PS1-like Renderer in 500 lines
#8heh, I wrote an N64 one not too long ago with the exact same style:
Re: Show HN: Tiny PS1-like Renderer in 500 lines
#9Amazing. On the other hand it makes use of a graphics library that is way bigger than 500 lines. Regardless thank you for sharing but I get the feeling it was good fun.
It's true that https://github.com/nkanaev/tipsy/blob/master/src/tigr.c is 5500 lines of C but, as far as I can tell, it's just being used to load texture images, draw lines, get double-buffered pixel buffers onto the screen, and get keyboard and mouse events. It wouldn't be difficult to port it to something like https://gitlab.com/kragen/bubbleos/blob/master/yeso. yeso.h yeso-pic.c yeso-xlib.c png.c total 560 lines of C, and all you're missing then is a line-drawing function.
Re: Show HN: Tiny PS1-like Renderer in 500 lines
#10heh, I wrote an N64 one not too long ago with the exact same style: https://github.com/glouw/gel
You might notice that your project is already included in the Readme under credits.