Log in or register to post comments

Region Capture

January 28, 2016 - 8:33am #236

Hi Maxim for your excellent work, i have the following problem. when i export the 3D model in Editable POLY  the Region Capture Script Works perfectly, but when i export in Editable Mesh Doesnt work. please the image attached.

 

Thanks so much

 

AttachmentSize
Image icon region capture not work.jpg325.91 KB

Region Capture

January 28, 2016 - 6:51pm #235

Hi Samuel,  I checked it out... mesh and polygons. I don't see any problems.

All animations works fine. 

Could you pack your demo-project to the zip file and send it to me?

Region Capture

February 3, 2016 - 12:30pm #234

hi,

have you solved the shift problem?

thanks

E.

Region Capture

February 3, 2016 - 10:05pm #233

Hi maximrouf,

 

Great work!!!

The video which you shared was awesome.I tried it with tablet nexus and found problem with skin shifting (working fine on small screen device like moto x, samung duos and so on..).sharing some screenshots with you.please find attachement.

Hope for solution from your side.

 

Thanks

Vivek

 

 

 

 

Region Capture

February 3, 2016 - 10:08pm #232

Hi maximrouf,

 

The video which you shared was awesome.I tried it with tablet nexus and found problem with skin shifting (working fine on small screen device like moto x, samung duos and so on..).sharing some screenshots with you.please find attachement.

Hope for solution from your side.

 

Thanks

Vivek

Region Capture

February 8, 2016 - 2:29am #231

Hi Vivek,

It would be great if you can help me to capture the color of particular region. I am newbee to Vuforia. 

 

Thanks

Region Capture

February 8, 2016 - 2:29am #230

Hi Vivek,

It would be great if you can help me to capture the color of particular region. I am newbee to Vuforia. 

 

Thanks

Region Capture

February 8, 2016 - 2:29am #229

Hi Vivek,

It would be great if you can help me to capture the color of particular region. I am newbee to Vuforia. 

 

Thanks

Region Capture

February 8, 2016 - 2:29am #228

Hi Vivek,

It would be great if you can help me to capture the color of particular region. I am newbee to Vuforia. 

 

Thanks

Region Capture

February 8, 2016 - 2:29am #227

Hi Vivek,

It would be great if you can help me to capture the color of particular region. I am newbee to Vuforia. 

 

Thanks

Region Capture

February 8, 2016 - 2:29am #226

Hi Vivek,

It would be great if you can help me to capture the color of particular region. I am newbee to Vuforia. 

 

Thanks

Region Capture

February 8, 2016 - 2:29am #225

Hi Vivek,

It would be great if you can help me to capture the color of particular region. I am newbee to Vuforia. 

 

Thanks

Region Capture

February 8, 2016 - 2:29am #224

Hi Vivek,

It would be great if you can help me to capture the color of particular region. I am newbee to Vuforia. 

 

Thanks

Region Capture

February 8, 2016 - 2:29am #223

Hi Vivek,

It would be great if you can help me to capture the color of particular region. I am newbee to Vuforia. 

 

Thanks

Region Capture

February 14, 2016 - 11:49pm #222

Hi maximrouf,

Gentle Reminder,

The video which you shared was awesome.I tried it with tablet nexus and found problem with skin shifting (working fine on small screen device like moto x, samung duos and so on..).sharing some screenshots with you.please find attachement.

Wating for your help on the same.

Thanks

Vivek Desai

 

Region Capture

February 17, 2016 - 9:11am #221

Hi, Max. 

I'm trying to catch a texture for coloring 3d models. And meet some trouble with wrong center detection of target. I think this may be due to the definition of the target center vuforia. Becouse if I put little cube in center of coordinate it not always in center of picture. And the offset is often different.

Do you can tell me about what you think and how I can solve it? 

Thanx.

AttachmentSize
Image icon IMG_2016-02-17 20:10:44.jpg114.01 KB

Region Capture

February 17, 2016 - 9:11am #220

Hi, Max. 

I'm trying to catch a texture for coloring 3d models. And meet some trouble with wrong center detection of target. I think this may be due to the definition of the target center vuforia. Becouse if I put little cube in center of coordinate it not always in center of picture. And the offset is often different.

Do you can tell me about what you think and how I can solve it? 

Thanx.

Region Capture

February 18, 2016 - 4:05am #219
Hello friends.
Sorry for the long time response.
Here are some fixes to help you –
 
 
 

Region Capture

February 18, 2016 - 12:32pm #218

I really appreciate your efforts, maximrouf.

FYI, the shifted texture problem has gone on iPhone5, but  is still there on iPhone6.

Thank you again.

Region Capture

February 19, 2016 - 2:34am #217

Hi CodingMon. Could you run the application on IPhone6 without a connected cable?

Sometimes I see this problem with the XCode debug mode.

Region Capture

February 19, 2016 - 6:08am #216

Hi, friends!

 

I added this strings:  

regionCapture.GetComponent<Region_Capture>().RecalculateRegionSize();
regionCapture.GetComponent<RenderTextureCamera> ().RecalculateTextureSize ();

in WaitForTexture method. And it's solved problem for iPhone 6/6+ and some Android devices where offset was highly visible. But some trouble with shifted texture keep on iPhone 5c. 

 

 

AttachmentSize
Image icon 1.jpg70.41 KB
Image icon 2.jpg73.17 KB
Image icon 3.jpg73.73 KB

Region Capture

February 19, 2016 - 10:06am #215

To Maximrouf,

On the contrary, I found that it often works well with iPhone6 while running in the xcode debug mode with a connected cable.

But it keeps failing when running standalone.

 

To soznanov,

According to your finding,  I've tried putting those lines as follows.

--------------------------------------------------------------------------------------------------------------------------------

private IEnumerator WaitForTexture() {

 
yield return new WaitForEndOfFrame ();
 
if (RenderTextureCamera.targetTexture)  {
Region_Capture.GetComponent<Region_Capture>().RecalculateRegionSize();
Region_Capture.GetComponent<RenderTextureCamera> ().RecalculateTextureSize ();
 
 
Debug.Log ("reginCaptureTexture is set");
GetComponent<Renderer> ().material.SetTexture ("_MainTex", RenderTextureCamera.targetTexture);
 
}
 
else StartCoroutine(WaitForTexture());
}

--------------------------------------------------------------------------------------------------------------------------------

But the texutre comes black. 

Could you shed some light on how you put those lines exactly?

 

 

*I'll also try to solve this problem as much as I can and let you know if anything good comes out.

Thank you.

 

Region Capture

February 20, 2016 - 1:59am #214

CodingMon , my method WaitForTexture is not different, I'm needing to use first texture when target is detected. And I use proprietary method for setting texture. 

 

private IEnumerator WaitForTexture()
	{
		regionCapture.SetActive(true);
		yield return new WaitForEndOfFrame ();
		if(renderCamera.targetTexture)
		{
			regionCapture.GetComponent<Region_Capture>().RecalculateRegionSize();
			regionCapture.GetComponent<RenderTextureCamera> ().RecalculateTextureSize ();
			regionCapture.SetActive (false);
			TextureHelper.setRenderTextureForPrefab(currentPrefab, renderCamera.targetTexture);
		}
		else 
		{
			StartCoroutine(WaitForTexture());
		}
	}

 

Region Capture

February 20, 2016 - 2:02am #213

However, in Region Capture manual described about use Reculculate method's when the marker has changed. 

Region Capture

February 20, 2016 - 10:51am #212

I am running on an iPhone 6S+ and am also experiencing alignment issues, possibly sizing issues too. Running in the Unity Editor on a Macbook Pro using the built-in camera works as intended. Does anyone know what the source of the problem is?

Region Capture

February 20, 2016 - 1:24pm #211

tooMuchMustard - this problem source is  GameObject AR_Camera_Vector  orintation vector.

 

Try to change this line:

AR_Camera_Vector.transform.localEulerAngles = new Vector3 (0.0f, 180.0f, 180.0f);  // to 0 0 0

Or (And) this lines: 

  if (Screen.orientation == ScreenOrientation.LandscapeLeft) P.m12 *= -1;  // to 1
  if (Screen.orientation == ScreenOrientation.LandscapeRight) P.m02 *= -1; // to 1
 
Run all tests without connected cable.

Region Capture

February 20, 2016 - 5:20pm #210

Hi Maximrouf, these changes did not fix this for me - however, I found my problem and will describe the fix here if it helps anyone else. For context, I updated Region_Capture.cs to 1.7.5 and added two lines to GetTexture.cs as suggested by soznanov.

I was taking the RenderTexture, and converted it to a 512x512 Texture2D. I used this texture to replace an existing Sprite's texture. The problem was that this Sprite's resolution was 576x576. In the Editor, it apparently was interpreted as 512x512 so in Play mode, the newly created Texture2D matched up just fine. However, on the iPhone 6S+, it did not automagically sync up. Changing the existing Sprite's texture to be natively 512x512 fixed this for me.

Btw, thank you Maximrouf for all your effort and support here. It's a fantastic tool, great work :)

 

 

Region Capture

February 25, 2016 - 7:39am #209

To tooMuchMustard / Soznanov

I appreciate your sharing.

According to your suggestion, I put the two lines to GetTexture.cs.

But for my project, the object always comes black as you can see in the picture that I attached below.

I really wonder how you guys get the desired result.

The following is a dropbox link to my unity project.

https://www.dropbox.com/s/5db4447onlvet11/RegionCaptureTest.zip?dl=0

Could you take a look at it and shed some light on me? 

 

 

AttachmentSize
Image icon comesBlack.JPG565.1 KB

Region Capture

February 26, 2016 - 2:02am #208

Thanks, it really helpful and I found that when my phone is portrait it is always have shift but ok when landscape. I use Iphone 6 and the lastest version of region capture. So it may be the code in here 

float aspect = (float)videoTextureInfo.imageSize.x / (float)videoTextureInfo.imageSize.y;
                if (Screen.orientation == ScreenOrientation.Portrait || Screen.orientation == ScreenOrientation.PortraitUpsideDown) {
                    AR_Camera_Vector.transform.localScale = new Vector3 (1.0f / aspectaspect1.0f);
                }

 

Please take a look.

Region Capture

March 2, 2016 - 10:12am #207

Hello,

 

I´m getting this bug when building to iOS. On Android I don´t have any trouble.

What could be the cause of this.

I´m using:

Unity 5.3.1f1

iPhone 6

Xcode 7.2

Region Capture 

 

Thanks in advance.

AttachmentSize
Image icon IMG_2406.PNG69.01 KB
Image icon IMG_2404.PNG79.54 KB

Region Capture

March 15, 2016 - 3:18pm #206

Guys, do any have working demo project with simple model ? please share it.

Region Capture

March 18, 2016 - 1:27pm #205

Hi,

anyone has solved the texture shift problem?

thanks..

EG

Region Capture

March 29, 2016 - 3:13am #204

Has anyone solved shit issue and could post his solution? I tried Region Capture 1.7.2 , 1.7.5 and some solutions posted here but I always see difference between iPhone and iPad devices. 

Also - why do we have position&scale RegionCapture prefab? If Vuforia knows position of the marker and is able to scale and position objects attached to it in Unity scene aren't we able to read texture out of it using some API? How RegionCapture is exactly working? 

Region Capture

March 29, 2016 - 7:30am #203

Hi, Guys!

 

Yes, it's possible. We have the solution where we are using Vuforia + Region Capture frameworks. Of course it's not simply to produce the correct result, however we have made it to all iOS and Android devices. To write a complete documentation or to understand exactly your case, you may have to spend a lot of time and resources, which can't be free.

If you don't mean what can be wrong, try to do it from the beggining, and carefully make any changes you completely incomprehensible.

 

Good luck. 

AttachmentSize
Image icon kopati.jpg66.89 KB

Region Capture

March 29, 2016 - 8:13am #202

Could you give some details? 

What RegionCapture and Vuforia versions are you using? Did you make some changes in RegionCapture code? If so - what they are? 

Could you post some example code? How do you position RegionCapture prefab on the scene? Is it something like 

if (iPhone() ) { 

   position, scale = ...
} if (iPad() ) {

  position, scale = ... 

} /...

Do you somehow post-process image to remove shift issue? 

Region Capture

March 30, 2016 - 3:33am #201

I have not used the conditions depending on the device. I used Vuforia 5.0.10 and Region Capture 1.7.2 + 1.7.5 update without make some change in frameworks. In my case I take the texture one time when vuforia recognizing the target. To correct the shift I change WaitForTexture method like: 

 

        private IEnumerator WaitForTexture()
	{
		regionCapture.SetActive(true);
		yield return new WaitForEndOfFrame ();
		if(renderCamera.targetTexture)
		{
			regionCapture.GetComponent<Region_Capture>().RecalculateRegionSize();
			regionCapture.GetComponent<RenderTextureCamera> ().RecalculateTextureSize ();
			regionCapture.SetActive (false);
			TextureHelper.setRenderTextureForPrefab(currentPrefab, renderCamera.targetTexture);
		}
		else 
		{
			StartCoroutine(WaitForTexture());
		}
	}

What I have said before! And of course you need set correct all other important settings. 

Region Capture

March 30, 2016 - 3:33am #200

I have not used the conditions depending on the device. I used Vuforia 5.0.10 and Region Capture 1.7.2 + 1.7.5 update without make some change in frameworks. In my case I take the texture one time when vuforia recognizing the target. To correct the shift I change WaitForTexture method like: 

 

        private IEnumerator WaitForTexture()
	{
		regionCapture.SetActive(true);
		yield return new WaitForEndOfFrame ();
		if(renderCamera.targetTexture)
		{
			regionCapture.GetComponent<Region_Capture>().RecalculateRegionSize();
			regionCapture.GetComponent<RenderTextureCamera> ().RecalculateTextureSize ();
			regionCapture.SetActive (false);
			TextureHelper.setRenderTextureForPrefab(currentPrefab, renderCamera.targetTexture);
		}
		else 
		{
			StartCoroutine(WaitForTexture());
		}
	}

What I have said before! And of course you need set correct all other important settings. 

Region Capture

March 30, 2016 - 5:32am #199

the link to version 1.7.5 doesn't works.

is it possible to restore the link or someone can post it again?

 

thanks

 

Region Capture

March 30, 2016 - 9:41am #198

Region Capture

March 30, 2016 - 9:47am #197

Hi, I need 1.7.5 not 1.7.2

 

thanks

 

Region Capture

March 30, 2016 - 9:56am #196

But version 1.7.2 is working fine, i dont understand, the problem i have is, the region capture script work for static models but dont for animated 3d models, i dont know why

Region Capture

March 30, 2016 - 10:43am #195
Hi everyone.
I have received many letters and messages from you guys. I am very pleased that the "RegionCapture" is very important for you.
– Now, after a long break, I am ready to continue to develop this plugin.
 
There will be two versions of the "RegionCapture" plugin - paid and free.
In the paid version, you will see a new option - QR Сode reader.
 
Stay tuned !

Region Capture

April 1, 2016 - 12:49pm #194

Great asset. Saved me days of work. Glad to see you are about to work on it again and will look forward to what else you do with this.

Only thing with the tutorial video, once the art part started, it was harder to follow. Luckily, one of the art guys was able to watch the video with me and help me figure out what was going on. 

Region Capture

April 2, 2016 - 2:43am #193

Can anyone give simple model with drawing from photoshop for testing this plugin?

Region Capture

April 2, 2016 - 5:14pm #192

RegionCapture 1.7.7  (Free version)

Before starting the IOS application - make sure that the lightning cable is unplugged.

________________________________________________

https://github.com/maximrouf

Region Capture

April 2, 2016 - 6:54pm #191

farshmaker wrote:

Can anyone give simple model with drawing from photoshop for testing this plugin?

 

ya,, it is hard to follow the tutorial with no art basic ,,,, can someone give sample pls to try this plugin.. thanks :)
i really want try this plugin :)

Region Capture

April 3, 2016 - 12:42pm #190

Hello maximrouf, I downloaded 1.7.7 and the shift is still happening. As a matter of fact when I leave the cable connected it works kinda better.

Region Capture

April 3, 2016 - 2:13pm #189

Guys, need sample unity project with simple 3d model. I can't follow the tutorial where need working with 3d max.

Region Capture

April 4, 2016 - 12:55am #188

Richmerren, hi.  Please give me more details -

1. The device name (Iphone5, Iphone6+, Ipad Air...)
2. Orientation option in the build settings (Portrait, Landscape Left ...)

Region Capture

April 4, 2016 - 9:15am #187

1. iPad Air

2. Portrait

 

Thanks in advance.

P.s: Sent you a DM.

Pages

Log in or register to post comments