Actor not Rendered

Hey Guys,

I am working on a special sight for my main char. It sould be similar to the ability of “The Last of us”
If the player presses a button he is able to see the silhouettes of all enemies around him, even through walls.
I use SetRenderCustomDepth(true); to achive this effect, which works perfectly fine.
Except for one situatione, if the enemy char has never been rendered before. If my players has seen the enemy and moves around an object so that the enemy is hidden by this object, it will work.
If I start a new game and place my char in front of the same object, with the same enemy behind, it will not work until I walk around and the enemy has been rendered once. From then on it will work fine.
Any ideas how I can force the engine to set the enemies close enough to my char in that mode right away?

Cheers

Hey ,

you can try to increase the “Bounds Scale” in the Rendering settings of your Mesh.
Even if it works, ist’s rather a dirty workaround, because it reduces performance an shadow quality.

Take a look at this blog entry, they try to achieve a similar effect.

Gruß Oli :wink: