I can't seem to get this to work at all. It's just a grey image. I'm using Unity 5.2 and Vurforia 5.0.5. The image target is detected and tracked, but the region capture texture and gui preview texture are just grey. I followed the setup exactly. But maybe I didn't fully understand what you mean when you say "Get Texture from 'Render_Texture_Camera' in PlayMode" on step 1. Do you mean call a method to get the texture and set it to a material? It looked like you were already doing that in Region_Capture.
Hi, Thanks for this great asset . I wanted to ask if Region Capture has a method or a way to know when the marker is completely in the view of the camera.
Thanks very much
So i was just playing around with the region cature asset, i made an android app, that just saves the picture of the image target on the Android Device using the makeScreen Function.
I Tested it out on a few devices, however i observed a few strange things, the saved image was a bit different on each device.
I tested it out on the Follwowing three devices
OnePlus One , the image target was saved perfectly,
Smasung S III, the image target was saved with the right width but the length was bigger
Xioami Mi Pad , the image length was right, but the width was bigger
I used the Auto Calculate Region Size Feature, and then i set the region capture prefab size accroding to image target size, obtained the same results.
I'm using unity 5.1.2f1 32 bit with Vuforis 5.0.5
I guess the script works fine with OnePlus, however doesn't really work with Samsung S III and the Mi Pad, Any ideas on what could be going wrong here
I've added the saved images in a zip.
Small fix with MakeScreen() on Android.
Many thanks to Afriyandi Setiawan
Region Capture 1.6.0 (For Unity 5x + Vuforia 5.0.5 only)
Fast GPU Capturing
Auto Region size for non-square markers
FSM states "Marker is out of bounds" and "Marker is returned"
Reduce color noise
Hide Android navigation toolbar
Save capturing frame to localStorage as PNG (new)
"Recalculate RegionSize" (method) if the marker has changed (new)
"Recalculate TextureSize" (method) if the marker has changed (new)
Please, make screenshots, if something is not working.
Hi, guys!How to save captured image to local file? Or to texture that will be the same at runtime after capture?
Region Capture 1.5.5 (For Unity 5x + Vuforia 5.0.5 only)
FSM states "Marker is out of bounds" and "Marker is returned" (new)
Autofocus option (not worked on Galaxy Alpha)
so i used the asset and made an android app with unity, the asset seems to work fine on most phones, but sometimes fails to cature the target region on some tabs and phones, like the Mi tab, any idea as to why this could be happening
Is there going to be a update on Vuforia 5.0?
Region Capture 1.5 (For Unity 5x only)
Reduce color noise (new)
Autofocus option (new)
Hide Android navigation toolbar (new)
PS: Unity 4X is not supported more.
Region Capture 1.4.1 (Small Fixes)
Region Capture 1.4
1. Portrait mode - added
2. LanscapeRight mode - bug fixed
3. Shift image in Editor - bug fixed
4. Incorrect capturing on Android devices with graphical navigation bar - bug fixed (hide bar on start application)
Hi Ihno. I'll add it in a few days.
Thank you very very much !!!! It works perfectly fine.
I want my app to be in Portrait mode, but when I choose that, it doesn't work anymore. And I can't find the things I have to switch/change, to make it work.
Can you help me ?
Can someone help with saving GUI Texture to file?
I can't get instance of material maintexture. Please help
Thank you very much for your asset! I have spent weeks tying to do this. Would you consider to put this on GitHub or Bitbucket, so people can follow updates or other things like this? That would be very useful.
Thanks for great asset! Can you explain how to save captured texture to file?
GOtoApplyTexture - object that we paint on
mainTextureAs2D- mainTexture from GOtoApplyTexture object
TextureToSave - public Texture2D - original mainTexture of GOtoApplyTexture object
Ok.. I added version for Unity 4X.
Now, all versions will be available on SourceForge.
I was getting some weird probelms with the unity 5.0 version. When i build the android app, the app was laggy and crashed every now and then. With the older version i'm not having such issues, so i decided to use the older version.
I tried to create the region capture prefab my self, but wasn't able to get the region capture perfectly. i think i might be having an issue with the shader script. The camera feed looks distorted on my region capture prefab. Any idea on how to go fix that. I seriously am out of ideas as to how to fix that
Why do you use an older Unity version?
So i'm working with unity 4.6
and when i import the region capture project, i'm unable to use the region_capture prefab for some reason.
do you have any idea why this might be an issue.
I tried to work your code in unity 5.0 it worked fine
Great !! it's exactly what i want to do. Thank you very much!
I have read your request and I added some new elements in the code.
– RenderTexture draw in GUI --- ("Show Texture" checkbox)
– Auto Position and Scale --- ("Auto Region Size" checkbox)
– Update help information --- (new ReadMe.txt)
Click here – Setup image
ok i'm just a complete newbie to this, so ths question may sound very trivial.
I want to obtain the image as Texture2d and i can't figure out how to go about it.
Some guidlines as to how to go about it
oh, I see, what we want to do now is change the position, rotation of "region_capture" reference to the position of "Image Target" ?
For scale size? ..
I just know the aspect ratio of my prefab to ImageTarget. (1/10)
how are you doing the calculation for it ?
Set your "region_capture" prefab size is 256 / 10 = 25.6
256 for the image target scale.
I mean - the scale values of the ImageTarget.
512 x 512 pixel
What is the size of your ImageTarget?
Thank you very much about your code !I followed your guide, but it just wrap everything which camera watched to "Region_Capture" material. Should i finish step 5 before i can get just image target in camera image ? and you sad that use Scale, Position, and Rotation, these modifies attack to texture of material ?
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?
To reset your password please enter the email address associated with your account. An email will be sent to you with instructions on how to complete changing your password.