How to BAKE AMBIENT OCCLUSION MAPS in Blender

Поділитися
Вставка
  • Опубліковано 27 січ 2025

КОМЕНТАРІ • 87

  • @driveri1435
    @driveri1435 Рік тому +11

    I'm not going to lie. Out of all of the videos I've seen, yours was the best one. Very clear and direct without missing any steps. Thank you for this amazing video.

    • @UnrealMatter
      @UnrealMatter  Рік тому

      Thank you so much, it means a lot to me when my viewers like the content. :)

  • @Azaa-c1r
    @Azaa-c1r Рік тому +2

    dude ive been trying to find ao mapping tutorials and all others were BS. thank you for making a legit tutorial with straight forward steps

    • @UnrealMatter
      @UnrealMatter  Рік тому +1

      Thank you so much for your comment :) I really like to see when people are happy with the tutorials

    • @Azaa-c1r
      @Azaa-c1r Рік тому +1

      @@UnrealMatter no problem dude , your a freaking life saver

  • @Kuroyza
    @Kuroyza 2 місяці тому +1

    Perfect ♥Just what I was looking for, thanks

    • @UnrealMatter
      @UnrealMatter  2 місяці тому +1

      @@Kuroyza You're welcome! And thank you so much for watching :)

  • @queworldwow6262
    @queworldwow6262 Рік тому +4

    Thank you so much! Finally I can understand how and for what they're made

  • @taddidio3215
    @taddidio3215 2 роки тому +4

    Great tutorial, fast and to the point

  • @HipBlooD
    @HipBlooD 7 місяців тому +1

    Great Tutorial and exactly what i was looking for. Thank you!

  • @jklappenbach
    @jklappenbach 8 днів тому +1

    Thank you! You're awesome!

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

    Thank you for this tutorial, it was just what I needed.

  • @cesarlorenzon2708
    @cesarlorenzon2708 7 місяців тому +1

    Thanks! Was very easy with this tutorial

    • @UnrealMatter
      @UnrealMatter  7 місяців тому

      You're welcome! Thank you for commenting :)

  • @youshimimi
    @youshimimi Рік тому +1

    Easy to follow and very helpful. Thank you!

  • @123forafurry
    @123forafurry 2 роки тому +2

    Thank you this was way better than the other ones I saw

  • @doctorfear9241
    @doctorfear9241 Рік тому +1

    thanks a lot man, helped me very much

  • @enriquefuster4971
    @enriquefuster4971 Рік тому +1

    Thanks man. Super usefull.

  • @jordanepellerin6684
    @jordanepellerin6684 Рік тому +2

    you are awesome dude ! :)

    • @UnrealMatter
      @UnrealMatter  Рік тому

      Thank you so much, I really appreciate your comment :)

  • @momoguyz7150
    @momoguyz7150 Рік тому +1

    thanks this was really helpful

  • @MLL-oh3lx
    @MLL-oh3lx Рік тому +1

    Thanks for you awesome guiding

    • @UnrealMatter
      @UnrealMatter  Рік тому

      You're welcome. I really appreciate your comment :)

  • @avi-p4d7s
    @avi-p4d7s 9 місяців тому +1

    thanks for your help 😀😀😀

  • @NihalMente
    @NihalMente 3 дні тому +1

    Hi thanks for the tutorial. I've imported an fbx file and apply a blender kit texture to my model. I tried to add an ambient occlusion map to existed map system of the material but in the bake step Blender gave an warning message says that '' object X is not a mesh '' what should I do

    • @UnrealMatter
      @UnrealMatter  3 дні тому

      @@NihalMente Hello, since you used a custom setup I can't say much about that but the error suggests that you don't have a mesh with geometry. What you could try to do is going in the Viewport Tab to Object->Convert to->Mesh. Other than that I don't know what the cause could be

  • @cook.with.dianaaa
    @cook.with.dianaaa Рік тому +2

    Thank you so much!

    • @UnrealMatter
      @UnrealMatter  Рік тому

      You're welcome, thanks for the comment :)

  • @Sigouss
    @Sigouss 4 місяці тому +2

    one question. I set GPU compute, but in tasks manager i se CPU loaded 100% instead of GPU? Have 10700f & 3080 10gb

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

      @@Sigouss Set your scene to GPU compute. Then before rendering set your scene to wireframe mode. And also use CUDA. The scene preview uses CPU, thats why you could have high cpu usage. Setting the scene to wireframe before rendering also lowers render times a lot. Hope that helps :)

  • @an1_mate
    @an1_mate Рік тому +2

    super thx!

  • @justjoe7517
    @justjoe7517 Рік тому +1

    Thanks man.

  • @astralstormgamestudios1259
    @astralstormgamestudios1259 9 місяців тому +1

    nice!

  • @ElvenBubblegum
    @ElvenBubblegum Рік тому +1

    Thanks for the guide! Is there a way to increase detail? My AO looks kinda shit because its not detailed enough and you can see the dots

    • @UnrealMatter
      @UnrealMatter  Рік тому +1

      You're welcome! Make sure your model doesn't have duplicate vertices, all normal have the right direction and you need to have your model unwrapped with a 0.05 island margin so the uv edges don't overlap. Then try to increase your texture size if you are using something small. Also increase the overall render samples. Make sure there aren't any other objects around the one your baking because these will have an influence on the bake. Normally you should have a very clean bake with this method. Otherwise plug a diffuse bsdf in the material output and with a mix node multiply a pure white color with an ambient occlusion node (increase the samples to a high vale) and set the bake type to diffuse instead of ambient occlusion. Then see which bake method is bettter

    • @ElvenBubblegum
      @ElvenBubblegum Рік тому +1

      @@UnrealMatter Thank you for the answer! I'll try it out!

  • @JetBomb12
    @JetBomb12 Рік тому +1

    Thanks for the tutorial, I have a question what if i already had ambient occlusion that had noise texture plugged into it how do i preserve the noise texture? or do i just add it after i bake

    • @UnrealMatter
      @UnrealMatter  Рік тому

      You can keep the noise texture. Make sure you have a mapping and texture coordinate node that go into the noise. You can do that by activating "node wrangler" in the addons and pressing ctrl+t on the noise node. Then you can set your bake type to AO and bake the principled BSDF or set it to diffuse and only bake a diffuse BSDF with the AO setup. You can choose what you like the most. But everything should give the same result.

  • @cook.with.dianaaa
    @cook.with.dianaaa Рік тому +1

    Such a simple video, thank you once again! I can't export GLB file with mixRGB node. Maybe you have any suggestions on that? Thank you!

    • @UnrealMatter
      @UnrealMatter  Рік тому

      Hey, thank you for your comment. I just tried it in Blender 3.4.0 and it works. I have never exportes as .glb. I'm sorry but I don't know why it doesn't work. Maybe because it is a node that is only available in Blender?

  • @capitanstyx9998
    @capitanstyx9998 Рік тому +1

    i have an error"Baking map saved to internal image, save it externally or pack it"

    • @UnrealMatter
      @UnrealMatter  Рік тому +1

      This is not an error, it means the baked image is only temporarily saved and when you close blender it will get deleted. The message only recommends you save the image on your hard drive :)

    • @capitanstyx9998
      @capitanstyx9998 Рік тому +1

      @@UnrealMatter thanks alot, it's very strange because I don't see any changes in the image itself, it's still just black

    • @UnrealMatter
      @UnrealMatter  Рік тому

      @@capitanstyx9998 If its black then you maybe did not select the image when baking, the node has to be active (clicked on) to be properly baked. Also maybe you forgot to save it instantly and then it can turn black because the data will be deleted as i said. Hope this helps

    • @capitanstyx9998
      @capitanstyx9998 Рік тому

      @@UnrealMatter I wrote the code in Python, but that doesn’t help either, thanks anyway, I’ll leave the code here (you just need to configure the rendering before applying the code)
      import bpy
      obj = bpy.data.objects.get("Cube.001")
      bpy.context.view_layer.objects.active = obj
      bpy.ops.object.mode_set(mode='OBJECT')
      if not obj.data.materials:
      mat = bpy.data.materials.new(name="AO_Material")
      obj.data.materials.append(mat)
      else:
      mat = obj.data.materials[0]
      ao_texture = mat.node_tree.nodes.get("AO_Texture")
      if not ao_texture:
      ao_texture = mat.node_tree.nodes.new(type='ShaderNodeTexImage')
      ao_texture.name = "AO_Texture"
      ao_texture.location = (0, 0)
      image_texture = bpy.data.images.new(name="Untitled", width=1024, height=1024)
      ao_texture.image = image_texture
      bpy.ops.object.bake('INVOKE_DEFAULT', type='DIFFUSE')
      image_texture.filepath_raw = "//Untitled.png"
      image_texture.save()
      print("Ambient Occlusion baked and saved to Untitled.png")

  • @sillex0
    @sillex0 Рік тому +1

    Thank you for the great video. But I have a problem. My ambient occlusion is not pretty. The shades are pixelated. How can I change this? I would appreciate an answer.

    • @UnrealMatter
      @UnrealMatter  Рік тому +1

      This can be due to multiple reasons.
      1. Check the resolution of your texture and make it at least 512 by 512.
      2. Your model has to have good geometry, no overlapping faces/intersecting edges and it should be unwrapped with no overlapping UV's.
      3. Make sure you don't bake the direct lighting.
      4. Increase your light paths count and sample count

    • @sillex0
      @sillex0 Рік тому +1

      @@UnrealMatter ty for your answer :). What Do you mean with light pats? Sry..Englisch is not my first language.
      And is it possible that my Computer is to old for this, to make the texture nice and clear?

    • @UnrealMatter
      @UnrealMatter  Рік тому +1

      @@sillex0 No it is not about the computer, every computer gives the same output, just with different render times. There is a setting called light paths, it is in the Render Options Tab. Try to increase those values

    • @sillex0
      @sillex0 Рік тому +1

      @@UnrealMatter ty, i will try that :)

    • @sillex0
      @sillex0 Рік тому +1

      @@UnrealMatter I've tried everything that's in light path one by one, but nothing changes.
      I saw that the object itself is also a bit pixelated. :/

  • @theologicaldarkweb2695
    @theologicaldarkweb2695 Рік тому +1

    How many samples did you use? Did you adjust the distance or intensity?

    • @UnrealMatter
      @UnrealMatter  Рік тому +1

      I don't quite understand because I didn't use the Ambient Occlusion node in this process. I just set the bake type to ambient occlusion.
      Another way would be to get a diffuse bsdf and multiply a pure white color with an Ambient Occlusion node and then set the bake type to diffuse and bake. If this is what you mean I would leave the samples of the AO at 16 and the distance at 1

    • @theologicaldarkweb2695
      @theologicaldarkweb2695 Рік тому +1

      I think I figured out a settings that worked. Thanks!@@UnrealMatter

  • @prime-workshop-bd
    @prime-workshop-bd 9 місяців тому +1

    How can i export this texture ?

    • @UnrealMatter
      @UnrealMatter  9 місяців тому +1

      You can bake the Ambient Occlusion as a diffuse. I made a tutorial on baking if you need some help :)

    • @prime-workshop-bd
      @prime-workshop-bd 9 місяців тому +1

      ​@@UnrealMatter yes brother, please make a tutorial about that, ami new in blender

    • @UnrealMatter
      @UnrealMatter  9 місяців тому

      @@prime-workshop-bd I already made one. You can find it on my channel! :)

    • @prime-workshop-bd
      @prime-workshop-bd 9 місяців тому +1

      @@UnrealMatter I can't find the video. It would be great if you could give the video link

    • @UnrealMatter
      @UnrealMatter  9 місяців тому

      @@prime-workshop-bd ua-cam.com/video/ChxGAcKO92Y/v-deo.htmlsi=ipdmGlrK30qvwyxj

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

    Man mine is allmost completely black. What did I do wrong?

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

      @@larnus2548 Hello, make sure your normals are displayed correctly. You can do this by going to edit mode. Then mesh -> normals -> recalculate outside. Then make sure you got no duplicate vertices. You can do this by going to edit mode and then pressing A -> M -> merge by distance. Then you have to make sure you got a good UV map. With these steps and if you followed the video correctly you should get a clean ao map :)

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

    Does it work on evee?

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

      Hello, Eevee has built in ambient occlusion for the whole scene which you can activate. In Eevee you can't bake the ambient occlusion itself since eevee doesn't have the bake option. What you can do is bake your map in cycles and then use it in eevee :)

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

      @@UnrealMatter thank you🙂

  • @snook-official
    @snook-official Рік тому

    Is it possible to export the map so it can be used else where?

    • @UnrealMatter
      @UnrealMatter  Рік тому +1

      Yeah, you can just save it, for example in the UV Editing Tab :)

  • @tropical2173
    @tropical2173 Рік тому +2

    There is no Mix RBG anymore. for me only apears Mix or Mix Shaders, what can i do?

    • @UnrealMatter
      @UnrealMatter  Рік тому +1

      It's the Mix Node. From there you can select Math or Color. You need to choose color :)

  • @simonlu5141
    @simonlu5141 Рік тому +1

    Did you have to select high to low or did you just bake of the low poly model?

    • @UnrealMatter
      @UnrealMatter  Рік тому +1

      Hello, you don't have to bake selected to active. This is the method with only one model.