Home Technical Talk

High to low poly baking, I'm in need of some direction.

So I have decided to try and improve my understanding of baking normal detail into things as I feel it's something I need to understand to improve as an artist. I have spent the last day or two scrolling by different discussions and testing different things, but to no avail. I feel as though a little guidance will help me research in the right zones.

I have a simple gear, high and low poly versions. And with all the bits I learn from the forums the normal map gets better and better. Although, I know for a fact that I'm missing some fundamentals which are going to be causing me most of these problems. So I would appreciate any direct feedback, so that I could direct my research into obvious areas that are lacking.

The meshes are built in Max, and baked in Substance Painter.
I have a low poly which is here : 
And I have the high poly which is here : I have tried altering smoothing groups on the low poly, changing some settings in Substance, increasing the size of the unwraps and maps. The only real result I have gotten is from stretching one of the inner rings to the full size of the UV space to test if it would change anything. But obviously I can't have just one super high resolution ring and low for the rest.

Here are the UV's :  And here are examples of the bakes, one with no normals applied: And another with the normals applied: 
I get a feeling the issue is coming from me lacking a basic piece of understanding which has slipped by me, and would appreciate some help. 
I just don't see much of a difference being made when adding the normal map on these edges, and with that in mind wonder if the normal map is worth doing, or if i'm just making some mistakes which hinder the quality of it.
I understand the principle of adding screws and pieces via normal maps, and making sure the edges are not 90 degrees when baking, but using normal maps to smooth out edges and making it so someone can use a low poly model with high poly edges etc, is baffling me.

Thank you, if any more details are needed i'll make sure to post them.

Replies

  • musashidan
    Options
    Offline / Send Message
    musashidan high dynamic range
    Can you post the max file and I'll take a look?

    There is very little difference in your low/high chamfering and this is what the bake is picking up. Also, baking 90 degree corners is fine.
  • KurtR
    Options
    Offline / Send Message
    KurtR polycounter lvl 7
    If you are exporting with turbosmooth, in the export option do not click on the option for turbosmooth. It's weird, but its supposed to be off for some reason. Also make sure you have set it to "by mesh name" in SP and named them correctly with the high and low suffice.Especially the turbosmooth export option tripped me off for a long time. Might be this that messing it up.
  • RyanHarleeJones
    Options
    Offline / Send Message
    @musashidan hopefully this link works for you to access! :blush:  https://drive.google.com/file/d/1xmIU8hQTV6sn9AcLVMuEelKxnp5i37ZA/view?usp=sharing

    @KurtR Ahhh, yeah! Luckily I make sure not to pop that on when exporting, I just have the turbosmooth in the stack before collapsing it. I might try the mesh name option again, since I tried that before a lot of changes, might be worth the look again, thanks! :smiley:

  • musashidan
    Options
    Offline / Send Message
    musashidan high dynamic range
    @RyanHarleeJones I'll take a look as soon as I get a chance.

    @KurtR 'by mesh name' is only used for explode baking. It is redundant for a single mesh bake like this.


    I've just looked at the file. The high-poly bevels are WAY too tight. Your low/high edges are practically identical. There is no info for the bake to pick up. Thankfully you've modeled the high-poly non-destructively by adding your support loops using an Edit poly mod. You should be making use of an even more non-destructive workflow by using the Chamfer modifier.

    When modeling high-poly for baking you should always exaggerate the beveling somewhat more than it would be in the real world. This is to help with baking and mip-mapping. If the bevel is too tight it won't read well, will only use a few pixels, and will completely fall apart when mipped.
  • RyanHarleeJones
    Options
    Offline / Send Message
    @musashidan Thank you, appreciate it! Any feedback or direction in case i'm taking an incorrect approach etc is welcome. :smile:
  • musashidan
    Options
    Offline / Send Message
    musashidan high dynamic range
    Another other thing to consider is the low amount of segments on the circular cutouts on the low poly. These won't read well in either the silhouette or the bake. The big difference between the curve of the low and the high will lead to wavines in the bake. See the sticky thread pinned at the top call 'who put waviness in my normal map?' for a much better visual explanation.
  • SonicBlue
    Options
    Offline / Send Message
    SonicBlue polycounter lvl 10
    Since the Highpoly is based on the Lowpoly, I've used this picture, I would remove the highlighted edges, as they are preventing the circular holes to look correctly when subdivided.

    Some are easy to fix, other needs a re route or an update in the cylinder resolution, the bottom and top holes are too close to the centre hole to re route the edges.

    This is valid to the outer cylinder too, you have to compensate for the extra edges you've added.

  • musashidan
    Options
    Offline / Send Message
    musashidan high dynamic range
    Or you could just remove all those blue edgeloops and not worry about re-routing the topo. Chamfer mod will take care of this.
  • Mark Dygert
    Options
    Offline / Send Message
    Make sure when you bake that your low poly is set to be completely smooth.
    3dsmax, everthing in one smoothing group.
    Maya, every edge set to smooth.

    Without it smooth, substance will create all kinds of hard edges that don't look right. Also triangulate your model before bringing it into substance.

    The low poly could be optimized, there are a lot of polys that aren't doing too much. They can go, or you can put those edges into rounding out the cylinders so they better match the high poly and capture better. Same tri count, better bakes, win win.

    Those are some fugly UVs, you could use the space in a much more efficient way. If I get some time I'll grab the model and show you what I mean.

    Also, the bevels on your high poly are SUPER tight which makes for some really sharp corners that aren't going to bake very well. You might want to relax those a bit. The Turbo Chamfer script is great at controlling that.
  • musashidan
    Options
    Offline / Send Message
    musashidan high dynamic range
    I've took the liberty of cleaning up your meshes a bit, and baked it down in SP.
    Note the difference between the amount of chamfering I can get on the pieces that stick out and all the inner bevels around the circles. This is down to the design of the mesh. When building with baking in mind you would know to allow more room to allow for beveling. I've removed all the unnecessary edgeloops that you had around all the circular parts and there was still not much room for chamfering. I didn't have time to modify the mesh further and I also thought it would be good for you to see the difference in beveling results. I also had to move all the circular cutout parts around to allow space between them for the same beveling reasons.

    Here is the low-poly before triangulation(which I add non-destructively with a 'turn to poly' modifier) and with a single smoothing group applied

    And here some quick optimised UVs that I redid. All the parts on the back are deleted and can either be attached back together or stacked and offset before baking. This saves a huge amount of UV space and also will never be seen at the same time as the front so should always be stacked. Also note the straightened UV islands. Always straighten when you can as this combats baking aliasing and is much easier to pack.


  • RyanHarleeJones
    Options
    Offline / Send Message
    @SonicBlue Thanks for the feedback! Yeah, those extra loops highlighted was my attempt at trying to up the verts available on the circles so they were less jagged, it didn't really work out too well, so i'll get to removing them. :wink: 

    @Mark Dygert All great tips, thank you very much! So, when smoothing it all into one smoothing group for baking, what would I do if I wanted those custom smoothing groups then? Since I know that can effect the appearance of the model quite distinctly, and it's a shame to always pop on a single smoothing group if it's not how I want the model to read. I'll be interested to see on the front of the optimised UV's, as there's obviously some knowledge missing on my behalf. Thanks!

    @musashidan Wonderful, thank you! I'm a visual learner, so it's much easier for me to see with reference. The UV'S without a doubt, are much better! When you say "deleted and can either be attached back together or stacked and offset before baking." Are you referring to actually deleting the back portion of the mesh? If they are deleted, then how would I stack the UV's since there wouldn't be any for the deleted portions right? Am I also right in assuming when you say stacking, you mean that the portions of the mesh which match you lay on top of each other, but then by offsetting you mean moving it out of the initial 1-1 UV space, to the the side to eliminate lighting errors? 
    And lastly, the optimised UV Mesh, the teeth of the gear, because some lines have been removed, are they not NGons now? 

    Thank you very much for all the help everyone, it's all very helpful so far and the first time I have used a forum, so far so good! :smile:
  • musashidan
    Options
    Offline / Send Message
    musashidan high dynamic range
    I just deleted the back instead of stacking/offsetting/baking/restacking as I was short on time. The offseting of stacked(identical) UVs is avoid z-fighting during the bake(the ray projection is confused by UV islands that share the exact same space) So the stacked UVs are temporarily offset to an adjacent UV tile>baked>set back to stacked. This can also be done with elements that are not contiguous on a model. So if you have many screws/bolts, for instance, you would just bake a single one and then clone the geo element around the model and the UVs will automatically be stacked.

    As for the single smoothing group(as I've shown above in the middle image) this is required for a MikkT synced/averaged bake. Don't be concerned about what it looks like in the viewport(which can be non-destructive with a smooth modifier) The normal map will work its magic.

    N-gons are essential in my hard-surface baking workflow, both for the high and low poly. Low will be triangulated before it's shipped to baking/engine.

    High will be subdivided and all N-gons are automatically turned to quads.

    Spread the word.......N-gons are our best friends.....
  • Mark Dygert
    Options
    Offline / Send Message
    @Mark Dygert All great tips, thank you very much! So, when smoothing it all into one smoothing group for baking, what would I do if I wanted those custom smoothing groups then? Since I know that can effect the appearance of the model quite distinctly, and it's a shame to always pop on a single smoothing group if it's not how I want the model to read. I'll be interested to see on the front of the optimised UV's, as there's obviously some knowledge missing on my behalf. Thanks!
    The only smoothing that really matters, is the high poly. The low poly smoothing is meant to be overridden with the normal map, so it can be a nasty looking piece of trash, that's the point. When you separate the smoothing groups it creates seams that cause all kinds of problems, especially in Substance, it can really throw a monkey wrench into your generators, the normal maps and cause paint problems, gross...


    Like musashidan said, n-gons are great, but be sure to triangulate your low poly model, especially before you bake and ESPECIALLY before you take it into Substance. Substance refuses to render any poly that has more than 2 triangles. Also, make sure to use that same triangulated model in the game engine, to make sure the triangulation matches. Software calculates the winding order of non-visible edges in different ways, if you leave it up to the app, you leave the door open to errors.

    So here is how I would approach this... (from the bottom up)

    Final mesh is 2,360 tris (your original was 4,722 tris) I put more polys into rounding out the holes, but ended up with an overall lower tri count.

    0) Each hole cylinder is 18 sided, you're original was all over the place, the center hole had more sides than the surounding holes and it made it difficult to route loops. If you stay consistent with the number of sides, it will be easier to work with. 

    1) ProBooleans, they are so nice, especially now that they clean up after themselves. Use instanced meshes so you can control a lot of holes with only a few meshes. This lets you make some pretty big changes, very quickly. You can use this workflow to crank out various test cases as well as create levels of detail models which can be a huge headache for game artists.



    2) The bool leaves behind a complex ngon that needs to be triangulated. Thankfully proBools are much cleaner than the old Bools... shudder... But you still need to handle the ngon intelligently.

    The best way I've found to do this is to toss the "edit poly" and then a "turn to poly" modifier on top of your stack. Turn on "show end result" and go into edge mode and click "create" to fix any odd triangulation. As you draw new edges, it updates the turn to poly modifier and shows you the triangulation. Usually you can get it all sorted out with just a few new edges created. When you're done, use the symetry modifier to mirror the front to the back.

    3) Make the high poly. Remove symmetry edges, Auto smooth with it set to 45. Turbosmooth it once with smoothing turned on, then apply "Turbo Chamfer". Your high poly is done. Export.

    4) Copy your high poly. Remove Turbo Chamfer. Set the smoothing to 1 group. Unwrap and you're low poly is done. Export with triangulation checked on in FBX or use the tried and true "turn to poly" modifier again set to max size of 3.

    5) Bake n' Paint in substance, export maps to UE4, import it all, hook up the textures and and call it a day.


    I gave each piece it's own unique space, but you could have stacked a lot of the UV shells, (with one more symetry modifier after you finished the unwrap, then offset one set of shells 1 tile to the right) but thought that might convoluted the process. We can talk about that later if you're interested.



    I attached the process file. Feel free to check it out, and poke around in each objects modifier stack. It will help you figure out how I went through it. If you have any questions let me know =)




  • RyanHarleeJones
    Options
    Offline / Send Message
    @musashidan / @Mark Dygert Thank you so much for all the information! 
    Especially all the visual reference and taking some time out to test some things for me, it's all fantastic! 
    I'm going to try put all this information to use with a few other models and get back to you result wise shortly. 
    Thank you again! More than likely I'll pop up with more questions after testing some stuff, all the best! :smiley:
  • RyanHarleeJones
    Options
    Offline / Send Message
    @musashidan / @Mark Dygert So I made use of the information you both sent me, and after a days worth of fiddling through this thread, and looking at the helpful Cog_Process.zip, I finally managed to get a result which works!
    No normal map applied:

    Normal map applied: 

    Already I have learnt a lot from the process you took me through and the tips you gave me!




    Just a follow up question, the whole placing a duplicated set of UV 's one grid space to the right, I did that for this model, hence the seam in the middles on the LP, what is the positives and negatives to this?  I understand it saves UV space allowing for a higher resolution texture, and also saves time by painting one area once instead of three times etc. Is there any other points to be aware of? Like I know that in Unreal lighting maps need to be created separately when stacking UV's to avoid light errors.

    Another question also, what classes as odd triangulation? When I was testing it for myself, I assume it's where there's too many narrow polys that will cause problems when insetting and such? I had a couple that when insetting overlapped and caused issues, so had to step back and add a few more edges to help. Is that the kind of thing i'm looking for? The edge adding in the Turn to Poly portion of the steps was where I spent the most time trying to understand the process.

    Once again, feedback is very welcome as I want to understand what I'm doing, rather than just replicating and forgetting the process.
    Thank you SO much, the help has been invaluable, I appreciate the time spent on helping me.
    I'll be trying some other assets with the same process which are not gears, and I'll probably find some complications then too, so brace yourselves! :wink:

  • Mark Dygert
    Options
    Offline / Send Message
    OOOOhhh nice results, so sexy. Nice work!

    Yep, that is the secret to stacking shells. Save space, Less work. 

    Yep that is odd triangulation. This ngon is pretty much a nightmare scenario so that part will take the longest, and that's I use the turn to poly trick so it handles most of the edges for you. You put it on top of the modifier stack and turn on "show end result" so you see the triangulation that it creates.  After a while you'll get a feel for where to place edges to get the best results. There are other tricks like using bridge or cap, they have a few options to deal with some stuff but they wouldn't really help that much in this case. In the vast majority of cases booleans won't be that hard to clean up, but dove into the fire, you got it figured out, and learned some stuff, so that was a win a.

    The Boolean trick with instances help you itterate quickly so you can find those problems like the close edges and work around them without having to manually tweak a bunch of edges or kill yourself redoing a bunch of work. 

    I'm glad you got it working! On to more problems ;)



  • musashidan
    Options
    Offline / Send Message
    musashidan high dynamic range
    Nice mate. It's great to see when somebody puts in the effort themselves and works through the problems. That's the attitude that will lead you on to success in this game. The ability to problem solve on-the-fly is an essential part of CG. Too many lazy f**ckers picking up CG who just don't put the work in and expect constant hand-holding and instant results with little effort.

    The ability to read the triangulation and resulting shading just comes with experience and lots of practice. It's that simple, really. Try to look out for too many edges with <5 degree angles that converge at a pole vert.

    Also, as I mentioned above, once you know what to look out for you will plan/design your low-poly with your high-poly in mind. Again. This just takes practice.

    Always work non-destructively. Make use of the modifier stack.

    Lightmap UVs are completely separate to your texture UVs and will always be on a different channel. Lightmap UVs must occupy unique space and should not be overlapped.

    Any more questions......we'll be here. :)
Sign In or Register to comment.