# How to bend the world in a poukour game?

**URL:** <https://discourse.threejs.org/t/how-to-bend-the-world-in-a-poukour-game/18152>\
**Category:** Questions\
**Tags:** transform\
**Created:** [August 26, 2020, 4:49am UTC](https://discourse.threejs.org/t/how-to-bend-the-world-in-a-poukour-game/18152 "2020-08-26T04:49:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xingway](https://avatars.discourse-cdn.com/v4/letter/x/e47774/32.png) [@xingway](https://discourse.threejs.org/u/xingway)\
**Post date:** [August 26, 2020, 4:49am UTC](https://discourse.threejs.org/t/how-to-bend-the-world-in-a-poukour-game/18152/1 "2020-08-26T04:49:02Z")

</div>

I did an experiment on bending the road, but it seems that I have to bend everything in the world.  
Does anyone know how to do that like the games below?

 ![1](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/5/53f3324509fad458f85ae198c97afb48249840f1.jpeg) ![2](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/6/6b0a21a359121e968c21fbfa554c821bb8e30afd.jpeg)

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [August 26, 2020, 7:24am UTC](https://discourse.threejs.org/t/how-to-bend-the-world-in-a-poukour-game/18152/2 "2020-08-26T07:24:29Z")

</div>

You can achieve it using a custom vertex shader, this should help:

[![](https://img.youtube.com/vi/SOK3Ias5Nk0/maxresdefault.jpg "Animal Crossing World Bending Effect | Shader Graph | Unity Tutorial") ](https://www.youtube.com/watch?v=SOK3Ias5Nk0)

It’s for unity, but the math isn’t very complex, 4-5 nodes - it shouldn’t be too hard to convert to three.

---

<div class="post-metadata">

**Author:** ![xingway](https://avatars.discourse-cdn.com/v4/letter/x/e47774/32.png) [@xingway](https://discourse.threejs.org/u/xingway)\
**Post date:** [August 26, 2020, 1:09pm UTC](https://discourse.threejs.org/t/how-to-bend-the-world-in-a-poukour-game/18152/3 "2020-08-26T13:09:47Z")

</div>

thanks for the reply. I’ll check it out.

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [September 24, 2020, 12:53pm UTC](https://discourse.threejs.org/t/how-to-bend-the-world-in-a-poukour-game/18152/4 "2020-09-24T12:53:51Z")

</div>

fyi, I was curious how it would look and copied the node graph to three.js [here](https://codepen.io/mjurczyk/pen/LYNqzxa) (using @Fyrestar’s [extendMaterial](https://discourse.threejs.org/t/function-to-extend-materials/7882) on MeshStandardMaterial.)

 ![prev](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/3/3c6a608fb7218120e3b7392352e0017844cdfc80.gif)

It’s an almost 1:1 duplicate of that node graph and it seems to not be working 100% correct - though it is also likely my fault. Z-indices got messed up in the beginning, rotations are also a bit buggy in this state. It’s just for fun, so I can’t spend too much time fixing it, but it could be a good starting point for someone interested in this camera style.

---

<div class="post-metadata">

**Author:** ![Fyrestar](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fyrestar/32/52793_2.png) [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)\
**Post date:** [September 24, 2020, 12:58pm UTC](https://discourse.threejs.org/t/how-to-bend-the-world-in-a-poukour-game/18152/5 "2020-09-24T12:58:39Z")

</div>

I think i remember most of these games with a fixed camera (probably the bike race one from above too) use just a rotating cylinder world that changes the objects below while moving.

---

<div class="post-metadata">

**Author:** ![GlifTek](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/gliftek/32/13131_2.png) [@GlifTek](https://discourse.threejs.org/u/GlifTek)\
**Post date:** [September 24, 2020, 2:05pm UTC](https://discourse.threejs.org/t/how-to-bend-the-world-in-a-poukour-game/18152/6 "2020-09-24T14:05:43Z")

</div>

That’s sneaky
