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 /
avatar image
0
Question by mike pool · Nov 28, 2012 at 04:51 PM · touch screen

how to identify physical objects on a touch screen.

how to identify physical objects on a touch screen? like :http://www.youtube.com/watch?v=Mxz3iSLqSLM

can give me some idea and test project to learn more how to do

Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by dadika4 · Aug 19, 2015 at 06:14 AM

You can do it like this. It is all about the cards that the guy is putting on the tablet. Cards have touch pads inplemented and lets say number one had 3 touch pads so the code must be.

     if (Input.touchCount == 3) {
             Instantiate(numberone, spawn.transform.position, spawn.transform.rotation); 
         }

You can see that when he picked up the cards he touched the pad and gave an info about touches and for a slight moment a number instantiated. I know he asked this long time ago but its fun for me to answer. :)

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 ariesanu_stephan · Aug 18, 2015 at 08:41 PM

Hi,

this might be harder than you expect it to be. First of all you can't detect any object, as they say in the videos description, the objects they use have some form of conductive foam on them. This is needed as the touch screen only registers touches from objects that are conductive (this is why you can't use your touchscreen with gloves or pencils).

My best guess is that the foam is attached on the back in a certain pattern, and that pattern is then detected and interpreted via script. Imagine something similar to letters written in books for the blind. There are multiple dots in a certain pattern and this pattern is then interpreted as a letter. Same principle here:

-you attach dots of conductive foam on the back of an object;
-you put it on the screen;
-you read the position of those dots from Input.touches;
-you choose one of the dots and see where the others are in relation to it;
-if the dots are arranged a certain way you interpret the pattern as corresponding to a certain real-life object, else you try starting from an other dot till you checked them all;
-you program unity to display a certain image on the screen if you find a pattern that fits the ones you predefined.

I hope this helped you out.

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 Eno-Khaon · Aug 18, 2015 at 08:54 PM

The author mentions in the comments of that video approximately how it was done, actually. The key element seemed to be the positioning of the foam on the bottom(s) of the numbered panels.

My guess would be that, as an example, he made use of the multi-touch capabilities of the iPad and read in the distance between or shape of the contact points.

For example, it could be done as something like:

 O = foam pad
 +-------------------+
 |                   |
 |            O      |
 |                   |
 |                   | ONE
 |                   |
 |                   |
 |            O    O |
 |                   |
 +-------------------+
 
 +-------------------+
 |                   |
 |              O    |
 |                   |
 |                   | THREE
 |                   |
 |                   |
 |            O    O |
 |                   |
 +-------------------+

In both cases, the bottom two pads would be used for calibration. They're always closer to each other than the third one, so they would automatically be readable and scalable with the physical screen size. The third would actually be used to determine which number panel is placed by calculating the triangle formed by the three.

Since 3+ finger detection generally seems to be specific to Apple, it's probably also the most viable platform for this specific conceptual setup.

Edit: Also, having 3 foam pads would surely be convenient for preventing damage to the screen.

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 dadika4 · Aug 19, 2015 at 06:33 AM

Theere are many ways to get pass this but i just pointed out how he did it. Watch closely at 9 second of the clip. It has nothing to do with positioning but only counting touch. When he took the number 1 of the screen he touched the screen more than he should. Again my opinion. :)

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

13 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

Related Questions

Touch input problem 0 Answers

Razer Blade Pro 2016 Multi touch controls not working simultaneously 0 Answers

I need touch input example 1 Answer

Unity and Interactive Whiteboard ( smart board ) 2 Answers

how to calculate Input.GetAxis ("Mouse X") for specific touch index 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