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 sonic220 · Oct 17, 2015 at 08:27 PM · androidshaderaugmented-reality

ARtoolkit problem on android

Hi guys, I'm having troubles at running ARtoolkit (one Augmented Reality framework) on android. Seems like after releasing of unity 5.2 issues related to the shader/material used to the video panel made it impossible to work, but I fixed it after using the following shader instead:

 Shader "VideoPlaneNoLight" 
 {
   Properties 
   {
     _Color ("Main Color", Color) = (1,1,1,1)
     _MainTex ("Base (RGB)", 2D) = "white" { }
   }
   SubShader 
   {
     Pass 
     {
       Material 
       {
         Diffuse [_Color]
       }
       Lighting Off
       ZWrite Off
       Blend SrcAlpha OneMinusSrcAlpha
       SeparateSpecular Off
       SetTexture [_MainTex] 
       { 
         constantColor [_Color]
         Combine texture * constant, texture * constant
       }
     }
   }
 }

I've also had some problems building on android, but after creating the right plugin I've finally made it work. Problem is the phone shows no video and only a black screen (even tough the menu works). I don't know if it's a problem related to the camera or the material I used, someone with more experience could help me out?

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 ritchy · Nov 18, 2015 at 01:03 PM 0
Share

Hi @sonic220,

i am using ARToolkit 5.3.1 and unity 5.2.1f1 and i do already have that Shader. What is difference you brought to that file ?

also, i do have a issue. I can't seem to compile for Android. once the compilation done, the app installs correctly, and crash at start, saying, unfortunately, the app had to stop.

Any clue on solving this issue? does it come from the shader ?

Richard

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by DocYesh · Nov 28, 2016 at 08:03 AM

Whenever I build for Android, I get this error, Null reference exception :( Any help please. Best, Yesh.

NullReferenceException: Object reference not set to an instance of an object ARTrackedObjectGizmo.DrawMultiMarker (.ARMarker m, Matrix4x4 mat, Boolean selected) (at Assets/ARToolKit5-Unity/Scripts/Editor/ARTrackedObjectGizmo.cs:117) ARTrackedObjectGizmo.DrawMarker (.ARTrackedObject to, Boolean selected) (at Assets/ARToolKit5-Unity/Scripts/Editor/ARTrackedObjectGizmo.cs:86) ARTrackedObjectGizmo.RenderARTrackedObjectGizmo (.ARTrackedObject to, GizmoType gizmoType) (at Assets/ARToolKit5-Unity/Scripts/Editor/ARTrackedObjectGizmo.cs:60) UnityEditor.DockArea:OnGUI()

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 ritchy · Nov 18, 2015 at 02:30 PM

more detail, and a possible anwser this time. At least a solution that worked for me.

I just ugraded to Unity 5.2.2f1 and the same project that crashed my ARToolKit app now work.

Good luck. Rich

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

38 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 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 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

Problem with creating an app with Augmented reality 1 Answer

Can you specify what the DepthShader masks? 0 Answers

GUI Overlay using mobile camera 1 Answer

apply Transformation on augmented model ,apply transformation on individual target image 0 Answers

Cubemap on Android 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