How to implement a teleprompter?
-
Hi I'm working on a teleprompter software (that flips a given text and lets the user to scroll it pixel by pixel) I tried GDI+ using C# .Each time the user wants to scroll the text an image of the current lines is made.Then the image is rotated and loaded into a pciture box. Unfortunately this procedure is very slow. I like to ask if there is anyway that I can do the same thing using DirectX or OpenGL (I've already searched the ineternet but I couldn't find any answer) Is there any other way that I can show the text upside down and let the user to scorll it? Thanks a lot
-
Hi I'm working on a teleprompter software (that flips a given text and lets the user to scroll it pixel by pixel) I tried GDI+ using C# .Each time the user wants to scroll the text an image of the current lines is made.Then the image is rotated and loaded into a pciture box. Unfortunately this procedure is very slow. I like to ask if there is anyway that I can do the same thing using DirectX or OpenGL (I've already searched the ineternet but I couldn't find any answer) Is there any other way that I can show the text upside down and let the user to scorll it? Thanks a lot
beatles1692 wrote:
I like to ask if there is anyway that I can do the same thing using DirectX or OpenGL (I've already searched the ineternet but I couldn't find any answer)
Actually, you probably did, but didn't realize its use. Using a render-to-texture method for the text, you can with either directX or OpenGL (I am only familiar with OpenGL), render your text to a texture "off screen" this is your graphical text, you can then position and scroll it and then reset the texture and position coordinates when the next line comes up. The net effect is the appearance of single pixel, continuous scrolling. Alternately, you can just render the text to a quad surface as texture fonts and then just scroll the quads off the screen while adding new ones below. (See lesson 17[^] the demo doesn't do what you want, but is capable of doing what you want when you learn the technique.
_________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)