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 /
This question was closed Apr 04, 2016 at 01:45 PM by meat5000 for the following reason:

Too subjective and argumentative.

Try the forum.

avatar image
0
Question by ssnake · Apr 04, 2016 at 12:34 PM · webcamprojectionfield of view

Plot real objects in unity and make them coincide with live picture from smartphone camera

Hi,

I'm working on app https://github.com/ssnake/contrails. The idea is to get long, lat coordinates of aircrafts, plot them in unity and make them coincide with image stream from webcam. So, in a nutshell, you get your smartphone, open the app, points your smartphone camera into air and you can see aprx. position of airtcrafts on your screen . What I have covered in the app.

1) Converting lat/long position into unity x,y,z position.

I recon to scale should be 1 unity meter : 1 real meter. I used Mercator projection (look at class Mercator1 in Assets\MapController.cs. There is WebMercator1 class as well)

2) Converting accelerator and compass movement into MainCamera movement. It's done in Assets\CameraController.cs

3) Getting smartphone camera image. It's implemented in Assets\WebCamera.cs 4) Getting gps info. Look at Assets\GpsController.cs 5) Get aircraft data. So far it's simulated. Assets\AircraftController.cs

Were have I ended up.

To test things I came up with idea to put aircrafts(now it is just a sphere) above buildings surrounded my gps position. I expected that looking via smartphone I can see these spheres right above building, but it turned out this is not true.

I wonder if someone could point out what I missed. Thanks in advance.

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 meat5000 ♦ · Apr 04, 2016 at 01:41 PM 0
Share

Your question remains vague. I'm really not sure what you are expecting.

This is a discussion question and should go on the forum.

Your question suggests you should be using AR techniques.

https://www.google.co.uk/search?q=unity+ar&ie=utf-8&oe=utf-8&client=ubuntu&channel=fs&gfe_rd=cr&ei=jW8CV5-OA4uBaJ-7tbAF&gws_rd=ssl

avatar image ssnake meat5000 ♦ · Apr 04, 2016 at 02:52 PM 0
Share

Thank you for a link. It may help. I need to investigate if I can grab smth useful from AR stuff...

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

how can i use my phone's camera as a webcam and let unity recognize it as a connected webcam? 0 Answers

how can i take webcam resource that worked by another program at the same time 0 Answers

Reflection Probe Box Projection in URP Not Working on Oculus Quest 0 Answers

Moving a working webcam texture background project into an oculus VR project, can only see background now instead of the webcam video feed? 0 Answers

orthographic sphere projection 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