Retro 3D maze with Pict?

30 views
Skip to first unread message

Aidan Gauland

unread,
Apr 19, 2020, 5:42:30 AM4/19/20
to us...@racket-lang.org
Would it be feasible to use Pict to create a very simplistic rendering
of a first-person perspective of a 2D maze, in the style of Scarab of Ra
<https://www.giantbomb.com/scarab-of-ra/3030-22741/images/> for the old
B&W Macs?

Dominik Pantůček

unread,
Apr 19, 2020, 6:39:53 AM4/19/20
to Aidan Gauland, us...@racket-lang.org
Hi,
I've created more than a few experiments like this using dc<%> backed by
canvas% or bitmap%. For such simple game like you mention, it will work
like a charm. However it is not the fastest approach - I remember
rendering a Rubik's cube last year for the students[1] and on Linux it
ran fluently, on Mac it ran at 2 frames per second for no apparent
reason. Probably the Cairo back-end is just really slow there.

I would assume Pict is on-par with dc<%>-based approach (in the end that
is what renders the rasterized image).

Funnily enough, I am working on a graphics side project right now and I
have a working 3D rendering pipeline completely in Racket which works
surprisingly fast even on 2560x1440. I plan to publish a series of
articles about that. No OpenGL, no compiled C code, only Racket trickery.

Or you can use ASCII (as seen on RacketFest 2020)...


Cheers,
Dominik

[1]
https://trustica.cz/en/2019/05/16/teaching-cryptography-rubiks-cube-diffusion/

Jonathan Simpson

unread,
Apr 19, 2020, 12:23:42 PM4/19/20
to Racket Users


On Sunday, April 19, 2020 at 6:39:53 AM UTC-4, Dominik Pantůček wrote:

Funnily enough, I am working on a graphics side project right now and I
have a working 3D rendering pipeline completely in Racket which works
surprisingly fast even on 2560x1440. I plan to publish a series of
articles about that. No OpenGL, no compiled C code, only Racket trickery.

Or you can use ASCII (as seen on RacketFest 2020)...


I'd love to hear more about this, so I hope you do publish those articles!

-- Jonathan

Reply all
Reply to author
Forward
0 new messages