Start a new topic
Solved

Coloring App

Hello, i want make AR coloring app on wikitude and i need HELP. 

I have image -> 

image

I added to .wto editor and setup in unity to image tracking. When i launch app, my app rendered somethink like that -> 

image

How i can get Textrure2D from this region? Only in this Rect? 

image


Hi,


I noticed that this issue was marked as Solved. Did you manage to figure out what the problem was?


Best regards,

Alexandru

hi, after few moths i want comeback to you. How i can remove this parts ? 

image

I want keep only inside marker bounds

Hi,


I didn't get a change to try it out on iOS, but it should work the same there. If you encounter any problems, please let us know.


Best regards,

Alexandru


1 person likes this

thanks, very interested. It should be work on ios?

Hi,


I attached a script that shows how to calculate the UVs that match the corners of the target in the WikitudeCamera.CameraTexture. It will then display a quad with these UVs to the screen, to demonstrate the method. This was tested with the Image Tracking - Simple scene on an Android device. You can just attach the script to a GameObject in that scene to try it out.


Hopefully this is enough to get you started.


Best regards,

Alexandru

cs
(3.86 KB)

i cant undestand how i can get image from specific region? I can dispaly all image from camera, but i need image from spefici place

Hi,


This forum post seems like it might help for your question:


https://support.wikitude.com/support/discussions/topics/5000078480/


If you still have open questions or need details, please provide details on the open points.


Thx and greetings

Nicola

Login or Signup to post a comment