Jump to content

SSAO Bake Blender


ian
 Share

Recommended Posts

  • 2 weeks later...

Hi Ian!  No replies yet, huh?  Sorry.

Let me ask a few questions.  Let's pretend you DID use this Blender method to create a baked SSAO map.

Where would you place that texture... on a BJS material... to make it work properly?  .AmbientTexture?  (we should try this, just for fun)  :)

Or does it apply to the whole scene? 

I have no idea.  The only thing I have ever seen in BJS... is the dynamic SSAO produced this way.  

I ask because... perhaps... if you make the SSAO baked texture using the Blender "Saving Baked Ambient Occlusion Maps" way... then you could include that URL in the material.ambientTexture... and that would be included in the .babylon file.  But not the texture itself, of course.  .babylon files never (rarely?) carry actual textures. 

It could also be loaded with an assetsManager task.

But, you want this baked SSAO map to apply to the entire scene, correct?  IF SO... how/where to apply it?  hmm. 

I think it would require a custom post-processing shader... using your pre-made occlusion map... as a "refmap" for a sampler in the shader.  I have no idea how to do this, but I once used a refmap for a RefractionPostProcess, and you can easily see the refmap active in the scene.

Possibly, our current SSAO system COULD BE updated/modified... to use a refmap image, if one is provided by the programmer. 

Sorry that I couldn't be more help.  Maybe others will comment, soon.

Link to comment
Share on other sites

Hi, 

Baked SSAO maps or light maps from Blender or 3D max can be used in Babylon very easily. Just apply the map as material on one of the channels (Ambient, Emissive). I don't remember which channel we are applying. But  we are using it extensively. But it is working fine. 

 

Link to comment
Share on other sites

What's you want is not SSAO, 'cause SSAO is a post-process :) You just want to set a lightmap, where your lighting is just ambient occlusion.

Example in Blender, texture panel, assuming you have set an UVmap channel, generally one dedicated to lightmap :

vVzJ3Af.png

In 3dsmax you have to link it to ambient channel too.

[edit] like dsman says, yo can put it to emit channel if you want, but you will not have dynamic lighting on your object then [/edit]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...