Problem with Anti Aliasing and pixels

Hi,I have just now noticed that when anti aliasing is enabled in the quality render setting be it 2x or 16x the image show some disturbing white pixels around the edges of the object when looked from a distance, they disappear only when you are the closest distance possible to the object, turning anti aliasing off remove this problem.

Also I noticed some strange light effect on textures illuminated by a solar light surce when you use the modality per pixel light or Auto rendering and not when you use force vertex but then all shadows are gone.

Do these are known 2.5 issues and are they resolved in 2.6 ?

EDIT: added photos

First one is from some distance and you see sthe small house to the right? it seems covered in snow… but also the wood isnertion on the other house facades are mostly white.

And no I am not using any fog, fog is turned to 0.

the second one is the same scene no changes but close up to the houses.

I hope this make sense.

The first issue you describe might be the result of z-fighting due to the fixed function T&L pipeline implementation used in Unity 2.5, which was indeed fixed in 2.6 .

You should upgrade to 2.6 regardless, unless you expect huge problems.

Thank you for the answer, so far I didnt notice the problem as I was working on a shene and used basic rendering with no alias for more speed but once I wanted to see the real effect I noticed this.

About the second problem, let see I have a house with a mapped textures of wood in some parts, these areas textured start to turn to white gradually when I move away from the house it’s strange and tought that the fog caused this effct as it is simlar of what fog do based on the distance but is related to lights since it go away removing the light effect and shadow.

I have not upgraded as I found no immediate reasons for me usually I wait a little before, but if these two problems are known 2.5 problem then I will do it but want to be sure before to import the project on 2.6 as is not backward compatible.

thanks

Sorry just forgot to post my specs, unity is 2.5 pro on Windows vista 64, the PC card is a Direcx 10 Nvidia 9800GTX 512mb.

I notice there are some bugs in 2.6 that make me stick to what I have for now, but stil is important to know if these are know problems of this release because at least I stop trying to fix them and nothing so far worked if not removing aliasing and turning out shadows… which make a crappy image…

Also I tend to think is a Unity problem because I saw it on some webplayer demo from another guy that sell 3d objects on this forum, the aliasing problem at least seems to be.

Can you provide a screenshot or even a webplayer? And perhaps a wireframe of your scene?

Ok I will make a small test scene on the webplayer and see if it’s noticeable on the small screen.

Here, sorry for the delay had to place that on a site that is not intended to upload big stuff, it may need a couple minutes to dowload as it’s like 17mb.

When you appear look at the house right there go near them and then backward looking at them and you wil notice the textures start to turn withe and quite bad.

For the other problem look at the pottery on the close stand, you will see the white pixels on them as soon as you start to go backwad as well.

I have placed the settings that cause both of these problem, which is AA2X (more its the same) and the Light render on Auto or Pixel.

http://www.hobbymeteo.it/test/test.html

thanks for the help

Here a bigger version but with no problems of aliasing or strange textures. But no shadows aswell.

http://www.hobbymeteo.it/test/test1.html

Could these light problems be caused by the lightmap, not sure but once made I cant see how to remove it only remake another but seems to cause that white. aliasing at the border of the water.

The ‘texture turning white’ problem is just your realtime shadows fading with distance :slight_smile: . You should play with shadows settings.

Those ‘white pixels’ on pottery are probably caused by the z-fighting i mentioned (which was fixed in 2.6), but im not 100% sure about that.

Those are some nice medieval buildings and props, did you make them?

thanks for the answer, yes I tought about these being dependent on the shadow and fading but I am quite new with unity and still have not found any way to change that, I see only hard and soft shadow setting. Maybe I need to increase the range of the shadow so they dont fade away I am going to try something.

The models in this test are all commercial models originally made for poser that I converted inside c4d and exported in fbx.

Well, I played a bit with shadows and lights but this “problem” dont seem to be related to shadows, it only change the darker shadow projected but it does nothign to this fading texture effect, even if i shut down the Sun light surce these still remain.

I dont think is very relaistic to have your wood turn whitish when you go a few metres away, there should be a way to remove this without removing all the shadows around?

Dont know…

Like KaelisAsur said:

Increase the shadow fade distance. (Of course, the downside is that the shadow texture resolution goes down the farther away shadows are visible.)

–Eric

I have tried this already before posting, it does not change it, I raised and lowered the show range but it only influence the shadows casted on the object like trees shadows on the house it does not do anything to this textures fading thing. I also tried to just shut down the main solar light and added a point light to a window and the stuff appened only to the suface near the light obviously and shadow where tuend down, it’s a reflection problem

I see it’s more a question of light on the material, I am trying to change the material to a non reflective

Maybe you can post a screenshot, because other than the shadows fading out at some distance, there’s nothing wrong with what I see.

–Eric

Turning the sunlight to black color prove that it’s related to reflection of the wood surface I think, as now the only wood decoration doing it is the one close to a point light surce.

But I will see more tomorrow for now we have made that the white pixels are a aliasing problem at least this I cant do anything if not turning it down when 2.6 is ok then hopefully this is resolved and I upgrade it.

Here is the last rendered scene

http://www.hobbymeteo.it/test/test2.html

Sorry you posted after me, do you see all the wood decorations on the house facade? these shuld not change color when you go away from the houses in real world stuff dont change like this my point is the should not turn withish while the rest stay the same.

Also they do it non uniformly creating this weird effect where some are sill wood and other are turning white.

You have to watch the first link i posted for this, as the 2 and 3 dont show this.

I think is really realated to how the woden material reflect the light surce and the direction of the rays when you move change so they start to reflect some of the light and since the sunlinght was White they reflect this color, this is what I make of it at least.

Ok for more clarity I dont know maybe is not evident but it should be with these two shots.

First one is from some distance and you see sthe small house to the right? it seems covered in snow… but also the wood isnertion on the other house facades are mostly white.

And no I am not using any fog, fog is turned to 0.

the second one is the same scene no changes but close up to the houses.

I hope this make sense.

Well, I’m using the 2.6 webplayer plugin, I don’t see that effect. You should probably just use 2.6, it fixed some problems like that.

–Eric

The web player? but I see it also if I make a .exe standalone version are you telling me you dont see this on your webplayer? are you sure you watched the first link and not the second one that has no shadows on?.

The only thing since these are imported models I tought it may be some textures who are not right, but looking at this I cant see anything wrong.

The problem with 2.6 that I was going to upgrade is that I read it has quite a lot of reported problems and crash to be fixes soon.

After that I am happy to do it.

thanks

Yep.

You probably won’t encounter many problems at all. The only one I have is that renaming items doesn’t quite work properly. Anyway you can keep 2.5 too, so there’s nothing to lose by trying 2.6.

–Eric