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 /
This question was closed Apr 26, 2013 at 10:00 PM by AlucardJay for the following reason:

Too subjective and argumentative

avatar image
0
Question by gRntaus · Apr 26, 2013 at 04:54 AM · textureminimap

Draw "Blip" on Minimap?

I'm looking at changing my minimap implementation because I don't like it at all, I'm probably going to move to a static image as our maps are not big enough to warrant a rendertexture or anything like that. The only thing I can't quite work out is, what would be the best way to draw unit locations over the top of that. I figured I'd simply take the world co-ordinates of the objects, translate them to the correct position relative to the image (should be some fairly basic math for that) but how then could I go about implementing them on the screen? Would it be a case of me having to get the screen position of the actual minimap and then drawing them relative to that position through on OnGUI call? Or is there a better way to do this?

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 AlucardJay · Apr 26, 2013 at 10:00 PM 0
Share

Sorry, but your question is not suitable for Unity Answers. Please use the Unity Forum for discussions such as "How to ...". Unity Answers is here to help you solve any specific problems you have.

  • http://forum.unity3d.com/

  • http://answers.unity3d.com/page/newuser.html

  • http://video.unity3d.com/video/7720450/tutorials-using-unity-answers

1 Reply

  • Sort: 
avatar image
0

Answer by robertbu · Apr 26, 2013 at 05:17 PM

Here is an alternate solution. Create a plane that exactly overlays the terrain that you are mapping. Place your map texture on the plane. Create a second, orthographic camera that displays this plane (i.e. only the second camera would display the plane, and the second camera's depth would be higher than the primary camera). Use the Viewport Rect to embed this camera in the main scene. To display the dot, just create a small plane with a dot that has the same coordinates as the player (child) and that is only visible to the second camera.

If you want to use the same camera, you have multiple different methods to display the map...GUI.DrawTexture, Graphics.DrawTexture, GUITexture, A plane in world space that tracks the camera..., but for all of these you will have to do some form of the conversion you indicate in your question.

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

Follow this Question

Answers Answers and Comments

12 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

Related Questions

Objects on minimap replaced with icon? 1 Answer

Assigning UV Map to model at runtime 0 Answers

Displaying Objective Points Through GUI. 2 Answers

Get Terrain Texture 0 Answers

Render textures doesnt exist in unity 4.7.2 0 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