Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Vattalus · Sep 23, 2016 at 11:39 AM · texturesvectorskillsindicatoraoe

Graphics question: Firing Arcs and AOE indicators

Hi, i'm working on a space strategy game, and i need to show the ship's firing arcs, aoe ability indicators, range indicator, etc.

Example:Firing Arc Example, Firing Arc Example 2, Range Indicator Example

How would i create something like this? using textures is the obvious solution, but the texture should be really high res and it seems unfeasible. Using vector graphics (lines, circles) would solve that problem, but how do i get the nice gradient effect on the edges.. and what if i want to color in the inside of the arc? I also though about using a mesh to represent arcs, and dynamically expand or contract it, but if i want to have a large radius circle, the mesh would have too many polygons.

If someone could point me to an asset store package that has these features, please do, ill be happy to buy it. Or if there's an easier solution, please let me know.

Thanks :)

Comment
Add comment · Show 2
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 Namey5 · Sep 24, 2016 at 09:08 AM 0
Share

I would personally use a quad or something similar, then generate the vector graphics on the fly through a custom shader. I'd be happy to help with that, but I don't really have internet at the moment.

avatar image Vattalus · Sep 24, 2016 at 12:32 PM 0
Share

I found a script that creates dynamic meshes (cones circles etc), but ill need a shader to give them a gradient and some kind of edge glow, if you know of any shaders that do that, please point me in the right direction :P

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Vattalus · Sep 27, 2016 at 10:35 AM

I found a script that dynamically generates a cone mesh with variable poly count (and it looks great imo). I can use it to generate cones, beams, circle outlines, filled circles, and i think this is the method i'm going to stick with. All i need now is a shader (or multiple) to get some nice edge effects, gradients etc. Any idea where i can find something like that? i have 0 experience writing shaders.

Comment
Add comment · Show 2 · 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 ImShadowing · Jan 02, 2017 at 11:50 PM 0
Share

If that is your solution it would be great if you could post it here so others can check it out too :)

avatar image Ensutee ImShadowing · Aug 30, 2017 at 10:54 AM 0
Share

There is a good article describing the process of generating the cone mesh here (I believe this is the one located by the author as well) https://gamedev.stackexchange.com/questions/31170/drawing-a-dynamic-indicator-for-a-field-of-view

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

6 People are following this question.

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

Related Questions

Problem with a direction indicator for an FPS game 2 Answers

change the length of the vector 1 Answer

Vector 2 3 4 help 1 Answer

Vector based on the rotation of the main camera 1 Answer

Vector-based movement? 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