• 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
2
Question by kfiertek · Nov 13, 2013 at 12:34 PM · terrainplayerisometricterrain gentransparent-texture

Make part of terrain transparent.

So here's a view of my camera (some kind of ortographic perspective). alt text

And if i move character , the mountain hovers it and it can't be seen. Here's example and part i want to make transparent. alt text

My questions are :

  1. Whenever my character becomes invisible due to terrain blocking it vision , how do i catch the part of terrain that has something(plain terrain) after it (so when i make it transparent i won't see skybox)?

  2. Once i have this part of terrain in list/array how do i make transparent ?

  3. Same effect but when in builiding , easier to do ?

If it's impossible to do that due to my beginner skills , are there any other way to make player visible and part of plain terrain so he will know where he can walk(without rotating camera)?

perspective.png (461.8 kB)
actualview.png (441.1 kB)
Comment
Add comment · Show 1
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 Macro · Feb 03, 2014 at 09:43 PM 0
Share

I am wanting to do something similar at the moment and would like to know how to do the same thing if possible.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by NickP_2 · Feb 05, 2014 at 06:39 PM

Too bad there isn't a response yet.

But I did some thinking, and have you heard about the near- and farclipping settings of a camera?

for example:

alt text

and now a bigger value for the near clipping will cut off any object in that distance: alt text

And if that doesn't do what you wanted, you can tweak it with a script:

perhaps cast a raycast to your character, and if it doesn't hit the character, add more near clipping, untill it does... Just an idea :)

Aaaaand if that didn't helped, you could try a custom shader to always show the player (maybe with a slight transparant tint) trough walls:

cast a raycast to player, if it didn't hit him, change material to the always on top - transparant - ish shader...

Hope this helps


fc01.png (521.7 kB)
fc02.png (313.5 kB)
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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

New Terrain ignoring collider 1 Answer

Should a make a large terrain or should I use several terrains? 1 Answer

Terrain collider is inversed! 0 Answers

How to modify terrain at player position? 0 Answers

Terrain Slope Bouncing 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