Jump to content

AO for animated meshes


Recommended Posts

I've been looking for that for a long time and I finally found a solution. As some of you may know the game engine doesn't support animated mesh with AO. So you have to make the Ao part of the texture. Problem is, no face should be overlapping, and therefore you must use only once the same texture space. This is easier if you have made the texture, but can be quite tricky if the texture is commonly used by all the buildings of the game. When you bake the AO you use a special UVMap usually with "Smart UV project" as shown on the image below :

post-12287-0-13076300-1407594114_thumb.p

Usually your UV looks like this :

post-12287-0-12811200-1407594283_thumb.p

With my trick they will look like that :

post-12287-0-88209000-1407594465_thumb.p

With the last one, you'll just have to open gimp paste the AO you baked with the same UV as multiply layer, and export. Nothing more.

So how to get this :

1. Unwrap your model with the default texture

2. Add a second unwrap layer with the first image parameters

3. Add a new material to your mesh using the texture.

4. Go to render and chose bake texture :

post-12287-0-93278500-1407594842_thumb.p

5. VoilĂ  ! Export your texture and do the final step in gimp.

Link to comment
Share on other sites

You forget to mention the incovenients of using this approach (which is why it isn't used in the game)

Smaller uv islands means less texels per polygon (less texture definition). That means much blurrier textures unless you use very big textures and one for each object, which the game will need to load in memory.

This approach is good for smaller entities that need to be animated or other cases where there are more benefits than the incovenients mentioned above

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.

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.

 Share

×
×
  • Create New...