How to make 3D Panel with input text?

Posted By: Alessandro

How to make 3D Panel with input text? - 06/03/08 22:21

Hello,
I found a problem. I need to let a user insert some text, just like if it writes over a wall.
I wanted to make text in 3D in real-time, while the user was typing it. How can I do that?
I cannot use panels or similar, since they write in 2d.
Please help me!
Thank you!
Posted By: Quad

Re: How to make 3D Panel with input text? - 06/04/08 00:41

make models of all letters and use ent_create.

you may use a var to store last printed letter position and add some on it after each letter is printed, use the new value as the next letters pos.
Posted By: Alessandro

Re: How to make 3D Panel with input text? - 06/04/08 21:41

It seems there is a lot of work to do :-(
Furthermore I "see" more problems when one uses variable length chars (or I need to calculate model size).

Is there any way to render text of a panel in a offscreen area then using a render-texture on a polygon?
Posted By: Steev

Re: How to make 3D Panel with input text? - 06/05/08 09:55

That is a interesting question.
I think you can solve it, if you use a shader that projects a bitmap on a surface.
In this bitmap you can save the input-text. The saving of the text into the image could you do on pressing a key.

A texttur-projection-shader you could find in the game-studio wiki:
http://www.coniserver.net/wiki/index.php/Texture_projector

I hope i could help you a bit.
Posted By: Alessandro

Re: How to make 3D Panel with input text? - 06/05/08 20:37

Thank you, that sounds interesting! I will check it!
© 2024 lite-C Forums