PSTricks drawings can't be compiled under pdflatex and lualatex (Frequently done errors #5). Instead, compilation with XeLaTeX is preferred if you need to use .jpg/.png/.pdf images in your project.
But if you absolutely need to compile with pdflatex, this example demonstrates how to use PStricks with pdflatex using auto-pst-pdf on Overleaf (But you still can't use .jpg/.png/.pdf images within your PSTricks drawings).
This example shows how to get asymptote 3D drawings working on Overleaf. All the drawings in this example were taken from the Asymptote documentation.
The important bit is to add settings.render=0, to get around the problem of rendering on headless displays (i.e. the compile servers doesn't have a graphics card/display!)
If you download the PDF and open it in Adobe Reader, you'll get interactive views of the 3D objects!