Shadows and fps

Hello,

I just got unity pro. I have shadows only on buildings, playercar, and roads. Roads do not make shadows. I get a max of 25 fps, is there a way to get more? I get so much lag. thanks for any help. :slight_smile:

Carking1996

If you are using deferred rendering, then switch to forward.
If you are on forward, well then you should get a graphic chip thats not 6+ years old or as slow as if it were (intel GMA)

How do I switch to forward rendering?

I haven’t got any shadows at all. Yes I’ve got Pro. I’ve also got a thing that says “shadows only available in forward rendering”.
I’m on a year old MacBook Pro.

I found this in another thread:
You can switch to it in Edit->Project Settings->Player under the “Other Settings” section change the Rendering Path.

But when I follow this it says I’m in Forward Rendering. So why don’t I get any shadows?

Edit. I’ve switched to Deferred Lighting. NOW I’ve got shadows. I’m very confused but that doesn’t take much.

Now I don’t have shadows, what I have is a mess whether shadows are turned on or not. Light just streams from one side of the model to the other with no regard to the source. I’m not having much fun with Unity 3.

forward rendering, if you didn’t write the shaders to have the “all forward shadows” pragma present, only cast shadows for a single directional light per scene.

the unity inbuilt shaders do NOT come with this pragma as the performance difference is one you have to be aware off and against which you have to opt

So if you can’t write shaders don’t buy Unity3?

??
has nothing to do with that. The pragma is not there for performance reasons (it will become quite a bit slower and that then independent on if you have 1 directional or not). download the builtin shader zip from the page, alter them by adding the required pragma and drop them in.

also keep in mind how shadows work in forward: each object affected by pixel lights or shadows in forward is redrawn once again meshwise to render it, so if the assets aren’t opted for it, it can be pretty unfavorable.

also U3 Pro is much more than just visuals, visuals is one part but there are other, more important ones out of my view like the profiler, asset bundle and async loading

I don’t understand what you are talking about I’m afraid. I have no idea what a pragma or any of that stuff is.

My lights aren’t working at all at the moment. I had shadows briefly after switching to deferred rendering but now it doesn’t matter whether I switch shadows on or off, I just have a mess with any light created. See above image.

hard to say much from the picture aside of the fact that you have 1 light and that you have the lightmapping editor open and potentially told the light to be baked only (or forgot to switch lightmap to dual lightmap and recalculate)

All I’ve done is create the light. It makes weird streaks across the model in one direction only and does not light correctly. Shadows do not work at all. If I create a plane in the same scene the light behaves correctly on the plane. It used to behave correctly on the model and I don’t know why it stopped working. Any light I create does the same thing.

I think it’s something to do with my changing the floor texture I imported the model with for one with alpha channels and the geometry of the floor. The shadows were fine before I replaced the floor texture with a psd and then it went wrong.

Clicking generate UV’s in the import settings neither helps nor hinders. Actually it doesn’t make any difference.