Sketchpad for drawing?

Hi @lasses and welcome,

Creating a drawing pad in Playcanvas it’s definitely doable, I can see two ways in doing this:

  • either using a plain Canvas object to draw on top of it
  • or use shaders to paint directly in UV coordinates

Usually the first way is easier to implement (more resources online, e.g. stackoverflow), though the second way is more versatile.

Here is an example on how to draw on objects using shaders:

https://developer.playcanvas.com/en/tutorials/character-damage-demo/

And here is a helpful post on the forums, someone created something similar (paint on sphere):

Yes, Playcanvas is using plain Javascript running on the browser meaning that you can use any web technology to communciate (node.js, websockets etc.).