In my current game I normally build all of the static scenery in C4D with a single 1024 texture.
However, in my latest level I have many objects that are behind the players view most of the time. It’s a bowling game and the camera is usually facing forward, however the player may select alternate camera views that show the ball traveling from the opposite angle. In this view, all of these normally hidden objects will be visible.
My question is should I use a separate mesh and texture for the objects that are behind the player? Or will Unity not “draw” these objects even though they are part of a single mesh?
I’m wondering how Unity iPhone (basic) will handle this. I’ve done some research but I’d really like some expert opinions as my game is pretty CPU hungry already.
I normally have 10-12 draw calls and 4500 tris. This level has more objects than my other levels though.
occlusion happens basing on meshes not triangles so if the whole room is one mesh, the whole room will be drawn, independent if it is in view or not.
optimally it would be distinct parts + unity iphone advanced with its static batching which would give you similar benefits as beeing 1 mesh but with the benefit that only the visible parts are included in the batching
I want to use an alpha texture for my bowling lane and make a fake reflected surface using flipped objects beneath it. Normally the lane surface is part of a 512 x 512 texture that is used for many objects.
Is it best to use a separate smaller texture for the 32 bit alpha in this case, or just use a single texture as I normally do and just alpha the section I want transparent? That would be a 512 / 32 bit texture so I’m thinking it would eat too much memory.
If I use a 2nd texture for the alpha it can be as little as 64 x 64 probably, 128 max.
So the question is, extra dry call, or extra memory (and cpu maybe?) with the 512 pix alpha. Which is better.
No. There is still a cost to batch objects together. While the cost is less than a draw call, it’s still there. (I should also note that the cost to do a static batch is lower than the cost to do a dynamic batch).
In short, cut stuff up, but not too much. Try to think in terms of what you can guarantee will be on-screen together at any given time.