- Home /
disabling bones and meshes when not in frustrum
Can i turn off parts of a single object when they are outside of the frustrum ?
Suppose i have this one giant object, with 20k polys in order to get only one draw call (similar to zombieville USA). Is there any way that i can tell unity to ignore specific bone hierarchies and the related skinned geometry to reduce the poly count in the frustrum ?
Answer by Eric5h5 · Mar 19, 2010 at 08:31 PM
No, an object is either visible or it's not, so either all the geometry is submitted or none of it is. However, OpenGL itself won't draw triangles that are outside the frustrum, and the PowerVR chip won't draw triangles that are fully occluded. So just because, say, 10K tris are submitted, doesn't mean 10K tris are drawn. (But there is no way to get this info...Unity can only tell you about the geometry being submitted.)
so is it better to combine as much as possible into a single object? $$anonymous$$aybe even the entire game ? :)
@vanov: No, because submitting the geometry still takes some time, even if not all of it is rendered. You should try to have a good balance between individual items that can be culled separately, and having low draw calls.
but i assume it is possible to atleast hide that part of geomtry, say i "group" 10 ships, i can make one invisable durting game play (explode) ?
@vanov: if you're using dynamic or static batching in Unity iPhone, separate objects that are not in the view frustum won't be part of the combined object.
Your answer
![](https://koobas.hobune.stream/wayback/20220612121026im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Few questions about optimizing graphic performance for mobile devices. 1 Answer
rotation object: Animation VS Skinned Mesh 1 Answer
combining blender meshes for optimized draw calls in unity iphone 2 Answers
Help Please - Unity3D project very slow on XCode-IPhone... 1 Answer
Why isn't dynamic batching working? 3 Answers