# New 3d Engine - Help filling 4-sided polygons

**URL:** <https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641>\
**Category:** Help\
**Tags:** graphics-and-math\
**Created:** [March 20, 2023, 5:06pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641 "2023-03-20T17:06:21Z")\
**Posts on this page:** 13\
**Page:** 4

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [January 18, 2024, 7:02pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/61 "2024-01-18T19:02:35Z")

</div>

You should make Pipe Riders! It’s the perfect game for your engine

(the game in question, if you’ve never played it. it’s an old flash game, just like run, I used to play it all the time)

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/1/1416eff44668cef34d46558bb5749cbcc2b453f6.jpeg)

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [January 18, 2024, 7:48pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/62 "2024-01-18T19:48:34Z")

</div>

I definitely could! The only thing stopping me at the moment is not having a good way to actually model things and place them in the game. I guess most of the stuff could just be rotated cubes…

I don’t think pipe riders has proper collision though, as the vehicle goes in a smooth circle. Collision for a remake of that game would let require some backtracking then, as only the actual objects appear to have collision.

Overall, cool idea, but it doesn’t really reflect what I have going at the moment. I may make something like that at some point though, after I finish the main engine, or I might even combine the two types of gameplay! Thanks for the idea!

---

<div class="post-metadata">

**Author:** ![TZG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tzg/32/7392_2.png) [@TZG](https://forum.makecode.com/u/TZG)\
**Post date:** [January 26, 2024, 12:37am UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/63 "2024-01-26T00:37:19Z")

</div>

Make Run from Cool math games.

---

<div class="post-metadata">

**Author:** ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)\
**Post date:** [March 25, 2024, 12:21am UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/64 "2024-03-25T00:21:26Z")

</div>

@AqeeAqee Are you planning on adding support for textured triangles?

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [March 26, 2024, 12:30pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/65 "2024-03-26T12:30:25Z")

</div>

That would be a useful feature for 3D.  
But making it need much more time for design, and compile, and testing, in c layer.  
So have no plan yet, wish I have plenty time for implement that some day.

---

<div class="post-metadata">

**Author:** ![jackal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jackal/32/19506_2.png) [@jackal](https://forum.makecode.com/u/jackal)\
**Post date:** [April 1, 2024, 8:38pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/66 "2024-04-01T20:38:41Z")

</div>

yo a recreation of wipeout 64 would be crazy in this engine

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [April 2, 2024, 5:19pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/67 "2024-04-02T17:19:08Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/b858f809ba9d41663bd1fedc2fe39d251f226151.png)  
hehe, i spent too much time doing this

---

<div class="post-metadata">

**Author:** ![Astronomicality22](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/astronomicality22/32/18365_2.png) [@Astronomicality22](https://forum.makecode.com/u/Astronomicality22)\
**Post date:** [April 2, 2024, 5:20pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/68 "2024-04-02T17:20:27Z")

</div>

Someone, with enough time, and a color adding extension, we could get something like RUN on here with this.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [April 2, 2024, 5:53pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/69 "2024-04-02T17:53:40Z")

</div>

But run doesn’t really have that many colours anyways  
I guess you could implement colour switching real time as each level has a slightly different colour

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [April 2, 2024, 6:30pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/70 "2024-04-02T18:30:36Z")

</div>

That’s what I’m trying to do but proper collision is a mess to say the least…

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [April 4, 2024, 9:52pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/71 "2024-04-04T21:52:09Z")

</div>

Why would you have to use collision? If you know where the empty tiles are, can’t you just move the camera down when you touch an empty tile? It would look just like falling down! The rotation already works, it just seems like it needs to be sped up a bit so you can’t move out of the tube before it rotates to correct (I’ve only played some of the older versions so this might be outdated)

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [November 30, 2024, 11:12pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/72 "2024-11-30T23:12:35Z")

</div>

Fair point. The main reason I’m doing it is so you can collide with the tube while you’re outside of it, since gravity switching does not occur there. The current collision is likely fine for the engine I will use it for, since I will likely apply an outward anti-grav force to the area outside of the pipe, thus minimizing a lot of the oddities that come with it. I also should implement a way to determine which side of a poly you’re on so I can make other runnable surfaces other than the inside of the tube, that is all hypothetical of course since in the current build I don’t have proper rotation.

---

<div class="post-metadata">

**Author:** ![coppercode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/coppercode/32/26022_2.png) [@coppercode](https://forum.makecode.com/u/coppercode)\
**Post date:** [March 23, 2026, 9:52pm UTC](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641/73 "2026-03-23T21:52:35Z")

</div>

hi i just wanted to know how you make and fill in a triangle shape in block code

[Previous page](https://forum.makecode.com/t/new-3d-engine-help-filling-4-sided-polygons/18641.md?page=3)
