Log in or register to post comments

Region Capture

January 9, 2018 - 2:16am #287

Hi Maximrouf,

                I used the region capture concept in ARToolkit-Unity. I got it working. Thanks for the concept. I'm trying to implement the same in EasyAR-Unity. But its not working over there. Will the concept work in other AR tools like EasyAR supporting Unity. Could you guide me in this regard.

 

Regards

Alan 

Region Capture

December 28, 2017 - 1:01am #286

Hi Pedrohbalmeida.

This is due to the size discrepancy between the ImageTarget and the RegionCapture gameobject.

In your case, the ImageTarget has dimensions of widht and height {W 0.06985 – H 0.12065}

You need to scale the "RegionCapture_A" gameobject as –

X = (ImageTarget W * 0.1f) = 0.006985

Z = (ImageTarget W * 0.1f) = 0.006985 (because we need a quad region here)

And you need to scale the "RegionCapture_B" gameobject as –

X = (ImageTarget W * 0.1f) = 0.006985

Z = (ImageTarget H * 0.1f) = 0.012065

Also you need to scale the "My_Model_B" gameobject as –

X = 0.05789474

Y = 0.02341484

In older versions, the scale transform was generated automatically.

(AutoRegionSize checkbox) However, it may sometimes mislead users.

Probably, I need to do something similar in the next version.

Region Capture

December 27, 2017 - 10:02am #285

Hello Maxim,

sorry for the delay, it was x-mas holiday. I've created a sample raw project, using your provided sample with the astronaut image as the target. You can both use the astronaut image on your cell-phone or print it bw, it works also.

The expected result was that the astronaut texture was correctly mapped to the sphere, but as you can see the result is only some noise. I've tracked the problem to the U/V mapping that doesn't use any information about the image target.

Here is the project link: https://www.dropbox.com/s/hk33gi9btfz1wdr/RegionCaptureSample.zip?dl=0

Unity: 2017.3.0f3

Vuforia: 7.0.36

Region Capture: 2.0.6

I was able to get RegionCapture 1.8.0 working with the same setup.

And this is the save region result:

Best regards,

AttachmentSize
Image icon astronaut.png80.67 KB

Region Capture

December 22, 2017 - 7:55pm #284

Hi Pedrohbalmeida. Can you share your Unity project in zip archive ?  I would like to see what's wrong.

Region Capture

December 22, 2017 - 11:58am #283

Hi Maxim,

 

I've downloaded your new package and run your demo, the problem still exists. Here is a video showing the problem:

 

https://youtu.be/DHA_kKmiOwk

 

The RegionCapture that is linked to the model is only performing some U/V operations on the captured texture, not using the ImageTarget at all. If I remove these operations then obviously the texture is copied to the RegionCapture surfaces.

 

I'm using Vuforia 7.0.36, but I don't believe this is the problem since your old version works fine.

 

Best regards,

Region Capture

December 22, 2017 - 10:24am #282

Hello Maxim,

 

thanks for the quick reply. I'll try your new package. I started watching your video and you probably should blur your vuforia license if that's your main license.

 

Best regards,

Region Capture

December 22, 2017 - 4:00am #281

Hi Pedrohbalmedia.

Maybe you're right. The new plugin is different from the old versions.

However, it became better and now it works on a different principle.

Today I recorded the video, with the workflow.

And also uploaded the fixed version to the GitHab

Region Capture

December 21, 2017 - 12:23pm #280

Hello Maxim,

I believe you've uploaded the wrong files in the last two versions. Region_Capture.cs (not RegionCapture) file is missing, and the other file simple maps the unwrapped UV to the region capture plane and it's not working, that's the problem ertr2 is complaining about.

I've switched to the 1.8 version in your github and it worked fine. Strange that your samples use the new RegionCapture.cs and according to your posts it's supposed to work, but it doesn't contain any reference to ImageTarget.

 

Best regards,

 

Region Capture

December 21, 2017 - 4:01am #279

Hello friends.

I uploaded a new version 2.0.6

Now there is a new debug-scene (named "Debug_UI"), where you can fix the shift using the control buttons.

Instruction:

  • Build and run the debug-scene on your device.
  • Press the control buttons to fix texture shift.
  • If the shift is corrected - take a screenshot and post it here. (please use the link to any free image hosting)

You need to run this application two times (i.e., in two modes):

  1. With the autorotation turned on (in the system settings of your device, not in build settings)
  2. With the autorotation turn off.

Also, please post the following information:

  • Unity version
  • Vuforia version
  • RegionCapture version
  • Device name

Region Capture

December 14, 2017 - 4:10am #278

Hey folks, I stumbled over the "Texture Shift" issue recently. I read you've found a script or something to prevent the texture from shifting?

However this Pastebin link was removed and so I still have this issue :/ 

Can anybody please provide me with the needed scripts and a short instruction where to put them? 

I'm running the 5.6.3p4 Version of Unity.

Thanks in advance,

Martin

Region Capture

December 8, 2017 - 10:21am #277

I'm seriously...

Region Capture 2.0 is  not working..

In Unity3D Editor is good working..

But After Android build app is not working..

This Image is my bad case....

Region Capture

December 6, 2017 - 6:36am #276

Hi Shinjiq. Thank you for reminding. I added the "BSD 3-clause" license.

https://github.com/maximrouf/RegionCapture/blob/master/LICENSE

Region Capture

December 6, 2017 - 12:53am #275

Dear Maxim Rouf,

What license should we use for "Region Capture"?

Thank you.

Regards, shinjiq

Region Capture

November 23, 2017 - 8:04am #274

Dear Maxim Rouf,

I'm glad for new version of "Region Capture".

I also try to run the examples whole days, but still not sure how this tool work. : (

Is possible give tutorial video for new version?

Thank you.

Regards, Pierre

maximrouf wrote:

Hello everyone.

I'm glad to announce that a new version of "Region Capture"

is available on the Github

Regards, Maxim Rouf

Region Capture

November 16, 2017 - 12:31am #273

Who can give me tutorial make coloring by Region Capture 2.0 in Unity 2017.2 please! I'm newbie

Region Capture

October 17, 2017 - 1:58pm #272

Hi, ArtefactoRA.

We tested it on iPhone 6-7 and iPad 3

It would be great - if you could test a new plugin on the Air1.

Regards, Maxim Rouf

Region Capture

October 17, 2017 - 6:49am #271

Hi,

At first, you've done an amazing work so thank you !!

Now, we're working with regionCapture 1.8.0 on Unity 5.6.2 and Vuforia 6.2.10 and we have some issues on  iPad Air 1.

The texture doesn't apply entirely on our 3D model. But it works fine on iPhone 6S and some Android devices.

Did you fix these issues in your last update?

Thanks for your answer.

Region Capture

October 17, 2017 - 6:49am #270

Hi,

At first, you've done an amazing work so thank you !!

Now, we're working with regionCapture 1.8.0 on Unity 5.6.2 and Vuforia 6.2.10 and we have some issues on  iPad Air 1.

The texture doesn't apply entirely on our 3D model. But it works fine on iPhone 6S and some Android devices.

Did you fix these issues in your last update?

Thanks for your answer.

Region Capture

October 12, 2017 - 11:56am #269

Hello everyone.

I'm glad to announce that a new version of "Region Capture"

is available on the Github

Regards, Maxim Rouf

Region Capture

September 22, 2017 - 2:08am #268

Hi, currently I'm working on a project for AR coloring too. I already success to make the 3D AR object to pop out, but when I apply color on my 2d plane, 3D object does not detect the color change. Any one know the reason and the solution? Thousand thanks for the help :)

Region Capture

September 1, 2017 - 4:07am #267

Got the same problem but with iOS instead of Android :D

Region Capture

September 1, 2017 - 4:06am #266

Ah and +1 to the shifted textures on iPads -.-

Region Capture

September 1, 2017 - 1:05am #265

wilk3ns wrote:
gringofxs wrote:

it came from unity, is added right? is this one?

No you have to add this framework in xcode. For some reason unity doesnt add it automatically.

 

Could you please tell me your way? I have no idea how to fix this. Got the same issue :/ 

Region Capture

August 25, 2017 - 2:59am #264

Hi

I want to save texture in my local storage, in the guide says using RenderTextureCamera.MakeScreen();. Where i must put that code?

Region Capture

July 16, 2017 - 9:06am #263

desarrollorimx wrote:

anbu wrote:

https://github.com/maximrouf/RegionCapture

maximrouf tutorial only works in android.When i tried to export it for IOS.it throws error like below.

 

1. Dll could not be found - RenderTextureCamera.cs - Line 174

2.Unzip could not be found - SharpZipLibUnzipper.cs

its not even publising to xcode files.

 

can anyone confirm and hel to resolve it ?

 

Unity 5.5.0 p3

Vuforia 6.2.6

Region capture 1.8.0

Hi, what I did was to comment the code to capture screen and I do not set the error, but I have problems compiling in xcode, in the documentation it appears that you have to add AssetsLibrary.framework in xcode but I have not co-created how to add it, you know how?

 

Follow these steps: https://stackoverflow.com/questions/3352664/how-to-add-existing-frameworks-in-xcode-4



1. In the project navigator, select your project.

2. Select your target.

3. Select the "Build Phases" tab.

4. Open "Link Binaries With Libraries" expander.

5. Click the + button.

6. Select your framework.

7. (optional) Drag and drop the added framework to the "Frameworks" group.

Region Capture

July 16, 2017 - 9:01am #262

del

Region Capture

July 16, 2017 - 8:56am #261

anbu wrote:

https://github.com/maximrouf/RegionCapture

maximrouf tutorial only works in android.When i tried to export it for IOS.it throws error like below.

 

1. Dll could not be found - RenderTextureCamera.cs - Line 174

2.Unzip could not be found - SharpZipLibUnzipper.cs

its not even publising to xcode files.

 

can anyone confirm and hel to resolve it ?

 

Unity 5.5.0 p3

Vuforia 6.2.6

Region capture 1.8.0

I found a solution: you have to add "using System.Runtime.InteropServices;" to your class!

Region Capture

May 13, 2017 - 11:50am #260

Hi Maximrouf,

Any way to support front camera? The render_testure_camera return a total black image texture when I use test it on iPad.

Alan

Region Capture

April 21, 2017 - 2:26am #259

Hi Maximrouf,

I have a problem with shifted texture on some android devices(Note 5, Nexus 4,....) On iOS devices its worked fine. on android LG V10 is worked fine too

Please let me know how to fix it. Thanks

 

My project use:

Unity 5.5.3

Vuforia 6.2.10

Region capture 1.8.0

 

Region Capture

April 14, 2017 - 2:09am #258

Hi, great plugin!

I'm having a problem, in my case i need that the  "Region_Capture_Unity" be inside the image target in unity, but if i put "Region_Capture_Unity" inside the image target the texture i'm getting is displaced..any thoughts that help me to solve this?

Region Capture

March 20, 2017 - 1:28am #257

hi. can anyone help me. this is the case: when the texture is captured, i want it to be saved, not on local storage but just temporarily save in while the application is running. the reason is because i only want to use the texture for another scene. cause i have a game scene wherein the texture of the 3d model will be based on the captured texture from AR camera... i was thinking about storing it in a static variable and then calling it on the other scene but i dont know the code for storing the texture in variable. i hope someone will response. thanks

Region Capture

March 11, 2017 - 9:14am #256

Hi! What about black texture problem?

It's OK everywhere except iPhone 5s

Region Capture

February 25, 2017 - 9:58am #255

anbu wrote:

https://github.com/maximrouf/RegionCapture

maximrouf tutorial only works in android.When i tried to export it for IOS.it throws error like below.

 

1. Dll could not be found - RenderTextureCamera.cs - Line 174

2.Unzip could not be found - SharpZipLibUnzipper.cs

its not even publising to xcode files.

 

can anyone confirm and hel to resolve it ?

 

Unity 5.5.0 p3

Vuforia 6.2.6

Region capture 1.8.0

Hi, what I did was to comment the code to capture screen and I do not set the error, but I have problems compiling in xcode, in the documentation it appears that you have to add AssetsLibrary.framework in xcode but I have not co-created how to add it, you know how?

Region Capture

February 25, 2017 - 9:58am #254

Hi, what I did was to comment the code to capture screen and I do not set the error, but I have problems compiling in xcode, in the documentation it appears that you have to add AssetsLibrary.framework in xcode but I have not co-created how to add it, you know how?

Region Capture

February 25, 2017 - 9:50am #253

Hello

How can i compile for ios?

Region Capture

February 16, 2017 - 4:44am #252

https://github.com/maximrouf/RegionCapture

maximrouf tutorial only works in android.When i tried to export it for IOS.it throws error like below.

 

1. Dll could not be found - RenderTextureCamera.cs - Line 174

2.Unzip could not be found - SharpZipLibUnzipper.cs

its not even publising to xcode files.

 

can anyone confirm and hel to resolve it ?

 

Unity 5.5.0 p3

Vuforia 6.2.6

Region capture 1.8.0

Region Capture

January 31, 2017 - 9:42pm #251

hi. i'm using this asset in my thesis project now and its working fine except that the model is shaking.. can you please help me to fix it? thank you so much for this :)

Region Capture

December 17, 2016 - 1:59am #250

Hi, 

I want to make sample project using this library, on some rect marker create cube and color it. 

I want t ask if I need any special 3d object? I created simple 3d object cube from Unity and it does not render anything when I check on scene start or android device. 

 

edit: I made some improvements in code, I also downloaded some free package from assets store. It render now but and I can see something on my phone and also there is help camera that shows my marker but this cube prototype ive downloaded does not change color

 

Thanks for any help

King regards

Region Capture

December 16, 2016 - 12:11pm #249

Hello 

can u send me a sample of the project that has worked with you!!

Region Capture

December 7, 2016 - 1:39am #248

I had the same issue as sriram115 and Philippe89, however just replacing Texture2D with Texture didn't seem to work on Android. Apparently these aren't as interchangeable as it seems. So instead I converted the VuforiaRenderer Texture to a Texture2D, which can then be used as _MainTex. 

On line 133, replace

VideoBackgroundTexure = VuforiaRenderer.Instance.VideoBackgroundTexture;

with

Texture2D PreVideoBackgroundTexure = (VuforiaRenderer.Instance.VideoBackgroundTexture as Texture2D);

VideoBackgroundTexure = PreVideoBackgroundTexure;

It's a workaround, but solved it for now. 

AttachmentSize
Image icon Screenshot_20161207-104714.jpg130.13 KB

Region Capture

November 27, 2016 - 3:22am #247

Looks like this thread already abandoned, but if anyone else could help, it will be good.

My question, is it possible to save the the colored drawing as the texture for the object?

 

Thanks.

Region Capture

November 25, 2016 - 5:32am #246

Hi, Thnx for amazing plugin! I got it working in mono mode, but i stereo it starts capturing texture before whole is visible. Sould I change anything, set one camera only?

I've tried to find where in the script "full marker" is detected ( green color with ColorMode on ). The condition checks if the marker ( Region object ) is outside the bounds, otherwise checks only MarkerIn state. Could anyone point me how to properly check the stae of "full marker" in stereo ( vr ) mode?

 

Region Capture

November 24, 2016 - 3:55am #245

help me region capture not working

 

Region Capture

November 22, 2016 - 5:46am #244

anybody have working source code ?? github source code not working :(

Region Capture

November 20, 2016 - 9:05am #243

????????????????????????

Region Capture

November 17, 2016 - 8:52am #242

thanks mr.Philippe89 the error is solved but texture capturing is not working can you give me any solution??

Region Capture

November 16, 2016 - 9:52am #241

in line 33 change

    public static Texture2D VideoBackgroundTexure;

for



    public static Texture VideoBackgroundTexure;

Region Capture

November 15, 2016 - 8:00am #240

hi maxim,

 i'm facing this error when i import this to unity

Assets/Region_Capture/Scripts/Region_Capture.cs(133,13): error CS0266: Cannot implicitly convert type `UnityEngine.Texture' to `UnityEngine.Texture2D'. An explicit conversion exists (are you missing a cast?)

 

can you give me a solution

Region Capture

November 15, 2016 - 7:56am #239

im facing this error can you give me a solution 

 

 

Assets/Region_Capture/Scripts/Region_Capture.cs(133,13): error CS0266: Cannot implicitly convert type `UnityEngine.Texture' to `UnityEngine.Texture2D'. An explicit conversion exists (are you missing a cast?)

Region Capture

November 6, 2016 - 7:20pm #238

Hi Maxim,

I'm using this library in my project but when I run app on iOs 10, it seems this library doesn't work. The model is not colored. Can you tell me how to fix it please?

(On other os, the library works greatly :D)

Pages

Log in or register to post comments