Hi forum i want to ask you how to make good shadows in game not asking about shadows it self but about making them. I have good PC Modern Warfare 2 on full detail but my game on high detail with shadows makes my PC look like PC from '80 everything looks good but i can see every frame. So tell me forum how to set everything in Unity or thanks to other program good shadows but not eating my PC so much.
When i say like pc from '80 than it mean that my game works so badly that you cant play it almost and i am talking all the time about shadows not about textures not about models i mean shadows all my post is about shadows i will write in more simple way
I made very good shadows but my PC wont handle it BUT
very good shadows from top games like Modern Warfare 2 looks 10 times more amazing and my PC handle it very very good. Question How to make shadows in Unity that looks good and still make game playable.
Now the stats when i don’t shadows i have 290 Frame with hard shadows that still look good 110 Frame with soft shadows that looks good 90 Frame
Is there a way to turn those Frames up like a script that turns shadows only there where camera is looking or letting game taking more from PC memory ?
You probably have too many objects on your scene. Each object on your scene requires a draw call. When you activate shadows, each object in your scene requires three draw calls. If you on top of that have multiple pixel lights, your object needs to be rendered one extra time for each pixel light.
Overall you should keep your draw call count under 1000 on strong machine. Under 500 on low-end machines.
(You can see how many draw calls you are making by clicking the Stats button in the top right of the Game window in Editor)
(And about comparing your game to MW2, you cannot imagine how much work goes into planning and designing their scenes to work best as possible with their engine. You can’t just drop bunch of stuff on the scene and expect the engine to run it’s magic and all will be okay)
Like said above combine all the models with the same material into 1 mesh. ie, if you are building the level in a modeller, put all same models in one layer.
Then bake lightmaps, Unity3.0 will help you with this due to the Beast Lightmapper, but just as good a results can be gotten from a modeller (probably even better).
You can then delete all the static lighting within Unity and just keep a few in to affect the dynamic objects (put these in layers within Unity and have the lights affect these layers).
You should be able to get it running nicely on any PC then… very low draw calls (high fps) and a great look are then possible.
If you are just dropping objects into Unity you wont be able to get good drawcalls without combining.
Well than i will tell you that Draw Calls i have only 251. So its not about models becouse i know how to make them in way that will not make any problem.