QBJS deforming torus - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: QBJS, BAM, and Other BASICs (https://qb64phoenix.com/forum/forumdisplay.php?fid=50) +--- Thread: QBJS deforming torus (/showthread.php?tid=1623) |
QBJS deforming torus - vince - 04-14-2023 inside out torus run it in QBJS Code: (Select All) r = 50 RE: QBJS deforming torus - vince - 04-14-2023 as well as the 4D clifford torus run in QBJS Code: (Select All) dim shared pi, p, q, d, z0, t, f, sw, sh RE: QBJS deforming torus - mnrvovrfc - 04-14-2023 ROFLMAO I got that "Clifford" to dance, first by pressing "< Run >" at the bottom and then pressing the triangular "play" button at the top. This was with Firefox on Linux. RE: QBJS deforming torus - vince - 04-14-2023 yo @dbox Program #1 runs faster on the latest build at qbjs.org and slower on version 0.5 beta meanwhile, program #2 runs way faster on 0.5 beta and very slow on the latest build something is up, perhaps the PSET buffering? the first program just uses PSETs to sketch out the torus while the second uses LINEs to make a wireframe EDIT: dbox identified the issue and it will likely get fixed but in the meantime I updated the post with a workaround fix for now RE: QBJS deforming torus - CharlieJV - 04-14-2023 (04-14-2023, 02:01 AM)vince Wrote: inside out torus That's a thing of beauty, so I had to try and get it working in BAM. I had a devil of a time getting the right colouring, and spent much of the last hour trying to figure out the right formula for the blue component. https://basicanywheremachine.neocities.org/sample_programs/BAM_SamplePrograms?page=deforming_torus And, because it is also very cool: https://basicanywheremachine.neocities.org/sample_programs/BAM_SamplePrograms?page=4d_clifford_torus |