Fork me on GitHub
#quil
<
2024-06-03
>
Casey15:06:03

Something seems to be going wrong with the p3d/webgl renderer. I can't draw a simple filled quad using quil, but the corresponding js works just fine. Quil sketch: http://quil.info/sketches/show/6d6584026806e3a5b826391cc105ec5b27be056cd909e468d287464566897c8c P5.js sketch: https://editor.p5js.org/Ramblurr/sketches/GuvkKH-aY Anyone have a clue what the issue is?

p-himik15:06:12

It seems that :quads and :quad-strip are bugged - even their own example at http://quil.info/sketches/local/58705ec49aa3fcdbddd9c496cffb10012b83f64ff3dd0442a7fb629ffeb06ee3 shows the same behavior.

Casey15:06:30

Indeed, I just noticed that myself. I've opened an issue on github

p-himik15:06:26

The root cause seems to be that q/shape-modes has strings for those values instead of numbers. But functions that use it in Quil don't expect that and call int on the values for some reason.

Casey15:06:38

Ah yes, replacing q/begin-shape with (.beginShape (ap/current-applet) (aget js/p5.prototype "QUADS")) fixes it. Nice find, thanks @U2FRKM4TW

👍 1
Casey15:06:07

Updated the issue!