Hello guys.
I need to reach next effect, and have a big problems with that, even dont know how to reach that.
We have 100% stretched background image inside Canvas.
This image should be invisible by default(set alpha 0, or what).
I have a kinect representation of my body, it is 3d Avatar, without renderers. I do convert the coordinates of this 3d avatar to 2D space, and now,
I need to get the shape of this avatar, it’s silhouette, and enable the area of image, on this background one, with the shape of my silhouette, so in short words, I would only render the part of ui.Image, where my body, or any 3d object is, with the shape of the body(what is also dynamic, because I can turn hands, or any other parts)
Do you guys have any ideas how to reach that?
First what I was thinking about was UI.Mask, but it is not really, what Im looking for, or do I wrong?
The second what I have in mind - is a shaders, but Im not the spec in it, so dont know, how they would work.
Should I just create a material with such a schader, put it to an object, and set the texture to shader? tried now with a cube and UI sprite icon on it, not working if I do move object, or just a mouse…
First of all thanks a lot for your help with that! Really appreciate that!
Trying to do the same what you do on Mac Yosemite, and it not works, just a white sphere, without any scrolling.
From what I think - the problem is in fInput, maybe it can not read the touchpad data as this fInput, and doesnt render it. Anyways, gonna try that on the windows platform tomorrow in the evening.
Btw, for now from what I see it reads the position of the cursor, but what if I want to change this to position of the sphere, of an object, that is converted in 2D space? how this shader may be modified?
Im really 0 with shaders, so even dont know how to set the params here, that I can access from C# later.
It does not read the cursor
fInput is fragment input (for the fragment program)
I can’t really troubleshoot, have you tried it in a build (not editor)?
To confirm. Have tested in on my Windows PC. And it works good!
But something strange is with the mac, it is not working on it.
Thanks to this project, that it is for kinect and Windows.
However, thanks a lot Hpjohn! You have done me a great favor, and I hope not only to me!