# P3D skybox texture mapping problem

**URL:** https://discourse.processing.org/t/p3d-skybox-texture-mapping-problem/13212
**Category:** Processing
**Created:** [August 6, 2019, 3:11pm UTC](https://discourse.processing.org/t/p3d-skybox-texture-mapping-problem/13212 "2019-08-06T15:11:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [August 6, 2019, 3:11pm UTC](https://discourse.processing.org/t/p3d-skybox-texture-mapping-problem/13212/1 "2019-08-06T15:11:36Z")

</div>

The picture below shows a simple 3D scene with terrain and a skybox. The problem is that although the sky images tile seamlessly in 2D when applied to my skybox you can see the box seams.

Although it is possible I am doing something wrong in software I don’t think so. Has anyone else experienced anything similar?

![29](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/aee04b96fc2b85490e5e61eaf9344c1dc39e3e90.png)

---

<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: [August 6, 2019, 3:14pm UTC](https://discourse.processing.org/t/p3d-skybox-texture-mapping-problem/13212/2 "2019-08-06T15:14:31Z")

</div>

try noStroke() on your skybox

😉

Chrisir

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [August 6, 2019, 4:01pm UTC](https://discourse.processing.org/t/p3d-skybox-texture-mapping-problem/13212/3 "2019-08-06T16:01:23Z")

</div>

Done that and I even set the strokeWeight to zero 😉

---

<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: [August 6, 2019, 6:14pm UTC](https://discourse.processing.org/t/p3d-skybox-texture-mapping-problem/13212/4 "2019-08-06T18:14:29Z")

</div>

or use skySphere ?

😉

Chrisir

---

<div class="post-metadata">

### Author: ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)
#### Post date: [August 7, 2019, 9:26am UTC](https://discourse.processing.org/t/p3d-skybox-texture-mapping-problem/13212/5 "2019-08-07T09:26:53Z")

</div>

If instead of using texture coordinates (0-1, 0-) I use something smaller e.g, (0.002-0.998, 0.002-0.998) the effect is greatly reduced making me think it is an artifact caused by using the edge of the image.

This does not happen with the terrain which is a seamless texture allowing wrap around movement.  
I will try a sky s[here when I get the chance and I am confident that it will work but I am still interested if anyone knows the cause of this artifact.
