r/ComputerCraft • u/Much_Ad_8247 • May 01 '26
Multi-monitor ray cast with custom CC: Graphics mod
I modified "CC: Graphics" to work with monitor peripherals. First part of the video just shows the basic ray casting demo with that. Wanted to push it to the limits so I tried an extra large render as seen in the second half.
Additionally, the 4 screens are each connected to a separate computer. Each processing 1/4 of the image. Each one is also running the exact same script, and coordinating with a 5th computer over ender modems.
I would normally share my code, but since this wont run unless you manually go compile my fork of "CC: Graphics" I'll leave it for now. I have made a request with the main dev to implement the features however. Might also make a separate post about the network protocol once its done.
6
u/countjj May 01 '26
Ok now I’m curious. Can this be used to display images? Can someone write a png or jpeg decoder?
4
u/Philippe_levis May 03 '26 edited May 03 '26
yo!
i actually was working on this in the main repo, we do want to make monitors work
Our problem is MC networking; i made a system to compress the images better than plain lz4, but its still not nearly enough, at 20 images/second its still quite easy to overwhelm the network (with big monitors flashing random colors or noise for instance)
i fiddled with the idea of moving it to the client but you probably dont want the client to be able to read arbitrary files from any computer just to render stuff :3
if anyone has any ideas ill be very interested cuz that is essentially the only thing preventing this from being in the main mod
1
u/9551-eletronics Computercraft graphics research May 01 '26
Mind explaining whats the point or an actual different mod here?
1
u/FoxReeor May 01 '26
Oh this is really interesting!
1
u/Brokedownbad May 03 '26
I've done this exact thing before, when I was doing ray-tracing demo tests.
speaking of:
1
u/MinkiTheAvali CRaft-Again Shell Enjoyer May 05 '26
I was trying to compile the fork of the CC: Graphics mod but i keep getting a compilation error:
https://pastebin.com/nithNYFW