x


Blob shadow problem

Hi, I am trying to create a simple blob shadow for a racing car. I am using the standart blob shadow prefab, with my custom texture for shadow shape. The problem is that beside the shadow it also shows an ugly endless line of shadow. See the picture:

alt text

more ▼

asked Jul 26 '11 at 07:01 PM

Eddy Johnson gravatar image

Eddy Johnson
18 5 5 10

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Make sure the edges of your texture are all white. What you are seeing is the clamping on the texture is just taking the edge pixels are stretching them over the rest of the area. Clamping does not cut off drawing, it just says, repeat the last pixel on that edge. (note how many polygons the shadow affects, it is literally adding a layer to every polygon in the scene so you do not want more than a couple of blob shadows or your scene will be very slow.)

more ▼

answered Sep 10 '11 at 04:06 AM

AlienFreak gravatar image

AlienFreak
16

Thanks for explaining that. This did work for me, but white edges had to be pretty wide at the end. My initial shadow texture already had perfectly white edges, atleast 10px, but it was not good enough I guess.

Sep 14 '11 at 03:40 PM Eddy Johnson
(comments are locked)
10|3000 characters needed characters left

I am experiencing the same problem, have you found the solution yet?

more ▼

answered Sep 07 '11 at 07:42 PM

RVeldhuyzen gravatar image

RVeldhuyzen
1

No, unfortunately, I still have not solved this.

Sep 08 '11 at 08:28 PM Eddy Johnson
(comments are locked)
10|3000 characters needed characters left

Hi guys I just figured this out.

Check your texture properties: under texture importer select "Border Mip Maps"

This cleaned up the edges for me

more ▼

answered Feb 29 '12 at 12:00 AM

Santokes gravatar image

Santokes
121 1 2 4

Thanks for this answer - it got me on the right track for mine. Turns out, with the default shadow projector, the mip mapping has to be turned off entirely to avoid artifacts. Un-checking the "Generate Mip Maps" box in the texture worked for me.

May 24 '12 at 03:58 PM ActionScripter
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x217
x110
x28

asked: Jul 26 '11 at 07:01 PM

Seen: 1686 times

Last Updated: May 24 '12 at 03:58 PM