Being a complete newbie when it comes to how 3D rendering is being done, as well as not knowing much about hardware, I thought I’d ask some basic questions about it until I learn more.
I’m curious as to how the graphics is working in Unity/on the iPhone. If we have a model consisting of 5k verts and want to render that model, what is sent to the GPU? Is any culling of any kind being done before information is sent to the GPU? Should it? I’ve been reading this DirectX book and in the chapter on scene management the author mentions how it’s impossible to check the normal of every face in the scene due to load on the CPU. Because of this we’re supposed to utilize an octree to do some rough culling. And as far as I recall, the culling using octrees are made by the CPU, and after that the remaining info is sent to the GPU for rendering (including some faces that, in a perfect world, shouldn’t be rendered. It’s a lot cheaper to render those extra faces than to perform perfect culling).
In this thread I asked about draw calls, and then Eric5h5 says “The iPhone GPU doesn’t render triangles that are occluded behind other triangles anyway (as long as you don’t use transparency)”. Unless I’m misunderstanding that part, the iPhone is actually checking every face and thus doing perfect culling? But if that is true, why should we want to use occlusion culling? To send less information to the GPU so that it can perform its test quicker?
If we use one model only in a game, where 30-50 % of the model isn’t visible depending on the state of the game, can’t we do something to make it easier for the GPU/CPU to process the data somehow? I doubt Unity is taking care of everything perfectly since “perfectly” varies from game to game. Or?