How Do You Build 4D Worlds? - 4D Golf Devlog #3

244,420
0
Publicado 2022-12-22
Modeling 4D objects and drawing them to the screen is obviously one of the hardest problems with making a 4D game. In this Devlog, I go into the implementation detail of how I achieved this in my project and some of the amazing algorithms that got me there.

Wishlist 4D Golf on Steam: store.steampowered.com/app/2147950
#4dgolf

Great video about 4D shapes:    • I visualized 4D shapes #SoME2  
Miratope (GitHub): github.com/galoomba1/miratope-rs

Devlog #1:    • So I Guess I'm Making a 4D Game Now.....  
Trailer:    • 4D Golf | Release Date Trailer  

Support me and innovative projects like these!
Patreon: www.patreon.com/codeparade
Ko-fi: ko-fi.com/codeparade
Merch: crowdmade.com/collections/codeparade

Music (CC0 1.0)
Koi-discovery - Chromatismus
koi-discovery.lescigales.org/

Todos los comentarios (21)
  • @muno
    So many problems in life can be solved by using a lookup texture instead of real-time calculations
  • @vihdzp
    I'm really glad Miratope was of some use. When I started coding it almost 3 years ago I honestly had very little idea of what I was even doing. I haven't been actively working on it for a while now, but I believe it's currently in good hands.
  • @ikebirchum6591
    "Hmmm yes, fascinating," I say as I stroke my chin thoughtfully, completely and utterly failing to comprehend anything that's being shown or said
  • @nem7296
    I think the property you migh be refering to at 2:56 is called star-convexity.
  • @dkosmari
    At 2:47, the "vertex that can reach every other vertex," that's a property of star-shaped polygons/regions. Every star-shaped polygon has an internal region that can see the entire boundary of the polygon; this region is called the kernel of the polygon. In 2D, it's the intersection of all half-planes defined by the edges; it generalizes to any dimension.
  • @sporkwizard4131
    The fact that you’ve wrapped your head around this stuff to not only think, but also code and optimize, in four dimensions is seriously so impressive. That optimization with the lookup texture was sick as hell
  • @amphitheres
    2:55 in my analysis class, we called a subset of a vector space with that property "star shaped".
  • @pyro-millie5533
    Holy shit that optimization into a 64 bit table encoded to RGB values is FUCKING BRILLIANT!!! I adore your projects so much!!
  • @SunnyKimDev
    3:01 it is called a Star Domain! In geometry, a set S in the Euclidean space R^n is called a star domain (or star-convex set, star-shaped set or radially convex set) if there exists an s0 in S such that for all p in S, the line segments from s0 to p lies in S. This definition is immediately generalizable to any real, or complex, vector space. (wikipedia)
  • @DefineMeAsOne
    I came in here thinking, "He's going to explain it!!! I can't wait to finally understand 4D world", I came out still confused but motivated. Idk how he casually just talks about 4d like it's nothing, but it made me motivated and happy to know that it is achievable to get to that level.
  • @amyshaw893
    When i was doing 4d rendering, i did consider building meshes to render, but eventually i just thought back on your videos and the work of inigo quilez and raymarched it instead. super simple and ran decently well, mostly. though sending the primitives to the GPU was an interesting experience
  • @KeksosDerGrosse
    Nice optimization with the lookup table! Getting more and more pumped to experience all this in its final form.
  • @CalebRuiz
    I don’t understand most of this but it makes me feel good that someone does 😂 keep up the good work!
  • @TheLonelyKirby
    Watching these videos is a crashcourse to visualising a 4D world which i’ve wanted for some time now, sick coding on top of that and this is a nerds dream walkthrough, great work!
  • @VagabondTE
    Man, I can't even remotely follow this anymore. You have a truly impressive sense of visualization. I'm not giving up or anything, I'll get it one day. But you're trying to toss the ball as gently as you can and It's still flying miles over my head. LOL
  • @katieg2277
    That was an amazing way to take Super Nintendo programming theory into the modern era. Tip of the hat to you sir.
  • @mattmadson5187
    That truly is such a beautiful optimization, and i feel second hand pride for it, cause I'm so excited about all things 4d gaming