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
2
Question by Spooklight · Jul 27, 2017 at 02:42 PM · iospluginopenglcompatibility

Compatibility between ARKit plugin and iVidCapPro

Hello,

iVidCap pro is a plugin under iOS to record what happens in the scene. It uses, at the origin, openGL2. But, it should has been compatible with metal since version 1.7 in december 2016.

ARKit (the plugin) is actually only compatible with Metal. I saw a pull request under your bitbucket that try to make the compatibility with openGL 2.0.

Today if I try to use iVidCap & ARKit, my application crashes under metal (iVidCap) or I don't have any camera return from ARKit (openGL 2.0).

Is a compatibility between ARKitplugin and openGL2.0 is under the way ? How can I do to make this two compatibles ? I only have these plugins in the project I'm talking about.

Hope you can help me,

Comment
Add comment · Show 3
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 HaimBendanan · Aug 12, 2017 at 12:59 PM 0
Share

@Spooklight Spooklight did you found a way to recorv video while using the ar$$anonymous$$it? I am stuck exactly at what you describe. If you didn't found a solution we can combine forces to find one :) Thanks!

avatar image Spooklight · Aug 14, 2017 at 07:47 AM 0
Share

I'm actually waiting for a pull request on the Unity AR$$anonymous$$it plugin. It should make AR$$anonymous$$it compatible with openGL2.0. Due to the limitation of both technologies, i can only wait today. I haven't any knowledge about the $$anonymous$$etal API and openGL. $$anonymous$$ake AR$$anonymous$$it compatible by myself is nearly impossible.

avatar image piccollage · Sep 06, 2017 at 03:22 PM 0
Share

I tried AR$$anonymous$$it with OpenGL2.0 solution, the performance isn't good enough. do you get the same result? @Spooklight

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Spooklight · Sep 06, 2017 at 03:53 PM

We finally manage to make it works !

How do we did it.

First of all, we used iVidCap version 1.7 to ensure the best possible usage of the plugin.

Then, even when the ARKit team say "Use the last update on the store !", it is better to download the full projet from the bitbucket (https://bitbucket.org/Unity-Technologies/unity-arkit-plugin)

Then, go from the different commits of the openGL2.0 branch and download the file that needed to be change.

After that, used the shader and camera from the arkit plugin. You NEED to have the ARKit camera in the scene at the launch (more safe). Then go through the build settings and only used openGL2.0.

At this stage everything worked for us (XCode Beta 6)

Enjoy, Spooklight

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 ina · Dec 29, 2017 at 11:19 AM 0
Share

Does this still work with the latest Xcode Version 9.2 (9C40b) and unity 2017.3.0f3

avatar image Spooklight · Jan 02, 2018 at 08:15 AM 0
Share

Yes it works.

You have to pass to openGL3.0 due to recent compatibility under 2017 and the AR$$anonymous$$it Framework. The shader is not rendering well in 2.0.

When you are ready for 3.0 (everything up to date), you may have to modify the shader XYCamera by yourself to match your screen. We experienced several problems we corrected in intern

avatar image
0

Answer by Denko86 · Jan 31, 2018 at 08:37 PM

I tried using the latest Unity 2017.3 and OpenGL 3.0 ES

I manually merged the OpenGL 2.0 branch into the latest ARKit code.

The end result is that I can see the camera being rendered but it has a green tint on it. If I use the shader provided in OpenGL branch in Unity it will tint Red.

float4 ycbcr = float4(y, tex2D(_textureCbCr, texcoord).ra, 1.0);

I've traced it down to this line of code, it appears to be converting the YUV wrong or something? Why would it shade it green.

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

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

Extremely slow texture upload in plugin when a model is being drawn 1 Answer

Rendering to texture using an FBO on iOS 0 Answers

Issue with glDrawArrays in plugin 2 Answers

renderplugin example not working on ios 1 Answer

Unity sounds not playing after AVAudioSession is disabled 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