Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Adam-Buckner · Nov 17, 2010 at 05:08 PM · cameraprojectorprojection

Projectors Projecting both directions...

I have a problem with projectors projecting up and down (forwards and backwards).

The docs (http://unity3d.com/support/documentation/Components/class-Projector.html) say:

"When no Falloff Texture is used in the projector's Material, it can project both forward and backward, creating "double projection". To fix this, use an alpha-only Falloff texture that has a black leftmost pixel column."

I am, however, using a Falloff texture:

alt text

This is true whether I'm using Projector Multiply or Projector Additive:

alt text

It makes no difference if I'm using a perspective or orthographic projector:

alt text alt text

Nor if I change the clipping planes:

alt text alt text

Hints and suggestions?

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image skovacs1 · Nov 17, 2010 at 07:08 PM 0
Share

I cannot reproduce this problem. Do you perhaps have multiple instances of your projector in the hierarchy?

avatar image Adam-Buckner ♦♦ · Sep 09, 2011 at 01:09 PM 0
Share

I edited this to restore the images that were broken due to a tinygrab.com update.

avatar image Arcades · May 25, 2012 at 07:24 PM 0
Share

I had the same problem: I'm trying to use texture projection for add some tattoos on one of my character. This ended in just pain: the texture is projected both in front and back my character. No matter the settings of the fallout texture. I tried with clamp, repeat, alpha from grayscale, no alpha, inverting the colors, using a texture with alpha-blending, a texture with just the first column black and the rest white, the inverse of the previous, removing mipmaps, adding mipmaps, removing or adding border mipmaps and any other mix of these. That damn texture shows both in front and backward my models. Also i tried with a primitive cube, the same. Is there a way to project only one side?

avatar image Bunny83 · May 25, 2012 at 07:31 PM 0
Share

@Arcades: this question is one and a half years old and your post is not an answer! Use comments if you want to comment to a certain post.

This is not a forum it's a Q&A site. Read the FAQs

2 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by Mifuyne · Mar 23, 2011 at 08:31 PM

That's probably because your falloff texture isn't set to generate alpha from greyscale. Don't forget to set the wrap mode to clamp as well.

I know this is 4 months late, but I hope it helps anyone else that ran into this problem.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Adam-Buckner ♦♦ · Mar 24, 2011 at 08:23 AM 0
Share

In the end it setting the falloff texture to generate alpha from greyscale. With a standard shadow projector, which I was modifying, if one were to generate an alpha from greyscale, it would break the shadow projection. The shadow projector uses the Projector$$anonymous$$ultiply shader. To get the red circle to show up, one needs to use the ProjectorAdditive shader, and I hadn't changed the alpha generation for the new projector.

avatar image Adam-Buckner ♦♦ · Mar 24, 2011 at 08:30 AM 0
Share

I should say it was BOTH clamp and generate alpha from greyscale. Either one on it's own doesn't do the trick.

avatar image Arcades · May 25, 2012 at 08:04 PM 0
Share

@Bunny83 I apologize. I'm not familiar with this system. I didn't even seen the "Add Comment" button, silly me. However if I wish to have an answer for this same question should I double post the question? Isn't better to bump? I've read the FAQ and there is nothing about scavenge and old post or did I miss something?

Also even if I wrote as a frustrated rage quitter I think I've put all the informations needed for investigate the problem. In short my problem is the same of Little Angel and I think we both tried to work with the textures but that is not the problem. Any clue or do I have to repost this question?

avatar image
2

Answer by jwb21 · Jan 18, 2013 at 07:33 PM

I had the same problem. Increasing the size of the left black pixel band seemed to reduce the size of the backwards projection, but not eliminate it. And that also reduced the near limit of the projected image undesirably.

To fix it, turn off mip maps. In the texture settings, change Texture Type -> Advanced. Then uncheck "Generate Mip Maps".
Also, set Wrap Mode = Clamp.
I'm using Filter Mode = Point, but I don't notice a difference if I use Bilinear or Trilinear.

For my Falloff image, I'm using RGB 16pix tall by 1024pix wide image white image that has an alpha channel that is white except for a black 1-pixel wide band on the left side. (I imagine using an RGB no-alpha image with a black band on the left site, and setting "grayscale to alpha" would accomplish the same thing.)

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TVScoundrel · Jul 01, 2015 at 09:30 AM 0
Share

@jwb21 Thanks for that tip, as this solved my problem where my projections in UNITY 5 using the Projector/Light shader were somehow leaking light onto surrounding objects.

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to make an Off-axis / Off-center camera ? 2 Answers

camera for rendering and realtime projection 0 Answers

How to Project a video from a game object? 2 Answers

Room scale projection from unity 0 Answers

Showing an image from a camera in a projector?( i hope that is the right word ) 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges