Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add support for "WebCamTexture" in unity #61

Open
StartNight opened this issue May 10, 2023 · 7 comments
Open

Please add support for "WebCamTexture" in unity #61

StartNight opened this issue May 10, 2023 · 7 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@StartNight
Copy link

Please support "WebCamTexture" in unity. This allows more platforms to be supported. I've been looking into using ARtoolkitx to bring AR effects to more platforms. However, some platforms support a native API to capture the camera footage. While it's great to support Windows, Android, iOS in the ARtoolkitx source code, there are some platforms that don't support it. Use unity's 'WebCamTexture' to support many more platforms from the unity native code level.
Please add this feature. Thanks!

@philip-lamb philip-lamb self-assigned this May 15, 2023
@philip-lamb philip-lamb added this to the 1.2 milestone May 15, 2023
@philip-lamb philip-lamb added the enhancement New feature or request label May 15, 2023
@philip-lamb
Copy link
Member

Support for external textures including WebcamTexture is planned.

@StartNight
Copy link
Author

Thank you very much!

@philip-lamb
Copy link
Member

First part is in #76

@philip-lamb philip-lamb modified the milestones: 1.2, 1.3 Jun 7, 2023
@vizluk
Copy link

vizluk commented Feb 19, 2024

Is Unity Webcamtexture support finished?
I am using Unity on Mac, but instead of apple’s AVFoundation I prefer using unity webcamtexure.

After digging around the source code, I am able to find code related to “unity video source” here and there. It seems like all the functions needed are there but I could not make it work.

I tried things below but got no luck.
— Manually override the config to “module=External -nocopy”
— Call arwVideoPushInit manually.

If Webcamtexture support is finished can you provide documentation or guidance for proper way to set it up?

BTW, really appreciated your detailed work.
Thank you in advance.

@philip-lamb
Copy link
Member

It's not complete yet, although most of the underlying pieces needed for it are. I'll do a quick review and see what's needed.

@vizluk
Copy link

vizluk commented Feb 21, 2024

You are awesome!

@vizluk
Copy link

vizluk commented Mar 25, 2024

While waiting for your update I read through previous documentation and got a basic understanding of how the start sequence might work.

So I disabled Auto-start AR, and executed following code trying to establish external video source.

ARXController.Instance.PluginFunctions.arwStartRunningB("-module=External -nocopy",null,0);
ARXController.Instance.PluginFunctions.arwVideoPushInit(0,1920,1080,"RGBA",0,0)

However, every time I run till the second line arwVideoPushInit the Unity crashes with no error message.
I was on M1 Mac using Unity 2023, then tried intel Mac with Unity 2021 LTS, still got the same issue.

Am I doing the external video setup wrong?
Can you give me a simple guidance on steps to set it up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants