Question on buildGeometry() with p5.js

Using version 4.3
I am unable to have code with buildGeometry & model working on my PC.
The example code in p5.js does npt work.
When I save it on Openprocessing, it works. (happily…)
All other 3D functions with WEBGL are OK.
My question : what is wrong in my environment. Is there something to declare ??
Thanks in advance for help

Make sure you are using the latest version of p5.js

In your webpage you should link to p5.js with

<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.8.0/p5.min.js"></script>

I am assuming that OpenProcessing is using the latest version

2 Likes

Hi Quark

You right.
With latest version, it works.
Thanks
Pierre