x


Creating a Cube Projector

I would like to create a projector which draws a 1 by 1 red square on the terrain. I've tried setting the projector to orthographic and getting it to the right size and setting the texture to clamp.

Whatever i do the whole map is covered with the texture. I'm not exactly sure what I am missing.

more ▼

asked Feb 15 '12 at 04:48 PM

aliakbo gravatar image

aliakbo
145 10 14 17

Also tried using different shaders but still not working.

Feb 15 '12 at 08:08 PM aliakbo

I'm having the exact same problem, I'm trying to project a selection ring around my character. No matter what is under it the texture draws over the whole surface.

I looked at the guide for projectors and I believe to be following it as expected. I'm on 3.5.1 what gives?

Apr 28 '12 at 06:06 AM drastick
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I was able to track this one down. First import the standard projector examples from Unity. I don't know why they don't include it with the base content but projectors require a special material shader to work correctly, this shader is included in that package. Then configure your texture to match the settings, make sure it is set to Clamp. The the fall off texture is how much the projection fades out over distance, in my case I wanted it to stay solid so make it none or a solid white texture.

That should fix up your problem too!

more ▼

answered Apr 28 '12 at 06:02 AM

drastick gravatar image

drastick
211 8 10 18

Which shader do you mean?

May 10 '12 at 05:22 PM aliakbo
(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:

x2207
x1665
x1478
x110

asked: Feb 15 '12 at 04:48 PM

Seen: 914 times

Last Updated: May 10 '12 at 05:22 PM