How do I render AO of superimposed 2d textures with transparency in Mental Ray?


#1

Hello everyone!

I have a scene composed mainly of superimposed 2D textures with transparency attached to simple polygon planes (think of it as a “flipbook”). It works just fine when I do a normal render, but for some reason Mental Ray has a hard time recognizing their transparency channel when I try to render their AO, rendering only their geometry.

Determined to solve my problem I followed two methods, each with their own problems, mainly whith superimposed textures.

Method1 - http://www.pixelcg.com/blog/?p=698
Method2 - https://www.youtube.com/watch?v=Bcqfd6jeSzo

With the first method it would work fine whith lonely polygons, but the superimposed ones show a black bar in the intercepted area, like so:

https://gyazo.com/424fb9103edc03f226d7dcf0f2132804

I believe it’s because the superimposed polygons aren’t influenced by the same surface shader as the ground and foreground (If I did it would conflict with itself and wouldn’t solve the problem)

With the second method the problem isn’t as serious, but far from acceptable as it still renders the geometry’s shadow instead of just the texture’s:

https://gyazo.com/1bfc6b673ad7c1d7aac9bf64aa45d39a

Does anyone know how to solve this?


#2

Have you seen this one ?
http://forums.cgsociety.org/showthread.php?t=958040


#3

Wow thanks! I haven’t seen this one yet. I’ll check it out as soon as I get the chance.