Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

How to make a simple Scroll Box for text?

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
dilljone
Posts: 1
Joined: 10 Sep 2017, 01:43

How to make a simple Scroll Box for text?

Post by dilljone » 10 Sep 2017, 01:49

Hi there. Still very new to Ventuz. Hopefully this is a simple request. Essentially I'm trying to make a simple scroll box for text. What would be the proper way to do this in Ventuz?

stephen
Posts: 74
Joined: 06 Aug 2013, 14:11

Re: How to make a simple Scroll Box for text?

Post by stephen » 12 Sep 2017, 10:59

Hi dilljone,

The scrollbox has two main problems:
1. Text must be occluded outside the box
2. Text must be movable

1. can be solved by using the Stencil Set and Stencil Test Nodes (hover over them with the Mouse and press F1 to open a dropdown which holds an example scene of the Stencil Nodes).
2. can be solved with a Touch Translation Node in front of the Text - the user can then drag the text upwards which is probably rather intuitive enough. You can also limit the maximum Translation that the user can apply this way. X Translation should be limited to exactly 0. Y Translation should be limited to 0 and the Y Size of the Text (you can get it from the Block Text Node) minus the size of the Scroll Box.

You could also create a slider for a scrollbar on the side but the logic is very similar - note that the Touch Translation Outputs the current X and Y Positions which you can use to reposition the text.

Hope this gets you started!
Stephen

Post Reply