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
0
Question by Calidan · Jul 28, 2010 at 06:21 AM · shaderprojector

Projecting a square (or another shape) onto terrain

I am attempting to project a small blue square on the terrain. I tried using the blob shadow projector and switching the texture, as well as using a custom shader (like this one), but it projects the texture across a huge square that is larger than the projector size and not showing the texture correctly anyway. It appears as though the texture is stretched across the entire terrain, and only showing a square of it at a time.

I have the texture's wrap mode set to Clamp, I have used multiple different textures (with and without alpha) and still can't seem to project onto terrain properly. I know I can get the projection to work on a small cube object, but I am seeking to project directly onto the terrain in order to follow the contours. Is there some setting I am missing in the shader def, or is this an issue with attempting to project a color/texture onto terrain?

Comment
Add comment · Show 3
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 · Jul 28, 2010 at 03:23 PM 0
Share

Is the square not to be projected beneath the character rather than the camera? If so, you should edit the topic of your question.

avatar image Calidan · Jul 29, 2010 at 05:45 AM 0
Share

Well I had meant the camera that is attached to the character, but you are correct that "character" makes it more clear, so I updated it. Thanks for the suggestion!

avatar image qJake · Aug 04, 2010 at 06:11 AM 0
Share

You haven't set up your light cookie properly. This can cause the projector to project the mesh onto the entire object, not just at the position you have the projector. http://unity3d.com/support/documentation/$$anonymous$$anual/HOWTO-LightCookie.html

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by jeango · Aug 04, 2014 at 01:37 PM

Well this post is kind of old, but since it's still unanswered, I'll give it a try.

In the blob shadow projector's inspector, you can set the projection to be orthographic instead of perspective. This way, no matter where your projector is, you'll always have exactly the size and shape you want.

Comment
Add comment · 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

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

1 Person is following this question.

avatar image

Related Questions

Accessing a projectors renderer 2 Answers

Why does not perspective projectors work well? 0 Answers

Can you supply texture co-ordinates for projector cookies? 0 Answers

Project a solid color onto a game object 1 Answer

Projector Shader that projects a material with a falloff & alpha 1 Answer


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