# 3D scene without any shading

**URL:** <https://discourse.processing.org/t/3d-scene-without-any-shading/45716>\
**Category:** Coding Questions\
**Created:** [February 6, 2025, 12:48pm UTC](https://discourse.processing.org/t/3d-scene-without-any-shading/45716 "2025-02-06T12:48:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [February 7, 2025, 4:53am UTC](https://discourse.processing.org/t/3d-scene-without-any-shading/45716/2 "2025-02-07T04:53:47Z")

</div>

You can draw on a PGraphics pg and say pg.noLights();

The PGraphics must have the same size as your canvas.

Then you can perform checks on the canvas.

You can then draw objects (in the rotating 3d scene) with different unique colors and get() the colors from pg which would identify the single objects.

Use

`color clickedObj = pg.get(mouseX,mouseY);`

cf. [Looking for more resources about ArrayLists - #45 by Chrisir](https://discourse.processing.org/t/looking-for-more-resources-about-arraylists/21025/45)

---

_[View the full topic](https://discourse.processing.org/t/3d-scene-without-any-shading/45716)._
