Ray Tracing
Pages: 1 2
Raik (463) 2061 posts |
Maybe USBKick do the job. |
nemo (145) 2546 posts |
Colin collaborated
It implements the official API for providing additional modules – Service_ModeExtension. This requires the module to supply a list of ‘VIDC’ parameters plus a set of ModeVariable definitions. The VIDC parameters vary by monitor type so rather than hard-wire them the module cheats – it issues its own ModeExtension call but this time with a ModeSelector of the desired geometry and reuses the VIDC list from that. It then returns that VIDC list together with the definitions of ModeVariables 1,2,6,7,11 and 12. In 260 bytes. It’s here for anyone who missed it first time. |
Colin Ferris (399) 1814 posts |
Nemo – thanks for the info about Mode120. Ref the Iyonix USB not working on startup – how could one automate using something USBkick. When booting the OS says no keyboard – auto booting. Is there a variable available ie Test for keyboard and if none give USB a poke. |
Alan Adams (2486) 1149 posts |
I’ve had similar issues on an ARMX6 – similar, not the same. One thing I discovered was that sometimes I could connect using Avalache/VNCserver, and from there run USBkick. My cure eventually was to buy a UBS-3 powered hub, and connect the keyboard etc via that. It wasn’t because of excessive power draw (only 10mAmps measured), but it altered something enough to stop the problem. Hope some of this might help. |
nemo (145) 2546 posts |
OS_InstallKeyHandler,1 ought to return R0=255 if there’s no keyboard. Worth a try. |
Steve Pampling (1551) 8170 posts |
That is at least better than a message saying “missing keyboard, press any key to continue” The OS probably needs a basic item to check at specified intervals. 30 seconds default? and, perhaps, a setting of zero for headless machines? |
Patrick M (2888) 115 posts |
I ported this demo to johnsonscript. When running via the johnsonscript→C transcompiler (and when hacked to render to an image and then blit the image to the screen instead of drawing individual pixels) it can actually run in real time on my AMD ryzen system. I’ll record a video and post it later. https://github.com/dusthillresident/JohnsonScript/blob/master/example_programs/raytracingspheres.txt In the meantime here’s a 24bit colour render I did using a modified johnsonscript version. https://twitter.com/dusthillperson/status/1496249732032827401 |
Patrick M (2888) 115 posts |
Sorry it took me a few days. Here it is running in real time at 352×288 Here’s the source code for this hacked version: http://dusthillresident.ddns.net/folder/files/quickupload/raytracing_mouse.txt |
Rick Murray (539) 13840 posts |
When source code is NSFW… 😂 |
Pages: 1 2