So I am a bit stuck between an approach to my scene I am working on, I am planning on dropping my assets into UDK but I can't seem to figure out which would be better for the engine, real plant geo or alphas. I know alphas have been game standard for quite some time but I have been told that sometimes alphas take up more rendering time than the actual geo would.
I would assume in the case of a still frame render actual geo would be the way to go but for a large game scene using alpha cards would be better?
Would be great to get some feedback
Thanks for reading!
Commence interesting topic conversation in
3
2
1
NOW!
Replies
The big issue with tree construction and modeling is that in order to hit the same number of leaves/branches that an alpha card-modeled tree uses, you would probably be hitting hundreds of thousands if not millions of triangles per large tree.
Even in a case where you managed to cut the rendering cost down to the same with either solution, you then run into the issue of animation. Most foliage in games nowadays has some sort of animation, whether it's wind blowing or simple physics interactions or something more complex. In those scenarios, you're moving verts, and a tree with 100k verts is going to be 10x as expensive to animate as a tree with 10k verts.
typically people caution against using alphas when the alpha is saving only 100-200 triangles, and is sparsely used on a texture map. With the case of a tree, alpha cards are almost always going to be the best way to get the best silhouettes with the best performance.
Like JonathanLambert pointed out a few more polys to get rid of a lot of transparent pixels is often worth it. Every semi-transparent pixel is a lag bomb waiting to happen especially if the player moves into a position where a bunch of them are stacked up. The less you transparent pixels you have the faster things will go and this is especially important for alpha sort/blend. You want to use it under very controlled circumstances.
Also if you want opacity correct shadows that gets expensive too, so sometimes people use an invisible stand in model that doesn't use any opacity maps just geometry, that casts nothing but a shadow. Or if you trim your planes pretty close sometimes the geometry can cast a realistic enough shadow.
http://www.polycount.com/forum/showthread.php?p=1412194#post1412194
Alpha sort/blend explained in a bit more detail and why sort/blend makes engines and rendering crap their pants.