Page 1 of 1

Touch regions on Scene Ports loaded by Render Target

Posted: 16 Sep 2013, 12:58
by Carlos
Hi!

We are planning on creating a kind of demo project including some of our previous projects on it.

So, I load the vza file, then use a Scene Port to load the secondary scene on the main one, and I put a Render Target node in front of them, so I can kinda "map" the scenes on rectangles that I can move around.

Everything looks just fine, except the Touch Interactions. They buttons act if you press the region they're supposed to be before mapping the Scene. What I mean is that if you have a touch button on the lower right corner of the scene, when I use the Render Target node and map the scene on the main one, the touch button is still on the lower right corner of the main scene, not in the lower right corner of the nested scene itself...

Let me attach an image, I'm sure it's gonna be more explanatory than me :)

I hope you can help me to sort this out!

Re: Touch regions on Scene Ports loaded by Render Target

Posted: 16 Sep 2013, 13:47
by Christian Krix Schmidt
If you use Render Targets the scene needs to be displayed exactly at the same place and size on your screen. The touch interaction coordinates are not moved/scaled/etc when you put your scene in a Render Target and scale the scene. You have to be very careful with that. There was another thread about that topic here:
http://forum.ventuz.com/viewtopic.php?f ... rget#p4377