Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 JackMini36 · Nov 04, 2014 at 09:44 PM · c#texturecardrawradar

How to draw textures on a GameObject

What I am trying to do, is have a windscreen radar (plane) inside of the player's car. This radar will show other close by cars. The player's car is displayed in the center of the radar. My problem is that I do not know how can I draw blips representing the other cars. There is no fixed number of cars so I need to draw the blips dynamically when they get close to the player's car. How is it possible to draw as many textures as I want on the radar? I am using C#

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 AlwaysSunny · Nov 04, 2014 at 06:57 PM 0
Share

Sounds like a job for unity 4.6 beta's UI system to me. In any case, your basic request involves:

find the relative position of each object you want to track
multiply this by a coefficient to scale down the distance as required
use this relative position as the location for a 'blip' object
instantiate new blip objects as needed, updating their relative position
destroy blip objects if they're no longer needed

avatar image JackMini36 · Nov 04, 2014 at 08:05 PM 0
Share

my problem is how do I actually draw the blips on the radar, after I find the object relative position

avatar image robertbu · Nov 04, 2014 at 10:55 PM 0
Share

A professional game would build a mesh where each blip would be a quad in the mesh. A simple solution is to represent each blip by its own Quad game object.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Steampunk_Droid · Nov 05, 2014 at 12:47 AM

I think this tutorial would come in very helpful... I know this is for making a minimap but you could easily change it to be used for a radar... using another camera in the scene that only draws to a texture and only sees what you want it to see (so you can set "blips" in your scene and make your main camera not see them but the other camera see only them) and apply the RenderTexture to your radar object :) I've actually followed this tutorial and it does work

Here's the link (remove the spaces https: // www. youtube. com/ watch?v=ZuV9Xlt-l6g

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
avatar image
0

Answer by komodor · Dec 12, 2014 at 12:42 PM

there are different ways to make minimap, the most used is second camera from top, rendering just what you want in the minimap to render texture, which is used on the minimap object

to render just something use culling mask

http://answers.unity3d.com/questions/20676/how-do-i-create-a-minimap.html

http://forum.unity3d.com/threads/advanced-minimap-tutorial.169401/

http://answers.unity3d.com/questions/topics/minimap.html

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

I'm trying to get a picture in game and display it on a plane 2 Answers

How to make the Health bar on Enemys head not be in relation to Player(main) Camera? 2 Answers

Error in Code 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