Hello Ventuzians!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
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!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
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?
Moderator: Support
How to make a simple Scroll Box for text?
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?
Re: How to make a simple Scroll Box for text?
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
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