# Skybox, Skysphere

**URL:** <https://discourse.processing.org/t/skybox-skysphere/8735>\
**Category:** Coding Questions\
**Created:** [February 26, 2019, 2:34pm UTC](https://discourse.processing.org/t/skybox-skysphere/8735 "2019-02-26T14:34:22Z")\
**Posts on this page:** 4\
**Page:** 1

<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 26, 2019, 2:34pm UTC](https://discourse.processing.org/t/skybox-skysphere/8735/1 "2019-02-26T14:34:22Z")

</div>

Hello all,

can anyone provide the code for a skybox, maybe with a kind of floor?

It’s for a graphic program (Menger Sponge) I work on.

A full code would be great…

Thanks!

Regards,

Chrisir

---

<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 28, 2019, 7:01am UTC](https://discourse.processing.org/t/skybox-skysphere/8735/2 "2019-02-28T07:01:05Z")

</div>

Or has someone a checkered floor?

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [March 2, 2019, 11:42pm UTC](https://discourse.processing.org/t/skybox-skysphere/8735/3 "2019-03-02T23:42:53Z")

</div>

Have you seen this skybox example sketch?

> **[NightSkyBox (SkyBox render example) - OpenProcessing](https://www.openprocessing.org/sketch/2278/)**
>
> This program will (once you uncomment the last line) generate a

see also the TextureCube example:

[https://processing.org/examples/texturecube.html](https://processing.org/examples/texturecube.html)

When you say “a checkered floor” do you just want a PGraphics or a PShader that gives you black and white squares in a checkerboard pattern? This might help:

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/11543/how-can-i-render-a-grid-using-shaders)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

---

<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:** [March 3, 2019, 8:10am UTC](https://discourse.processing.org/t/skybox-skysphere/8735/4 "2019-03-03T08:10:37Z")

</div>

Thanks I take a look…!

Chrisir
