Why is video game topology so WEIRD? (Read pinned comment)

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 397

  • @magiccyborg
    @magiccyborg  6 місяців тому +626

    UPDATE: First of all, this is the most active comment section I've ever had for a UA-cam video. And I can't thank you all enough. Even if your comments are "negative," I truly value feedback and have a desire to improve in any ways I can. That said, a lot of you have pointed out stuff that I wasn't aware of. And I wanted to address that here.
    1. As it turns out, your model will get triangulated automatically if you import it into a game engine (such as Unity, Unreal, etc.). As an aspiring game designer, I feel like an idiot for not knowing this. I assumed that these models were triangulated manually by a 3D artist when in reality it's the game engine that has triangulated the model.
    2. Game engines aren't the only ones who like their models to be made of triangles. BLENDER DOES AS WELL. What I have demonstrated here: 3:00 is actually what all quads and ngons look like under the hood. Blender (and other 3D programs as well) essentially just trick you into thinking that you're working with quads to make your life easier. What's funny is I've unintentionally demonstrated this at 4:30 where the plane can only deform like that if the software saw it as two triangles. And my dumbass was completely oblivious to this.
    I'm well aware that this video's reception is rather...mixed. And I apologize to those who didn't have an enjoyable experience from watching this video. But I had learned a lot from you guys and I will try my best to improve in the future. This is probably the most technical subject I'll ever cover on this channel, which is probably why it got the most stuff wrong. Thus, the next couple of videos will cover more general topics. Once again, thank you all for your feedback and stay tuned.

    • @thesuperchallengebros
      @thesuperchallengebros 6 місяців тому +26

      Even if the information in this video was slightly misleading, I still appreciated that you went out of your way to try and explain it. 👍

    • @thedizsilent5188
      @thedizsilent5188 6 місяців тому +14

      Don't be afraid or discouraged to tackle technical topics in the future the end outcome is you learned a whole lot worst case you repost a vid or pin a comment. I didn't even know game engines/3d software changed the model's topology to begin with.

    • @Genebriss
      @Genebriss 6 місяців тому +6

      You are just spreading wrong information, why keep the video?

    • @thesuperchallengebros
      @thesuperchallengebros 6 місяців тому +14

      @@Genebriss Because the comments on this video have provided helpful information to a lot of people who don't know how CG geometry works. In my mind, the positives of this video's existence far outweigh the negatives.

    • @tiranito2834
      @tiranito2834 6 місяців тому

      @@Genebriss Because bad propaganda is still propaganda. The video is making numbers despite the fact that it contains information that is wrong. The author himself said it on the comment you just replied to: this is the most active comment section on his channel to this date. Why would he shoot himself in the foot and stop the influx of people coming here to comment? Yes, it's all wrong and an embarrassment of a video where someone who has no clue what they are talking about spouts nonsense... but who's going to say no to a free meal? money is money, and having this golden oportunity to chache out a big chunk of views... who would throw it away? Only someone with integrity, I suppose, which the OP made it clear that they have none of.

  • @Com-fh5es
    @Com-fh5es 6 місяців тому +808

    Hey ! Game artist student here ! Actually, the specificity of video game topology isn’t in the triangles… because cinema models are all triangles too ! The fact is, most if not all polygon rendering engines, real-time or pre-rendered use only triangles. And your models in blender are no exception, they are triangles too under the hood. That’s the reason your quad looks like two triangles when you move a vertex making it non planar. The reason your models are displayed in quads in blender is, as you said, that’s easier to work with, and, as you guessed, we work mainly with quads too. But the reason the videogame models you get are all triangulated, is because it will get triangulated anyway when rendered, so either the artist or the engine pre-triangulate the model before importing so the engine don’t have to do it at runtime. But we effectively have our own topology requirements to reduce and optimize the polygon count. Having triangles isn’t a big deal if it allows to reduce the polycount and doesn’t create problems when baking or animating (I think one of the reason it is considered as something bad in pre-rendered is because it messes up the lights when using tools such as the subdivision modifier, but I may be mistaking). We don’t have to create a 100% homogeneous topology : if a part of an object needs more topology to deform or to represent is volume, and an other could just be a quad, we won’t bother dividing it. In the same vein, we might add topology just where a model needs to deform. We also have no problems deleting face no one will see. These topology requirements are mainly for the low poly models. We also often create high poly models, by sculpting or with smooth poly modeling to bake details onto the low poly mesh via normal and AO maps.The requirements are different, but you won’t see these models in game as they are used only for the baking

    • @Dhruv1223
      @Dhruv1223 6 місяців тому +21

      Exactly ever quad is in essence two triangles, because the engines are based on vector maths, for any given surface may that be a quad or a n gon the engine is using vector maths, which is in 3 dimensions, so its at the end of the day calculating things based on triangles

    • @kokoilie
      @kokoilie 6 місяців тому +8

      I agree, you can even see it at 4:30 where the quad deformation is demonstrated how blender treats it as 2 triangles.

    • @magnusrexus
      @magnusrexus 6 місяців тому

      Thank you

    • @GuyMcPherson69
      @GuyMcPherson69 6 місяців тому

      You're the hero we deserved

    • @Nebulous6
      @Nebulous6 6 місяців тому +1

      The idea that all render engines require tris is a myth. There are a number of render engines (film and gaming) that render quads -- even at the final stage in the rendering process.

  • @unknownfascio7769
    @unknownfascio7769 6 місяців тому +453

    Alright let me tell you a secret that I discovered...
    It's All triangles. All of it. Every quad, every ngon, every mesh, all of it is triangles.
    It may look like a quad, but blender registers it as two triangles. The "triangulate quad" button is the default shape of what the mesh actually is.
    Blender doesn't really tell you the truth about quads.

    • @magiccyborg
      @magiccyborg  6 місяців тому +51

      😳

    • @Vm0nkey
      @Vm0nkey 6 місяців тому +29

      Yes this is why triangulated mesh is faster. When you have a quad mesh it has to be triangulated to render. Blender does this on each frame of an animation, in milliseconds which isn't a problem when frames can take minutes to render. I think it divides every quad between the closest vertexes for that quad but I could be wrong it might use a more advanced calculation. This is why really good topology is a mix of quads and triangles and has no poles with more than 5 edges. You put triangles where you want to control how that quad dividing happens.

    • @harrysanders818
      @harrysanders818 6 місяців тому +10

      ​​@@Vm0nkeyNonsense. Its GPUs that can only render triangles. Blender doesnt triangulate each frame. Its all tris always, you just get shown quads for humam readability.

    • @crolex6443
      @crolex6443 6 місяців тому +7

      @@harrysanders818 Blender does triangulation. GPUs have native implementations for showing quads, but if you have ngons blender has to do triangulation. I'm pretty sure Blender triangulates quads aswell, just because its easier to handle the in code. However, Blender does not perform traingulation EVERY frame. It performs triangulation in the background only when you change the mesh, then uses the triangle data for rendering.
      The main reasons for triangulation in games is, 1. to reduce polycount, and 2. to precicely control how the model is rendered. As you can imagine there are two ways to split a quad in two triangles. A GPU does this randomly, which can cause unwanted visuals.

    • @Kalergi_Plan_Accelerationist
      @Kalergi_Plan_Accelerationist 6 місяців тому +1

      Yeah, it's just easier on the eye, and speed up the work process. Most game engines will "triangle" it automatically anyway tho.

  • @bam_bino__
    @bam_bino__ 6 місяців тому +79

    answear: everything is already a triangle to the computer

  • @ChristianFeliciano7
    @ChristianFeliciano7 5 місяців тому +35

    3D artist here. Game models, even the ones you showed, are made using quads, they are rigged using quads, textured using quads, etc. The absolute most important aspect of having good topology is it enables models to deform (twist, bend, inflate, emote) the right way. Under the hood it gets tessellated and converted to triangles so the engine can render them efficiently. The Mario and Master Chief models you showed there are triangulated because they were ripped from their game files, but the artist working on them still work on the untriangulated ones.

    • @SianaGearz
      @SianaGearz 4 місяці тому

      3D engine dev for Wii, Xbox360 and Dreamcast here.
      Master Chief here is triangle based, it's not a triangulated quad mesh.
      Because Halo (1) doesn't really do extensive per pixel shading, it uses Gouraud shading, which tends to highlight the triangle edges; so it made sense to scramble the topology quite a bit to make annoying lines less likely and lean more towards equilaterals than towards right triangles. Think difference between UV sphere and icosphere, or modelling a dense cylinder by offsetting every second vertex row by half an edge worth, which is not something you'd do today, but was pervasive back then. This approach was also common on Dreamcast and PS2. There were a lot of non-quad direct-triangle models back then. Often also seen quad modelling, but triangulating by hand to make sure the quad split runs in a sensible direction, because early exporters were a little boneheaded.
      On Gamecube, games leaned towards triangle density so high, that each would be barely a couple pixels worth, because it really didn't care how much geometry you throw at it, so you'd see more trivially triangulated quad-topology meshes there; but many were also modelled in triangles closer to PS2 style.
      Mario model is from a newer game, not from back in that era; and the Pyramid Head model is a disgrace, something horrible has happened to it, it's definitely not from a game like this. The dense triangle fan on the face is absolutely impermissible on PS2.
      It can still make sense to triangulate specific models by hand, for example if you have a circle (ngon), if you span one or two large triangles across it and then triangulate the rest of the border, you'll have less total area in discarded group pixels and it you'll spend less fillrate. Normally it doesn't matter but if you were drawing hundreds of them, it can be a noticeable performance difference.

  • @dmeat0rz
    @dmeat0rz 6 місяців тому +167

    The right answer is : GPUs have been optimized to process textured triangles for 25 years. The only exception was the sega saturn, that had a 3D chip that was optimized for quads, but this made it more complicated for coders (and artists, remember in these days, going over 500 faces for a model was a luxury, therefore, using a triangle to fill a hole is 100% ok).
    In either case : Modeling with quads just makes the artist's work easier, with the correct arguments you used. All quads are then triangulated when exporting the model to your prefered format. If you are a prefectionist, you can actually triangulate some quads beforehand, just to keep control of which way the diagonal goes.

    • @magiccyborg
      @magiccyborg  6 місяців тому +17

      Wow. I didn't know the Sega Saturn was optimized for quads, that's actually kinda crazy.

    • @susancarew494
      @susancarew494 6 місяців тому +1

      I really appreciate this silly fun vid! Verrrrry interesting! I'm just a big silly myself. I don't know anything about blender, etc. BUT I
      have to say I learned a thing or 2. Thanks Magic!

    • @Nebulous6
      @Nebulous6 6 місяців тому +3

      SEGA's S.C.U.D. Race arcade board also renders quads. And the idea that tris render faster than quads is not true and is one of a number of details in this video that are incorrect.

    • @CaptainBeebi
      @CaptainBeebi 6 місяців тому +1

      @@magiccyborg It was, and it caused some insane issues that you wouldn't even think about.
      Consider for a moment you are making a transparent triangle using a quad. 2 of the vertices in this quad are going to occupy the same space. When you go to draw the triangle, the Saturn would rasterize the triangle by drawing strips from the top of the quad to the bottom. But because two of the vertices share a position, it's going to be drawing over certain pixels over and over again, creating weird artifacts where the triangle was substantially less transparent near the overlapping vertices.

    • @reeeyou
      @reeeyou 5 місяців тому +1

      ^ what dmeat0rz said. Modelling in quads makes the work easier with lesser visual clutter. The triangulation direction will depend on your topology’s edge flow. Which is also why modelling in quads is easier to visualise edge flow. Some manual triangulation is done usually for models with ngons and tris because 3d softwares’ auto triangulation sometimes produce unexpected results.

  •  6 місяців тому +44

    Hello! Awesome video! As a professional 3D artist for games I'd like to add a few things:
    1 - we do not always triangulate our models ourselves in this manner before sending them to the engine as many engines such as Unity and Unreal do that by themselves on model at 0 cost since It's import process (dunno about Godot tho), most of these models since you've extracted them straight from the engine could be either the Engine's work or the artists, we can only guess, but ultimatelly usually all models ingame will look so in the end one way or the other.
    2 - As you've mentioned in 4:23, sometimes quad topology gets weird surface bendings depending on how the vertices are pointed, there are 2 ways of subdividing a quad (left to right or right to left) so the programs choose one by themselves virtually for rendering be it the modelling software even if you can't see the edge line, leading to hole-like deformations in the silhouette of the model depending on the angle you look and how you want the surface to look like, So we can sometimes do that triangulations our own way to avoid the software making bad decisions.
    3 - Adding triangles here and there (If you know where to place them correctly) can diminish the amount of faces by one less edge LOOP in some reagions of the mesh, may not look like much but when you consider how many faces does you're model take till it completes a loop It might be very handy, and help to get away with that nice detail without making the mesh really heavy por it.
    4 - Generally N-gons and misplace triangles can create shading issues and bad deformations in animations, but they tend to not create those if the surface they're in is completelly flattened out and is not meant to ever bend down the middle (Hard Surface go Brrrrrrt). The only other problem would be there's more ways the engine would choose to cut those n-gons, but again: if the above conditions are met, who cares, no one will ever be able to see.

  • @Onatic99
    @Onatic99 6 місяців тому +97

    "This shows how much game developers value optimization"
    Call of Duty: 👀

    • @LueLucifer
      @LueLucifer 5 місяців тому +9

      Call of Duth is optimized. Just not in storage. 😂

    • @MrChaoticCrazed
      @MrChaoticCrazed 5 місяців тому +1

      So it’s not optimized

    • @verycreativeusername5401
      @verycreativeusername5401 5 місяців тому +2

      @@LueLuciferOh so that joining a friend requires you to restart the game is what you call optimized? Yeah I don’t think so

    • @LueLucifer
      @LueLucifer 5 місяців тому +2

      @verycreativeusername5401 I never played it, lol, cause it's shit.

    • @itsarin2166
      @itsarin2166 19 днів тому +1

      I don't know about current year or last year COD. But pretty sure MW19 despite it's graphics have pretty good optimization in terms of gameplay being able to be ran on a newer integrated GPU. (Radeon 660m, 680m and newer).
      It's just they suck at optimizing storage barely compressed texture and skins. I have seen some playing MW1-3 campaign ans MP on a Ryzen 6600H + Radeon 660M with no dedicated GPU and it ran well getting 60ish with basic graphics at 1080p, but once Warzone came into the mix, yeah it's start entering the unoptimized hell.

  • @lucaseaston
    @lucaseaston 5 місяців тому +11

    Spoiler alert, your nice quads are actually 2 x triangles.

  • @David-sg6lq
    @David-sg6lq Місяць тому +4

    WILD amounts of misinformation, why do people try to inform others when they're uninformed themselves T.T

  • @deviantvision4995
    @deviantvision4995 6 місяців тому +127

    You skipped over the fact that a computer doesn't know what a quad is. A quad is just eye candy to make our monkey brains understand stuff better. CPUs and GPUs only know triangles, and every quad or n-gon you see is actually being processed as a bunch of triangles.

    • @cinemocgi1376
      @cinemocgi1376 5 місяців тому +4

      Good simple explenation. You should be a teacher :)

    • @user-zi8wd3ov8m
      @user-zi8wd3ov8m 5 місяців тому +2

      Exactly! It's only logical because trigonometry is one of the topics that computer graphics is based on

    • @sampowell8241
      @sampowell8241 5 місяців тому +2

      My software renderer would disagree. It handles any convex polygons, and often is more efficient at rendering higher degree polygons because it’s less overhead to render a quad instead of two triangles. CPUs and GPUs don’t only understand triangles, it’s just that most rendering software is programmed to only handle triangles because it’s the most general solution, and graphics APIs are built to only handle triangles. With modern compute shader programs, I’m sure there’s a way to make a GPU render a true quad, though I’m sure it would be much less efficient because the GPUs hardware has been optimized around triangles for decades.

    • @deviantvision4995
      @deviantvision4995 5 місяців тому +2

      @@sampowell8241 technically blender also handles any polygons. I’m talking about what happens under the hood, on binary level.
      Hardware only knows zeros and ones, and therefore everything needs to be simplified to the simplest level possible to be processed correctly, and the simplest polygon is a triangle
      Now, granted, if you’re talking about 2D software yeah, maybe those aren’t triangles. But in 3D space, using polygon based software, everything is triangles because the computer NEEDS a flat surface to calculate where the points are in space and display the shading correctly.

    • @Nebulous6
      @Nebulous6 5 місяців тому +1

      @@deviantvision4995 SamPowell's correct. Not all 3D renderers have to render tris at the end of the process. E.g. Nvidia NV1 and this: ua-cam.com/video/1pGRmr3HRyo/v-deo.html

  • @Zictor
    @Zictor 6 місяців тому +4

    This is something that’s bugged me for years, but as soon as you moved a point on the square and it made a weird shape it all made sense! Brilliant!

  • @SRS_JAM
    @SRS_JAM 6 місяців тому +3

    Intentionally turning some areas of your mesh into triangles helps with random flipping of edges. Which as you had briefly mentioned can affect lighting in some way. Turning a quad into a two triangles tells rendering software and engines that this is the only orientation you would like to see on that quad. This also helps for the same reasons in deformation of the mesh. Intentionally folding two triangles in a specific direction. Like if you needed a nicely folding crease in the cheek when someone smiles. Don't worry about getting things wrong. There is a lot of information out there and we are all still learning. Thanks for sharing your video.
    Also, although all models may end up being processed as triangles, I would say its a nearly 100% common practice to make models in quads. Just flat out easier to work with , update, iterate and hand off to others. Working with or editing someone's pre-triangulated model is in fact a nightmare. ;)

  • @hc-om4vl
    @hc-om4vl 3 місяці тому +1

    Dude, just wanted to say that despite some things not being accurate, your video gives a great starting point for discussion and the comment section became a great learning tool about this subject that i wasnt findind anywhere. Thank you so much for holding this video despite the sometimes not so constructive criticism.

  • @ImusNoxa
    @ImusNoxa 5 місяців тому

    Thank you for making this video! As a noob to the 3D scene, I've been wondering the same thing. Both the video itself and the resulting discussions in the comments have been extremely helpful for clearing up my confusion!

  • @ziphy_6471
    @ziphy_6471 6 місяців тому +7

    Real answer : Game Engines convert models into triangles because GPU renders it that way.

  • @RobertFletcherOBE
    @RobertFletcherOBE 6 місяців тому +4

    Firstly please don't feel discouraged! Its great to see your trying to learn new things and share what you've learned. I've been working in and around this industry for about 25 years so I figured I'd weigh in and try to clear up some issues.
    OK so its all about Subdivision Surfaces, Deformation and Shading, not about the number of sides a face has. When you subdivide a triangle mesh all of its faces will be quads, and when you send a quad to a renderer it gets converted to triangles. Triangles are basically the atoms of rendering. They're neither good nor bad.
    The advantage of using quads in your modelling app is that they can be cleanly and *evenly* divided multiple times without introducing undesirable lumps, triangles and n-gons cannot be as evenly and smoothly subdivided so they cause lumps.
    Edge loops are important for 2 reasons
    1. They are provide the most economic way of representing a shape, This makes the model easier to manipulate for the artist and easier to render for the renderer.
    2. They behave well when being deformed. The loops tend to represent creases or wrap around areas of deformation ensuring the deformation is predictable.
    Game models are not really subdivided so you can make some trade offs. You have a very limited polygon budget so you spend your polygons like so:
    1. Ensure that deformable areas have good edge loops
    2. Ensure that the characters silhouette is as clear and detailed as possible.
    Game artists are less concerned about non silhouette details because they can fake those with a normal map, or painted textures. Also because baked normal maps are essential the *difference* between the low and high poly they can fix shading errors caused by uneven topology.
    Its good to have a clear understanding of the following
    ua-cam.com/video/k_S1INdEmdI/v-deo.html
    graphics.pixar.com/opensubdiv/docs/mod_notes.html
    en.wikipedia.org/wiki/Catmull%E2%80%93Clark_subdivision_surface
    en.wikipedia.org/wiki/Gouraud_shading
    en.wikipedia.org/wiki/Normal_mapping
    learnopengl.com/Advanced-Lighting/Normal-Mapping
    wiki.polycount.com/wiki/Normal_map

    • @icyroad1912
      @icyroad1912 Місяць тому

      I went into a deep dive in your sources. Absolutely wonderful write up! I'd love to see a video about you talking about the topic!

    • @alyasVictorio
      @alyasVictorio 17 днів тому

      Offtopic but how this comment with links allowed by UA-cam? My comments with links didn't registered as posted tho-, and even channels set the comments to unrestricted, yt ai will automatically delete those comments with link.

    • @Jackson_Zheng
      @Jackson_Zheng 7 днів тому

      ​@@alyasVictorio creators can choose to enable or disable it, or just personally delete any comment they want without notice, whenever they feel like.

  • @JMPDev
    @JMPDev 6 місяців тому +6

    Non-planar quads are always rendered as two triangles, since there needs to be a ‘crease’ between one set of opposite corners. This is amplified the lower your detail is, ie. The less polygons you have, and the more visible individual edge creases are.
    In some cases, such as at a joint, one diagonal crease placement looks subjectively better than the other.
    Therefore it is desirable, especially in a game context where models might have a stricter triangle budget for performance reasons, to manually set triangles so that the diagonals flow as is desirable, instead of it being done automatically which is not guaranteed to use the ideal configuration.

  • @gustavoberwanger1412
    @gustavoberwanger1412 8 днів тому

    this video feels like a kid discovering 3D existed prior to 2015

  • @-Lambda
    @-Lambda 23 дні тому

    fun fact: in flat Euclidean geometry the simplest polygon you can have is a triangle with three vertices, but in spherical geometry you can have a polygon with only two vertices. sometimes referred to as a spherical lune!

  • @JPWestmas
    @JPWestmas 21 день тому

    A quad is always two triangles under the hood no matter what you are doing. When you bend a quad, in 3d space, you are surrendering the edge flow of the third but invisible triangle edge to the software. That's why some programs (like max) allow you to flip the direction of the invisible edge without "baking" in that change and forcing you have to manage more edges or ruin your tool functionality. By keeping your model in "quads" mode you are in fact limiting the edges that the software sees as a path to using certain tools e.g. add edge loops or bevel etc. In the end though, your model is always made of triangles.

  • @miuiruma273
    @miuiruma273 6 місяців тому +18

    Press Alt+J in Edit Mode for go back to quads

    • @rusername
      @rusername 6 місяців тому +2

      its probably better to use triangulate modifier though

  • @ethos8863
    @ethos8863 12 днів тому +2

    You are fundamentally mistaken about the triangles thing. It's not about optimization. You kind of skirted past the actual reason but triangles have this special property that they are guaranteed to be flat, meaning there will be no distortion. It heavily simplifies the math involved, making triangles better for rendering.
    Although computers are ridiculously fast and measure their performance in the trillions(not billions), it's important to understand that monitors generally render at at least 60, and 120 may become standard soon, frames per second. so for a fairly beefy GPU, a 3090, at 120 frames per second, and an average 100 million triangles for a triple A game, and you find that it can only perform 3 thousand or so operations per second. Then take into account whatever ridiculous post processing and lighting calculations and it does'nt actually seem that insane. Computers are fast but Wirth's law tells us that software becomes slower and slower over the years.

  • @ABUELITOVIP
    @ABUELITOVIP 4 дні тому

    My theory is that you get more quality with the same number of vertices.
    - A square has 4 vertices, but if one of its points is too far off the shader will look strange in the game.
    - 1st triangle has 2 points that are used for the 2nd triangle to which it only adds 1 more point and that makes an exaggerated deviation of that point not look strange with the anti-aliasing shaders as it would with a square.
    - Another thing to distinguish is the Editing model and the Rendering model, for a human it is better to edit squares, but both the engine and the graphics will use triangles to avoid strange shadows in shaders.
    - I recommend you use decimate in Blender and try the 3 reduction options with the same model of a video game, you will notice that they deform differently.

  • @Vladimir-V-Kondratyev
    @Vladimir-V-Kondratyev Місяць тому

    Polygons are very often rendered are multiple triangles internally.

  • @kvark1073
    @kvark1073 19 днів тому

    on the very low level game engines usually operates triangles only, so inside quads are just 2 undetermined tiangles (because yiu have 2 ways to split the quad). so berret determine it in controled enviroment (mesh production inside 3d editor). Studios can also working in quads as usual, but exporting model in tiangle mode

  • @Agent56000
    @Agent56000 5 місяців тому +2

    Jus restarted learning blender and I’m so overwhelmed with knowledge I’m not even ready for yet lol

    • @SwagHyde
      @SwagHyde 5 місяців тому +2

      good luck
      it's fun and there's always more to learn
      some operations you'll only use a couple of times but that are very useful in certain situations

  • @cgvapour
    @cgvapour 6 місяців тому +1

    This is super informative! I love your documentary style and how you present your thought process in such a nice and entertaining way ❤

  • @TripalYT
    @TripalYT 5 місяців тому

    Reminder to @magic cyborg "There are no stupid questions". Please keep this video up despite the negative comments. Heck, you should make a part two showing your latest discoveries.

  • @lolcat69
    @lolcat69 5 місяців тому

    triangles are the simplest thing we can render, it makes rasterization easy and also interpolating values between the points on the surface of a triangle ( such as uv-coords ), also they are cool and you can create any polygon using only triangles.

  • @pw6002
    @pw6002 5 місяців тому +1

    This video may be nerdy, but it’s not silly at all !
    I understood everything though I am no image man, but a sound guy.
    Thank you !!

  • @leouxdesign
    @leouxdesign 5 місяців тому

    Interesting thing, I very recently started learning 3d modeling, and watched many tutorials about perfect topology. But watching video game documentaries, I ofter noticed that weird topology triangles when they showed models from development prices. In that moment I thought why they look like that when everybody is telling about quads. And now I suddenly came across this video. As always, UA-cam is reading the minds 😄

  • @HarvestrX
    @HarvestrX 3 місяці тому

    Non-coplanar surfaces are mathematically undefined. It is impossible to avoid non-coplanar surfaces at all times in 3D modeling though, especially in organic modeling. So, you (or the software) trangulate your quads. The reason is that it is impossible to create a non-coplanar triangle. That is the answer. I too wondered about tris versus quads until I learned that.

  • @mbbmbbmm
    @mbbmbbmm Місяць тому

    I've recently started to study old low poly game assets and they really use a lot of triangles purposefully. Those I've looked at came triangulated but you can usally deduce the geometry that was started with quad based topology and where it goes into triangle topology for optimization/poly count reasons. A typical pattern seems to be the 'W' where it goes from one edge to two via three triangles. I also love how crude some of the old textures are but still work just fine in context.

  • @pixels_per_minute
    @pixels_per_minute 6 місяців тому +11

    GPU optimisation has been centred around triangles for a long time.
    On top of them being dirt cheat to render, they also provide more accurate lighting data then quads.

    • @coreyaruecker
      @coreyaruecker 6 місяців тому +4

      And it’s the most fundamental shape. Every other shape can be made out of the almighty triangle

    • @aivanosgg2269
      @aivanosgg2269 5 місяців тому

      I guess it's because with 3 vertices you can calculate exactly the rotation of the face, one edge for each axis, while with four edges you couldn't

    • @AdeptusMechanicus933
      @AdeptusMechanicus933 5 місяців тому

      It's actually due to a ton of simple optimizations you can do with triangles like nearly free backface culling if you only define triangles with either clockwise or anticlockwise vertices

  • @Beshmoth
    @Beshmoth 4 місяці тому

    One of the reasons is also that the texturing program they probably use is also going to triangulate the mesh upon importing as substance painter does, wich ensures that the normals are not going to be changed somehow, usualy i always triangulate my models before importing them into substance cuz substance dosent have to triangulate the model while importing wich can take some time depending on how complicated the model is from what ive experienced

  • @HamguyBacon
    @HamguyBacon Місяць тому

    you can render half the head and program it to copy the other half. since eyes move together you only need 1 eye.

  • @TechGamerAndHacker
    @TechGamerAndHacker 6 місяців тому

    Thank you, sir, I was really confused why game uses triangles at first place. I can't thank you enough.

  • @Meni_Rosenfeld
    @Meni_Rosenfeld 4 місяці тому +1

    It's worth pointing out that, mathematically, getting a 2D quadrilateral ("quad") from a a set of 4 vertices and edges in 3D isn't well-defined. If the 4 vertices happen to be coplanar, you can use the unique quad that lies on this plane. But if not (which is almost surely the case for generic points), there's no way to tell what the 2D surface would look like, it can be anything you want (including the possibility of curves and whatnot). So you can't really render something that isn't determined to begin with.
    Dividing every such quad into two triangles (each of which is *always* coplanar) is basically the simplest way to specify what you want the surface to actually be.
    Also worth noting that if the quad does *not* lie on a plane, you can choose to triangulate it along either of the two diagonals, and each choice will lead to a different surface. So that is a choice that actually has to be made at some point.

  • @theonegatoo
    @theonegatoo 4 місяці тому

    Basically, all math is done using triangles. All 3d models are converted into tris. And makes sense when you think about it. When trying to calculate something you have two points, and the final point will make it a flat. With more points you introduce folding which means rendering gets broken.

  • @justinlloyd3
    @justinlloyd3 5 місяців тому

    Polygons are always triangles during render time. A polygon is just displayed without the triangle edge. But its there. You cannot render a polygon witbout rendering its triangles.

  • @maxgordon3194
    @maxgordon3194 5 місяців тому

    triangles are processed faster by the cpu and also the shaders are calculate din the vertex frame buffer. most of the professional AAA games do all calculations inside the custom interpolators assigned to the custom buffer calculated in the vertex shader which is precompiled and a lot faster.

  • @hirkdeknirk1
    @hirkdeknirk1 5 місяців тому +2

    As many here have already discovered, a game engine triangulates each model when importing. It is therefore advisable to archive the original in case changes need to be made. Exporting the model from the engine in order to edit it is not a good idea, because with the salad of triangles, changes to the model and the texturing are often difficult or impossible.

  • @lentencraft
    @lentencraft 18 днів тому

    okay, first answer that popped into my head when i thought about this. before really watching the video. Tri's can always be flat, If you are in a euclidian space, you will always be able to connect three points in space via a flat plane. This is not the case, for 4 points. I imagine that makes handling Tris a lot cheaper, as you do not need to check, if the shape you try to make is actually even possible. Lets see if i was close lol

  • @MarblaGarb
    @MarblaGarb 5 місяців тому +1

    Usually, when a model is exported, it’s going to be triangulated by whatever program exports it.
    In blender, you can use the triangulated modifier, or go into edit mode and select all , and then hit Control+ T , to guarantee your model will triangulate the exact same if imported into engines, or other programs.
    When you’re importing into blender or other programs, you will get the already triangulated model, because it was triangulated when initially exported.
    The folks modeling these characters likely already did quad modeling.
    There’s rare cases where truely weird triangles are there on purpose like in guilty gear. The mouths use triangles for stretching

  • @Rievven
    @Rievven 5 місяців тому

    You pretty much got it. A triangle is a plane. Being a plane doesn't really make it easier, instead it makes it well defined. For example, when we define a winding direction, it makes normal vector computation implicit and we don't have to store them in the model file (note this is not really a concern anymore as textures dwarf the size of the models).
    Similarly, when your base representation is a plane we have a straight forward dot product equation for computing the light reflection of that surface. For solid geometry we also have equations, but they are far more complex. Even then though I am unaware of the existence of an arbitrary surface equation.
    Another minor advantage (with modern GPUs) is during clipping you can draw a new edge between the visible parts of a triangle (imagine half your triangle is off screen). The behavior of the plane is the same in terms of rendering. Specifically by clipping the triangle you have not changed the interpolation function for texture lookup.
    As a final example, picking (the process of determining which triangle intercepts a ray) is well behaved for a ray plane intersection.
    It really comes down to a plane, of which a triangle is the minimal definition, makes the math well behaved. This could all be done with quads, but it would make certain steps in the rastering pipeline under defined. For example to clip a quad you would construct in some cases an n-gon.

  • @benedictsforester7045
    @benedictsforester7045 5 місяців тому

    We have many formulas to deal with triangles. Most polygons are calcualted using triangle math which is an extra variable in the calculation if you need to calculate quads

  • @bobanimations808
    @bobanimations808 5 місяців тому

    I just realized you have 732 subscribers. You deserve way more dude

  • @glowpon3
    @glowpon3 5 місяців тому

    I use Blender for everything, even things I shouldn't use blender for (like calculating paint mixing and running python programs to edit gcode files.) and one thing I've learned is it's better to triangulate and correct before exporting anything to stl or other triangle mesh file types. The triangulate faces function has variable you can control, and for some reason does a better job than blender does during raw exports. This is especially important if you've done any bevels, as the function will keep them smooth but the exported version can sometimes cut the quads the wrong direction. Great video, should do an update with everything you've learned sometime.

  • @emilianogg
    @emilianogg 5 місяців тому

    I loved this video and i love this channel now, keep going!!

  • @ch3dsmaxuser
    @ch3dsmaxuser 5 місяців тому

    Short answer, triangles are easier to index which is a step necessary for rasterization of 3d models.

  • @cat-boy1357
    @cat-boy1357 6 місяців тому

    A really good video. A very solid overview of the topic of topology. Keep up the good work.
    Now, I see you have found your way into the start of understanding triangle strips and triangle fans. As it turns out, all quods are just two triangles in a trench coat that act like a square. In fact, you see this in play at 4:24. You're also correct about triangles' ability to be planer at any point in space. One reason this is important is because it helps to calculate the normal vector. By taking the vector of two edges from a vertex. You can calculate the cross-product of the two and get a vector that is perpendicular to the planer axes. By normalizing this vector's magnitude, you can find its normal vector. In blender terms, turning on the normal display (edit mode, viewport overlays, normals) you can see this. These are used by the shader to calculate lighting and the way the object is facing. A face facing away doesn't need to be rendered. In rendering, this is called back face culling. By this one calculation of getting a normal vector, games can often gain about twice the performance as they would have because they can skip a lot of rendering.
    With that said, on the 3D modeling side. Working with quods is much easier because of the subdivision surface algorithm. By finding the halfway point of all edges, you can add a new vertex in that position and recalculate a new edge. Because two triangles make up a quod, it can also find the halfway point of that shared edge. Allowing it to now have nine vertices, easily making 4 quods. Because of their widespread usage, most graphics libraries, like OpenGL and DirectX, kinda just assume you are using triangles for everything. As such, blender tessellates all its quods into triangles anyway. However, the concept of quods is very useful for some algorithms that help with modeling, and as such, it's the reason why n-gons and/or triangles are unwonted. As these algorithms don't work for these types of meshes.
    Sorry about the long comment. I write a lot of graphics code. Plus, it's fun to talk about these topics :P .

  • @santitabnavascues8673
    @santitabnavascues8673 6 місяців тому +2

    Triangles are simpler to raster because ther "fragments" (fragments are translated to pixels later) never overlap, in certain instances, quad fragments may overlap their fragments, so their rendering is not as optimal, despite the fact that rendering quads often offer better results, as their seams align perfectly with the shape, unlike triangulated quads whose middle seam can be noticed if the shape has few triangles, this was specially noticeable in Saturn vs PSX games

  • @Achelon
    @Achelon 4 місяці тому

    Hey, this is actually a good video because it shows how one might think about this without understanding the hardware. The comment field is full of good information as well! Then when you really go into detail the shape of the triangle and in particular, its length to the primitive block size of a rasterization block, it gets another level of complexity. If you have to consider the drawing of 8*8 blocks of pixels for just a pixel or two for several long triangles, it gets taxing for the engine. Cannot actually find information on the block level size anymore, but this used to be true at least :D

  • @draak_animasie6767
    @draak_animasie6767 4 місяці тому

    My university really drilled it into us that NGons are the devil, one of my lecturer's always referred to them as "Satan Squares" and would fail us automatically if she found even 1 NGon, suffice to say we learned really quickly that we should never have them. Also, the switch to all trigons for video game meshes was also a bit of an adjustment ngl, since we were only allowed maybe a handful of trigons in our scenes and models ever.
    Then we started optimising for video games in our 3rd year and all that went out the window xD

  • @NoxiusVI
    @NoxiusVI 5 місяців тому

    As some guy that I completely forgot who they are once said:
    "GPU speak triangle"

  • @KarlClarkeMusic
    @KarlClarkeMusic 6 місяців тому +8

    As a few people have stated, the reason why the models are triangles is because tris get generated from quads. When planes get a vertex moved and become "non planer" the shading has a really odd time trying to find the "normal" of a face and you end up with two tris shaded but technically a "quad". This is because blender and every quad commonly seen are Triangles. The reason for modelling in Quads is as you stated Edge flow, sub-D and UV Wrapping. But once it passes through an engine it *normally* gets triangulated. The reason why the mario isn't quad and instead dual tris is because this probably wasn't the model before it went into the engine and probably had been extracted from the game files/engine. Thus it would have already gone through triangulation. There are some very good reasons to use tri topology when doing low poly deformation in joints like knees or elbows to stop pinching behaviors. In any case love the production value on the video, really well produced.

    • @mark_zuck
      @mark_zuck 5 місяців тому

      This is true, I remember reading somewhere, a long time ago that developers weren't sure whether models were supposed to be quads or tris, but long story short, tris were better for optimisation as you don't always need quads and is generally better for morphing of models. Personally when I've 3D modelled things, I will triangulate my low poly and remove unnecessary triangles before baking. For example if u have a flat service with lots of tris for topology, this can just be removed as it's not needed to render

  • @dwhale_
    @dwhale_ 5 місяців тому

    Dude i just discovered you on my main page and i can see how much you put in your videos. Keep going!

  • @theredstormer8078
    @theredstormer8078 6 місяців тому

    Just use tris to quads. It's right below triangulate faces in the dropdown. It doesn't always work perfectly, but it usually works.
    Game models are triangulated beforehand partially because some game engines simply don't support quads and partially because if the game had to triangulate them while loading them it would just take way longer to load. Blender just triangulates on the fly for rendering anyways.

  • @Liquidkapu
    @Liquidkapu 6 місяців тому +1

    Great video!
    Many of the things you mentioned are very common misconceptions among artists, so dont beat yourself up for sharing them.
    Since you are interested in the subject, I recommend you watch Jonathan Blow's "How 3D video games do graphics" video to get a better grip on the technical aspects.
    Expecting more videos from you!

  • @lukasvideosify1596
    @lukasvideosify1596 5 місяців тому

    I liked your video and the effort it took, buddy!
    There is another thing you did not mention that is also important.
    If the mech is quads and not tris, the graphics card has to always triangulate itself.
    (The GPU can by the way only work with tris, anyways, because of the problem that
    you mentioned that everything needs to be on a vector plane.)
    It would have to do that for EVERY single frame which takes a lot of (unnecessary)
    calculating.
    But it gets even worse:
    When the mesh is deformed by bones the way the mesh is transformed into tries
    would alter if it was done for every frame all over again because the dimensions of the
    quad would change as well and the graphics card by default tries to triangulate the quads
    into the most possibly even tris.
    So, in other words, if the mesh is not (yet) triangulated it confuses the graphics card as
    how to break down the geometry and possible changes the method in the procedure.
    In a fairly low-poly mesh that could cause well preceivable flickering which the player
    will most likely notice in some scenarios.
    So...
    There is basically a visual component to that as well.
    I wanted to give that small input to you in case you are interested. ;)

  • @MattiasLind
    @MattiasLind 5 місяців тому

    A quad is 2 triangles, it is all triangles, just different ways of viewing and manipulating the surfaces in the viewport. Striving for an all-quad model is good practice for a beginner, but it is also important to get to know the benefits of nGons and stuff as well, because they are used quite a lot in movies and animations😊 Subdivide an nGon and see where you can use that result to your advantage💪

  • @Nina_Amaneko
    @Nina_Amaneko 13 днів тому

    1:42 are you telling me that Minecraft models are triangles and not just cubes? THE HERESY

  • @qwerty1423a
    @qwerty1423a 6 місяців тому +1

    well done cyborg, loved this vid.

  • @PurestInfinity
    @PurestInfinity 6 місяців тому

    still one issue you have not moved and more specifically decimate modifier. Once you finish creating a model and for example it has 40k triangles including clothing, you use decimate modifier before exporting. This allows you to reduce the number of triangles by up to half without losing a lot of detail and shape of the model which you would not achieve by reducing quads alone. Shading tends to get weird but then the normal map comes in.

  • @SomJob
    @SomJob 6 місяців тому +2

    Thanks for sharing, even I knew that but it wasn't that clear.

  • @drage1459
    @drage1459 5 місяців тому

    from my experience it is the game engine which does the triangulation for our models so often it doesn't matter if you use triangles while modeling for video games as they will end up triangles either way. however its common to do some of the work manually as well, as with certain angles the game engine doesn't know if the quad is beinding outwards or inwards which can cause shading issues. this is usally also part of why n-gons are no no as the game engine doesn't know how to properly turn it into triangles.
    eitherway the video was fine and though you weren't right on everything as said in your pinned comment. but thought experiments like these are generally useful to have as it can help you come to conclusions or improve yourself.👍

  • @sandman7836
    @sandman7836 Місяць тому

    i was going to say quad based topology leads to better rigging and mesh deformation but if mario can bing bang wahoo with tris its good enough for me

  • @JohnSatan
    @JohnSatan 6 місяців тому

    Quads are used for meshes that's getting subdivided ob render, having all tris model would screw up subdivision, but when you making game you need to have good shape and deformations without things like subdivision surface, so you need to use triangles to make the best shape, and in engine model are getting triangulated anyways.

  • @HoSock
    @HoSock 6 місяців тому

    Best explanation of topology i ever seen

  • @TheNeathGame
    @TheNeathGame 6 місяців тому

    I think blender actually uses triangles but it shades based on quads and ngons. A lot of the file formats you use to send it to a game engine reduce quads to triangles anyway as they'll be converted to triangles to be sent to the GPU anyways. One thing about ngons is that not all 3D software will handle them. If you send an obj file to Zbrush for instance you'll have to fill in holes in your model.

  • @fandrawerNgundam
    @fandrawerNgundam 5 місяців тому

    Learning blender few years ago be like : MUST DO QUADS!!!!!
    After some time with game development : it's okay to have triangles. in fact, you can do ALL TRIANGLES OR NGONS
    quads is just an easy way to model nicely and use the modifier properly in Blender

  • @baarg8672
    @baarg8672 4 місяці тому

    1:04 - most of all - rigging/skinning is easier!
    Tomb Raider - is the mother of triangle
    so.. triagnels is for math
    quads for artists

  • @Keytotruth
    @Keytotruth 5 місяців тому

    The main reason why it's all triangles is because you are not using the official model Nintendo worked with, you are just seeing the triangulated version for use inside the game.
    This is done to ensure that you get the same topology output going from your modeling software to your game engine. Also, game engines only understand triangles, like any other modern software, so it's a requires step.

  • @batapxv7
    @batapxv7 22 дні тому

    Computers work with triangles because operations like interpolating values over 3 points is much simpler mathematically than over 4.

  • @JonasBuechnerArt
    @JonasBuechnerArt 5 місяців тому

    Gpu does the same thing when blender gives it quads. But it has to make the triangles on the fly which takes time

  • @rajabwali3373
    @rajabwali3373 6 місяців тому

    So, basically for the reason I thought. Thanks for the information.

  • @Ykulvaarlck
    @Ykulvaarlck 5 місяців тому

    i'm pretty sure that game models just don't store information about quads and stuff. when you use quads even in blender, it still renders them as 2 split triangles. the thing is, when you extract a game model it simply doesn't store which triangles formed the quad so all you see is the triangles that your computer is Actually processing

  • @devilblackdeath
    @devilblackdeath 6 місяців тому

    In the end your GPU (even in animation) triangulates the models no matter what. So it's not so much about the vertices, it IS about the faces. But the real number of faces rendered by the GPU is the number after triangulating a model in Blender. That's a good way to measure the actual polycount of your model. A big reason to triangulate your game model may be to control the quad's deformation. Since you have less freedom to add edge loops (less and less true obviously, for around 5 to 10 years now it's almost been a non-problem) you need to be able to control how your quads will deform during animation, and the best way to do that is triangulating and rotating the edge the way you need to.
    But these are still relevant topics today, especially for indie studios who decide to go for a N64/PS1 aesthetic (Abyss X Zero or The Big Catch for example) or a simpler polygonal style (like Tunic). In such situations it may also sometimes make sense to use triangles for pointy bits. We still try to avoid it, but particularly in low polygon games such as those examples it may be better both visually and for consistence !
    Another reason you may find triangulated models is that for commercial games you usually "rip" the model. Meaning some software reads it from the game's RAM and rewrites the data to a 3D file. But when doing that, you're reading the model as it is interpreted by the 3D library and the GPU, meaning it's already triangulated. So no matter what, a ripped model will almost always be triangulated (except for edge cases and when the ripper requadded it).

  • @Nebulous6
    @Nebulous6 6 місяців тому

    Quads make subdivision modeling easier and cleaner (and are more efficient than tris).
    Only some game engines require 3-sided polygons. SEGA has at least one arcade board that supports quads (and apparently so does the Dreamcast).

  • @adina-the-nerd
    @adina-the-nerd 6 місяців тому

    Just so you know when doing stuff in real time performance matters. GPUs only do triangles. A square is two triangles. Squares are two times more intensive. It doesn't do it but it is noticeable.
    The reason that we see the triangles is because we measure things in triangle count mostly

  • @ericmatthews9894
    @ericmatthews9894 6 місяців тому

    I'm still learning myself. I find that it is not always possible to use only quads. Now, I'm no expert and I'm sure more experienced 3D artists know of ways to resolve this, but it seems to me that the only reason you want to use all quads is to make the modeling process easier. Once the modeling process is complete and there is nothing else you plan to do with the model, it doesn't matter, because the export, or import to another program with triangulate everything anyway.

    • @DiThi
      @DiThi 6 місяців тому

      As a seasoned 3D modeller, a few triangles and n-gons are necessary here and there to make the task easier. I end up eliminating all of them but it's more for the challenge than for it being strictly necessary. Tris and n-gons on parts that barely deform at all are no big deal.
      This only applies to organic modelling, esp. something that is going to be animated or posed. For static objects it may not matter at all in most cases.

  • @mariovelez578
    @mariovelez578 6 місяців тому

    Actually the GPU automatically turns quads into triangles for rendering, but having them be triangles already makes it a bit quicker. There’s something called the tessellation shader that does this, so theoretically you could have a game that only uses quad meshes

  • @AllExistence
    @AllExistence 5 місяців тому +2

    Dude. What the hell. Did you even Google it before making a video?

  • @redfoxbennaton
    @redfoxbennaton 6 місяців тому +1

    Sega Saturn only did Quads back in the day. Everything else does triangles

  • @TheZibx
    @TheZibx 5 місяців тому

    Blenders quads are actually triangles under the hood. GPU can only render triangles.

  • @monsterkill228
    @monsterkill228 5 місяців тому

    Models are triangulated for the engine, but quads are used for animation and proper shading on rounded shapes.

  • @HumpaLumpaBiriBam
    @HumpaLumpaBiriBam Місяць тому

    Your video is spot on! 4:40 - The reason by math is done to triangles not quads is due to transformations in 3d space. If you had extensive math lessons is school, you might have remember "matrixes" and operations on them. They are very efficient and fast to do ( * / + - ) on them... AND THAT IS WHAT IS HAPPENING BY MATH when you moving in 3d space! "zooming" "panning" "rotating" -> behind the scene is "get me this verticle and multiply by this matrix"! Based on that HARDWARE was designed that way to be the most efficient on triangles (memory/access) and its gonna stay like that. There are other bits like points of collisions in 3d space, or calculating normals, etc.. Where math is very fast to do. so its performance in a nutshell.
    To make it in plain english.. for you HUMAN :) its easier to do: 123 + 123 then 123 * 123 ;) same for machine.. triangles are faster ;)

    • @HumpaLumpaBiriBam
      @HumpaLumpaBiriBam Місяць тому

      by the way... for GPU its actually faster to do MULTIPLY then ADD :), it requires assembler knowledge to understand processor commands but I'm sure you will find some videos / articles that explain that paradigm in details ;)

  • @Manningtonrobotics
    @Manningtonrobotics 4 місяці тому

    ive wondered about this! nice vid earned a sub

  • @jbdh6510
    @jbdh6510 5 місяців тому +2

    The thumbnail is misleading. Both, Games and cinema renderings are using triangles.

  • @arkano22
    @arkano22 Місяць тому

    GPUs can only deal with triangles. So no matter if you use n-gons, quads, or triangles, it all ends up being triangles fed to the GPU.
    Quads are simply an abstraction on top of triangles that makes modeling easier and that many tools require in order to work: subdivision, edge loop creation, etc. This abstraction isn't generally kept by game engines because by the time the model is in the game, it is not going to be manipulated by humans anymore and as a result it makes no sense to keep quad/n-gon information around. Imported models are either manually or automatically triangulated and the quad/n-gon information discarded.

  • @johnwostenberg840
    @johnwostenberg840 22 дні тому

    You should watch Jonathan Blow’s “how 3D rendering works in games”

  • @plynkz
    @plynkz 6 місяців тому

    quads internally are triangles so it is a natural conversion, probably the models were made with quads but automatically changed

  • @fluiglp5615
    @fluiglp5615 5 місяців тому

    From a Renderering Perspective, using Quads is probably increasing the anount of math because, if you have 1x1 Field as a Quad you have 4 Parameters that need to be interpolated inbetween for every Pixel, using a Quad reduces 2 tris to one single poly, however if its 2 Tris then the 2 halfs of the 1x1 Field are each using only 3 Referencepoints for Interpolation, depending on the shader etc, this is inceasing the amount of variables that need to be pushed to all Pixels of the Faces.
    On Top, to figure out if a object should be rendered or is overlapped, theres a ZBuffer written usually, to write to it, you need to have the correct shape on screen, so on a Quad you kinda need to split it up anyway to figure out the edge that goes through it,

  • @MrBrigadierArchived
    @MrBrigadierArchived 6 місяців тому

    uhhh... but N-gons can be used for transitioning the topologies, proper redirection of it or for the UV... It does nothing wrong on flat surfaces.

  • @C_Corpze
    @C_Corpze 6 місяців тому

    Since you mentioned Blender's edge count going up when you triangulate quads.
    Video games don't use edges if I recall, they're completely discarded.
    Game engines if I'm not mistaken typically store only the vertices of a model and which vertices have triangles in them.
    And they're typically drawn/rasterized in clock-wise order, edge information is not needed.
    Also very interesting, having more seams in a UV map also increases the vertices count because it has to add duplicate data for every vertex that is not connected to another vertex.
    So having fewer and larger islands is also often better for performance too.
    Another reason games might also use triangles might also have to do with shading.
    Calculating shadows and such is simpler for triangles because it only has to interpolate between 3 points, calculating shadows for a quad can look really weird and might cause glitchy artifacts if the polygons need to stretch and bend.
    You can test this yourself by using vertex colors on the default Blender cube and painting it, then compare the result with a triangulated cube.

  • @AljunemonerPlayz
    @AljunemonerPlayz 6 місяців тому

    UA-cam recommended this video to me because i love 3d modeling

  • @oglothenerd
    @oglothenerd 6 місяців тому +4

    What if the model makers did use proper topology, but they didn't use Blender? Ultimately, models are stored as triangles... so if you loaded a regular model into Blender, it would obviously look like they used triangles for everything. It is sort of like compiling a program written in Rust, decompiling it, and wondering why the person wrote the program in C.

  • @curhob
    @curhob 4 місяці тому

    It's actually not specific to game topology, because developers DO use quad modeling via apps like Blender or Maya or other things. The real reason it seems specific to games is that when a game is deployed to consoles and such, everything is compiled to run faster on consumer hardware, including meshes. As many have pointed out, all models are converted to triangles before rendering. So by the time people figure out how to extract a model from a BUILD of that game, they're already packed in as a simple optimized triangle mesh, rather than any of those common formats like FBX or DAE or OBJ that 3D modelers will import into something like Blender.

  • @spierdaczka
    @spierdaczka 5 місяців тому

    That is, the correct topology is those nice and even grids in the models. Arguably, many such models are created using sculpting. I used to do that too and the mesh looked like a mess. How do they make that even mesh? Does it involve the tedious work of laying the quads on top of the sculpt by hand, or is there some magic button, lol ?