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 /
  • Help Room /
avatar image
0
Question by MaximumTre · Dec 01, 2015 at 06:17 AM · shapes

Check to see if a player draws the right shape

Basically I wanted to add a function to look at a shape the player will draw with whatever means of input they are using and check it for accuracy with pre-defined shapes. I'm sure you've seen games like this. Stuff like Okami, or Magic Touch on droid.

Without giving too much away, cause I'm not asking for code, I'm just asking how does this get done. If this was asked before, please be patient with me, I didn't see any question like that when I posted. :)

Thanks for reading.

Comment
Add comment · Show 4
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 MaximumTre · Nov 30, 2015 at 03:38 AM 0
Share

I went back and thought more about my question and thought I should add this: Let's assume the drawing function will look for the player to draw within a rect or specific area by drawing a sprite where the player touches/moves mouse, or moves an indicator or some kind. How do I check for accuracy of predefined shapes in that area?

avatar image MaximumTre · Dec 05, 2015 at 04:42 AM 0
Share

Wow 3 days an no answer? I must have picked one of those questions lol

avatar image NoseKills · Dec 05, 2015 at 11:15 AM 1
Share

This kind of "image recognition" problems can be pretty difficult.

$$anonymous$$y first instinct would be to triangulate and make a polygon out of the drawn shapes, overlay them and subtract the area of one from the other. The size of the "difference area" would be at least some kind of an indicator of similar shapes. Google for example "delunay triangulation" to get started on triangulation.

You'd have to "normalize" the position (crop the shapes before comparing ) of both shapes too so that drawing the exact right shape in the wrong position wouldn't result in a bad score.

avatar image MaximumTre NoseKills · Dec 07, 2015 at 08:24 PM 0
Share

Awesome. Thanks for the response. I was out of town so I couldn't respond. I will take a long look at this to see if I can cobble something together. I knew this wouldn't be an easy subject, but I think it would be awesome if this functionality is coded properly.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by NicoFad · Apr 28, 2017 at 02:26 PM

https://www.reddit.com/r/Unity3D/comments/3rkr4s/trying_to_recognize_drawn_shapes/

This link might help you. In the comments there is a scientific paper someone'd suggested but failed o implement it, however, it is very interesting. Otherwise if you want an out-of-the-box solution I highly suggest checking out the market place and the keywords "Glyph Recognition" https://www.assetstore.unity3d.com/en/#!/content/48975 I am just about to buy this one because I am very lazy, might try implementing it myself though.

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 syouleaf · Sep 04, 2021 at 06:20 AM

MiVRy - 3D Gesture Recognition https://assetstore.unity.com/packages/templates/systems/mivry-3d-gesture-recognition-143176 This might be helpful!

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

7 People are following this question.

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

Related Questions

How would I define a random shape by points? 0 Answers

Pro builder how to bend a pipe evenly 0 Answers

How do I change the shapes of the wheel on the left to become equidistant such as the wheel on the right? Notice the shapes are not all the same size..I would like to change this 0 Answers

How to make a pyramid-ish shape from a cube in unity (for making a muzzle flash) 1 Answer

Can I use subtractive shapes? 4 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