Home General Discussion

Polycount to Professors: Ngons Are Useful!

2

Replies

  • EarthQuake
  • Clark Coots
    Offline / Send Message
    Clark Coots polycounter lvl 13
    EQ can you explain your reason for B? Based on these tests back in 2009 by Humus it would seem C or as equilateral triangles is best for performance. http://www.humus.name/index.php?page=News&ID=228

    Would love to hear your thoughts.
  • Deathstick
    Offline / Send Message
    Deathstick polycounter lvl 7
    And all these years I thought I was doing it right by closing off my cylindrical shapes with A. Daaaaamn.

    ....although A is probably the best if I need to make an edit later :D
  • RN
    Offline / Send Message
    RN sublime tool
    Out of all of those, triangulation C is the most optimised, but even that can be improved.
    That 18-gon can be optimally triangulated like this:


    triangulation_E.png


    There's more information here:
    http://www.polycount.com/forum/showthread.php?p=2213096#post2213096
  • EtotheRic
    Offline / Send Message
    EtotheRic polycounter lvl 20
    I'd pick b as well because it lends itself best to optimization and lods.
  • Blaizer
    Offline / Send Message
    Blaizer polycounter
    The humus article talks about tessellation. And there are several tessellation algorithms. If the model is not going to be tessellated, any method is valid.

    I use to use B in certain models (it's a way to have quads in a cylinder of parity 2), but for normal mapped models A gives me better results.
  • Kurt Russell Fan Club
    Offline / Send Message
    Kurt Russell Fan Club polycounter lvl 9
    I don't think it means tessellation in that sense, does it?
  • claydough
    Offline / Send Message
    claydough polycounter lvl 10
    EarthQuake wrote: »
    Ngons are extremely useful for terminating edge loops, if you dogmatically stick to using only quads, the only thing you are accomplishing is making your life harder than it needs to be.

    3PointStudios_Brink_Maya_ar02_01.jpg
    Absolutely! it jes makes modeling easier!
    Switching from patch modeling nurbs in poweranimator to polymodeling in mirai was probably the single most influential technical advancement I have ever experienced. Namely because I could temporarily add an ngon with complete abandon not slaved to an all quads technology restriction. Hearing 3d Application battle whining about how much Maya or Max sucks makes me wonder if they would feel the same way if winged edge freedom was just added today?
    ( everything else just seems like extra gravy... nice but the revolution already happened! whats there really to complain about? )

    Even the ngons that will cause topology artifacts are golden!
    Because they allow you to build charming localized detail when and wherever you need it at the very beginning stages of volume and silhouette building.
    Seems like some modelers sweat the quads way to early in the process. ( when u r going to clean re-topology in the end anyway? )
    Why waste the time and energy worrying about quads when the freedom of n-gons is a gift? ( u can even begin edge flow right away when terminating on inconspicuous areas with n-gons can be sweated over at the end when the awesome has already been hashed out )

    btw thanks Earthquake...
    That gun in addition to the newb tube and under over clip is my favorite weapon in any game!



    Another oldie: ( sadly 14 year old CG history is getting harder to raise from the dead even on the wayback machine ) :(

    In praise of 5 sided polys ( Don't worry be happy )

    capture11.jpg
  • Blaizer
    Offline / Send Message
    Blaizer polycounter
    Well i readed this:
    When you look at a highly tessellated model it's generally understood that it will be vertex processing heavy...
    ThinTrianglesNoAA.png
    ...The number along the x-axis is the vertex count around the circle and the y-axis is frames per second.

    He starts with a "circle" of 48 edges and he increases the vertex count via tessellation. What i read is the impact of perfomance of the shader with one method of triangulation for a mesh with circular shapes. This is also dependant of the algorithm as far as i know.

    A cylinder with 16 sides or 32 won't affect the fps if their cap is triangulated like in the A example.

    According to him, the "max area" type offers the best perfomance. And he didn't say which method of tessellation was used.
  • WarrenM
    Autocon wrote: »
    For in engine game assets of course use only quads and tris. Some engine will subdivid your ngons for you, but some wont and can give you undesired smoothing/normal issues.

    Surely you mean tris. Importing quads into a game engine is just begging for a quad to get divided in the other direction and give you a smoothing/normal map error. :)
  • AtticusMars
    Offline / Send Message
    AtticusMars greentooth
    coots7 wrote: »
    Don't suppose anyone has actually tried to reproduce this?

    I tried to benchmark it in UE4 but trying to import a 1600 vert fan just causes UE4 to hang.

    Edit: Not saying it's wrong, intuitively it makes sense especially on large discs

    I'm just wondering how practical it really is to actually optimize this way, to me it would seem that unless you're doing something horribly wrong with your scene you'd never actually see the benefits of tesselating a disc this way...
  • rogelio
    Offline / Send Message
    rogelio greentooth
    Warren yep you are correct. Did some general tests, the results were that in studio. I guess I need to finish the baking docs at the studio... :/
  • EarthQuake
    B is generally going to give you the most reliable baking behaivor, which is why I favor it.

    The max area thing, I won't argue that using large polygons like that is technically a little faster or more efficient, however, doing benchmarks with a bajjillion cylinder caps triangulated in that way is simply not anything close to a realistic use case. Fact of the matter is no modern game engine/project is going to have that sort of thing be anything close to a bottleneck, so in real use, you're looking at performance differences that are absolutely miniscule.

    So the tiny performance benefit does not outweigh the pain in the ass that it is to manually triangulate your edge caps like that, and the bake skewing issues you're likely to see with that method.
  • vargatom
    While polycount is about games stuff, I'd still like to make a few notes. Disclaimer: I'm the character modeling lead at Digic and we build assets for CG, using subdivision at render time, so a lot of this is probably irrelevant to games today but might become important in a few years.

    As others have already mentioned, anything that needs to go into zbrush for sculpting should be all quads. 5+ sided polygons are broken down to random triangles and quads which is already something you don't want. Another issue is that "pole" vertices, ie. vertices with more or less than 4 edges, can create problems while sculpting, especially when using the Smooth brush.

    Also, when you're working with blendshapes for facial animation, a lot of the deformation is about sliding the skin around on top of the underlying bone structure. This works much better if your mesh is all quads (and has a good density) as you can easily use brush based tools like Nudge in Zbrush, or Edge constraints in 3ds max.

    Also, with CG work, most studios don't try to build rigs that work 100% of the time, as that'd be far too time consuming. Instead, the animated character is usually sculpted as a final pass, by baking all the deformations into a point cache; some studios use custom tools, for others there's Chronosculpt (although it is a very primitive tool unfortunately and it seems to be discontinued). A full quad mesh is preferred for this as well.

    And yeah there's Sullivan from Pixar, but let me point out that his entire body was covered with fur... And also, that model was made ages ago, right after Pixar introduced subdivision surfaces and they had very little experience with the tech at that time.

    Now on the other hand, ngons still have a place in the modeling workflow. With today's computers we can work with relatively high res models, for example our heads are about 30-50k quads and we model all the facial wrinkles so that we can control them with blendshapes. This means that the retopo workflow can and should rely on subdividing the mesh once (and then apply some final tweaks). Basically you build a model with about 1/4th of the target poly count and on that mesh, anything goes.


    But for hard surface stuff that you don't want to sculpt in zbrush, ngons, or rather, 5-sided faces, are of course perfectly fine.
  • throttlekitty
    Offline / Send Message
    throttlekitty ngon master
    EarthQuake wrote: »
    B is generally going to give you the most reliable baking behaivor, which is why I favor it.

    The max area thing, I won't argue that using large polygons like that is technically a little faster or more efficient, however, doing benchmarks with a bajjillion cylinder caps triangulated in that way is simply not anything close to a realistic use case. Fact of the matter is no modern game engine/project is going to have that sort of thing be anything close to a bottleneck, so in real use, you're looking at performance differences that are absolutely miniscule.

    So the tiny performance benefit does not outweigh the pain in the ass that it is to manually triangulate your edge caps like that, and the bake skewing issues you're likely to see with that method.

    Wasn't all that stuff written back when hardware was still experimenting with coming up with the best techniques? I remember all sorts of stuff about vertex cache optimization, tri stripping, type streaming, but never saw anything else after that. Now that the GPUS have grown bigtime, I am a little curious what tricks they use.
  • Neox
    Offline / Send Message
    Neox godlike master sticky
    vargatom wrote: »
    Another issue is that "pole" vertices, ie. vertices with more or less than 4 edges, can create problems while sculpting, especially when using the Smooth brush.


    while this is true, you can't avoid poles so where to put them is key, with 50k heads they are thankfully pretty small ^^

    However i hope you do know the alternative smooth mode that works much much better with poles in zBrush.
  • Mask_Salesman
    Offline / Send Message
    Mask_Salesman polycounter lvl 13
    Gawd I've yelled at so many peeps for using D...

    I'd go with B for Baking.
  • yodude87
    Offline / Send Message
    yodude87 polycounter lvl 5
    d is a killer. i used to use it tons when i was starting, then i took an arrow to my knee, and started using b
  • Sidney Eliot
    Offline / Send Message
    Sidney Eliot polycounter lvl 2
    The thing with ngons is, that they can always be easily removed by creating triangles and quads, and yes rerouting topology is the proper way of fixing ngons, but the point is that it's not hard to simply not have ngons in portfolio pieces, so just don't.
  • kanga
    Offline / Send Message
    kanga quad damage
    Wow, 2015 thread. Is that a record?
    Everybody probably knows by now, but in case you didn't:
    3ds Max/Zbrush: Proboolean + Dynamesh hardsurface workflow tutorial

  • sacboi
    Offline / Send Message
    sacboi high dynamic range
    Nope  :#

    I think I'd replied too an even older necro, not long ago  : p
  • Ruz
    Offline / Send Message
    Ruz insane polycounter
    If yuor tutors are not very open to debate , then maybe just suck it up and adjust the meshes after you have passed the course, 
    because you don't want to be 'that guy'.
    What's important at the end of the day is your portfolio, professors can go suck a big one :)
  • Eric Chadwick
    I model only with ngons.
  • kanga
    Offline / Send Message
    kanga quad damage
    Some are born great, some achieve greatness and some have ngons thrust upon them! B)
  • Neox
    Offline / Send Message
    Neox godlike master sticky
    Epicrex said:
    The thing with ngons is, that they can always be easily removed by creating triangles and quads, and yes rerouting topology is the proper way of fixing ngons, but the point is that it's not hard to simply not have ngons in portfolio pieces, so just don't.

    too dogmatic, a well used Ngon workflow is way better than a shitty quad only attempt.
  • almighty_gir
    Offline / Send Message
    almighty_gir ngon master
    Neox said:
    Epicrex said:
    The thing with ngons is, that they can always be easily removed by creating triangles and quads, and yes rerouting topology is the proper way of fixing ngons, but the point is that it's not hard to simply not have ngons in portfolio pieces, so just don't.

    too dogmatic, a well used Ngon workflow is way better than a shitty quad only attempt.


  • Spoon
    Offline / Send Message
    Spoon polycounter lvl 11
    Neox closed the thread.
  • Ruz
    Offline / Send Message
    Ruz insane polycounter
    ermm, no he didn't :)
  • gnoop
    Offline / Send Message
    gnoop sublime tool
    That quads vs  ngon  is a thing from sub-d modelling .    Honestly I don't understand   why  people   still use  it  when  every shading issue is perfectly and quickly  fixable by editing  vertex normals .    Or   just by  using CAD  modelling from the start .    Even Zbrush re-mesher  does  a decent job now.     The whole thing  looks like a sport  still being taught for some uncertain reason.

     I already forgot  when I did  Sub-D  last time.     All those extra edge loops the shading  is relying on  just make you  extra problems with LODs .  
     For hard surfaces you do hard edges  and edit normals  . Who cares  quads or n-gons since you put triangulate modifier in the and anyway. 

  • pior
    Offline / Send Message
    pior grand marshal polycounter
    gnoop said:
    Honestly I don't understand   why  people   still use  it  when  every shading issue is perfectly and quickly  fixable by editing  vertex normals .    Or   just by  using CAD  modelling from the start .    Even Zbrush re-mesher  does  a decent job now.     The whole thing  looks like a sport  still being taught for some uncertain reason.

    This is a very subjective take, based on your own experience only. Now of course everyone is entitled to their opinion, but such a bold claim here is bordering on misinformation.
  • Joao Sapiro
    Offline / Send Message
    Joao Sapiro sublime tool
    " I already forgot  when I did  Sub-D  last time.     All those extra edge loops the shading  is relying on  just make you  extra problems with LODs .  
     For hard surfaces you do hard edges  and edit normals  . Who cares  quads or n-gons since you put triangulate modifier in the and anyway. " 

    I wish more artists i work\ed with didnt, because it sure its a slap of reality when they have to find out they lack basic subd knowledge on workflows where clients rely on those still.
  • Blaizer
    Offline / Send Message
    Blaizer polycounter
    necro thread! U.U'

    I use n-gons (pentagons) and triangles. A proper subdivision modeller has to use them when they are needed, including edge weights.

    To rely on zbrush remesher because it gives us a good but dense mesh is a fail in all senses. Subdvision modelling is all about topology and clean meshes.

    Don't be lazy, learn proper subdiv modeling... and you'll make models faster. Don't ignore the basics, just an advice!
  • iam717
    Offline / Send Message
    iam717 interpolator
    Bout zbrush, i got tired of the "spindle" like topology (infinite loops if you select rings, hated it) it created, it doesn't help remove rings(+) guess people got away with clicking remesher and calling it a day?  Does it still spindle loop?

  • Neox
    Offline / Send Message
    Neox godlike master sticky
    iam717 said:
    Bout zbrush, i got tired of the "spindle" like topology (infinite loops if you select rings, hated it) it created, it doesn't help remove rings(+) guess people got away with clicking remesher and calling it a day?  Does it still spindle loop?


    it does. not as often but it does. it gives you sculptable topology, but i wouldnt call it production ready by any means.
  • Neox
    Offline / Send Message
    Neox godlike master sticky
    Blaizer said:
    necro thread! U.U'

    I use n-gons (pentagons) and triangles. A proper subdivision modeller has to use them when they are needed, including edge weights.

    To rely on zbrush remesher because it gives us a good but dense mesh is a fail in all senses. Subdvision modelling is all about topology and clean meshes.

    Don't be lazy, learn proper subdiv modeling... and you'll make models faster. Don't ignore the basics, just an advice!

    <3
  • cookepuss
    Offline / Send Message
    cookepuss polycounter lvl 11
    The zombies have risen. :p

    I see ngons as being valuable, but mostly as an intermediate step. Ultimately, models are just going to get triangulate or converted to quads if for no other reasons than to promote clean topology and avoid non-manifold geometry. Nobody wants their models or textures distorting in unpredictable ways.

    Ngons are good for showing a model off, especially archvis or CAD stuff. However, for everything else - as a matter of personal preference - I try to avoid them for anything outside of the WIP stage.
2
Sign In or Register to comment.