maybe I have missed them the first time around but it seems like there are a bunch of new 3D primitives available under p5.js? that's cool! but it seems like you can't define which colors they should have? or am I missing something?
i get the feeling that the default webgl lighting is making things difficult.
the samples in the reference have all sorts of colours showing and there's nothing setting any colours so i can only assume that they are defaults. no idea how to turn these off.
or materials, maybe? maybe the default is normalMaterial()... try basicMaterial()
Answers
link=?
google!
http://p5js.org/reference/
do setting stroke() and fill() before calling the primitive not work?
yes, it can be found in the reference ;)
koogs: no, that doesn't seem to change anything ...
@Xeronimo74, WEBGL canvas is still under heavy development at p5.js:
https://GitHub.com/processing/p5.js/issues
If you want stable WEBGL now, I suggest you to use Pjs instead and its JavaScript Mode:
http://ProcessingJS.org/reference/
Ok! I was just wondering :D
Maybe they should add a note to these elements then on their reference page?
i get the feeling that the default webgl lighting is making things difficult.
the samples in the reference have all sorts of colours showing and there's nothing setting any colours so i can only assume that they are defaults. no idea how to turn these off.
or materials, maybe? maybe the default is normalMaterial()... try basicMaterial()
https://github.com/processing/p5.js/wiki/Getting-started-with-WebGL-in-p5#lights-and-materials
(i've never used p5.js. and i'm not about to start now)
Yes, that goes into the right direction! Thanks :)