<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Automatic Text Display]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=909&amp;type=atom"/>
	<updated>2014-03-25T08:59:37Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=909</id>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6621#p6621"/>
			<content type="html"><![CDATA[<p>Pretty nice, the voice is better than expected (i tried some text 2 speech apps on my side, it was awful)</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2014-03-25T08:59:37Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6621#p6621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6613#p6613"/>
			<content type="html"><![CDATA[<p>Hehe. That is actually a text-to-speech software called Speak It (for iPad)</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-03-22T01:39:55Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6613#p6613</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6611#p6611"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Tutorial Doctor wrote:</cite><blockquote><p>I realized I still had a Box account that I could upload stuff to. Here is the project file for the narration I did using your text display script. Right now it works best in fullscreen until I use the EnableCameraLayer() function to make it work better. </p><p><a href="https://app.box.com/s/g45efbwrf53lnz09rjcf">https://app.box.com/s/g45efbwrf53lnz09rjcf</a></p></blockquote></div><p>Curious, where on earth did you find a voice narrator ? <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" />)</p><p>thx<br />vd</p>]]></content>
			<author>
				<name><![CDATA[VeganDev]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=18</uri>
			</author>
			<updated>2014-03-21T19:41:42Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6611#p6611</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6610#p6610"/>
			<content type="html"><![CDATA[<p>I realized I still had a Box account that I could upload stuff to. Here is the project file for the narration I did using your text display script. Right now it works best in fullscreen until I use the EnableCameraLayer() function to make it work better. </p><p><a href="https://app.box.com/s/g45efbwrf53lnz09rjcf">https://app.box.com/s/g45efbwrf53lnz09rjcf</a></p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-03-21T02:01:30Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6610#p6610</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6563#p6563"/>
			<content type="html"><![CDATA[<p>I just did something really catchy with your text display script. I put in my own text and put a voice narrator with it. I also add some ominous background music. It looks cool. I just need to add a background.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-03-04T16:22:07Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6563#p6563</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6418#p6418"/>
			<content type="html"><![CDATA[<p>You are TOO cool. haha. You added backspace and delete. nice.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-02-10T19:12:25Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6418#p6418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6414#p6414"/>
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>I started a thread called &quot;Code Snippets&quot; I wonder if I should put my snippets on the wiki</p></blockquote></div><p>Sure, the snippet section on the wiki is quite empty, plus your formatting perfectly matches the wiki style <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><div class="quotebox"><blockquote><p>I just tried out the text input script. THANK YOU SO MUCH! These scripts will come in so handy. I might be able to find a way to make the text delete when you press a key (put them into an array?)</p></blockquote></div><p>np <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Edit : I&#039;ve done the backspace, updated the post</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2014-02-10T17:07:03Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6414#p6414</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6406#p6406"/>
			<content type="html"><![CDATA[<p>I just tried out the text input script. THANK YOU SO MUCH! These scripts will come in so handy. I might be able to find a way to make the text delete when you press a key (put them into an array?)</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-02-10T15:51:02Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6406#p6406</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6405#p6405"/>
			<content type="html"><![CDATA[<p>I started a thread called &quot;Code Snippets&quot; I wonder if I should put my snippets on the wiki. That way, if people want a certain effect, they can just grab the code from there. These scripts would be nice as little snippets too.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-02-10T15:49:58Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6405#p6405</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6395#p6395"/>
			<content type="html"><![CDATA[<p>Basically the first example works as follow :<br /> <span class="postimg"><img src="https://dl.dropboxusercontent.com/u/19970067/Maratis/AutomaticTextDisplay/exp.jpg" alt="PunBB bbcode test" /></span><br />The red rectangle represent what will be displayed on screen</p><p>here&#039;s for stringsub info : <a href="http://www.gammon.com.au/scripts/doc.php?lua=string.sub">http://www.gammon.com.au/scripts/doc.php?lua=string.sub</a></p><p>By the way i updated the post, added another level in the example</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2014-02-10T09:27:43Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6395#p6395</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6392#p6392"/>
			<content type="html"><![CDATA[<p>I moved some stuff around in the automatic text display script to make it more dynamic to use, but I still am struggling to understand what string.sub does in layman terms, or even what those lines of code does, its a very light script (thanks for that) but that part gets me. </p><div class="codebox"><pre><code>--This is a text object
Text0 = getObject(&quot;Text0&quot;)

--This is a text object
Info = getObject(&quot;Info&quot;)

--time variable
t = 0

--initialize counter variable
count = 0

--Text you want printed
-- \n is to switch line
SampleText = &quot;MOS Technology SID&quot; .. 
&quot;\nGeneral Instrument AY-3-8910&quot; ..
&quot;\nAnalog-digital hybrid Atari POKEY&quot; ..
&quot;\nYamaha YM2149 on the Atari ST&quot;

--Alternate text that can be displayed
myText = &quot;Welcome to the Renderer&quot;

function TypeText(text_name)
    setText(Text0, T1text)
    
    --increment timer
    t = t + 1
    
    -- Change 5 to a different value to increase or decrease typing speed
    if t == 5 then
        count = count + 1
        t = 0
    end
    
    -- it&#039;s that string.sub thing who&#039;s writing letter one by one
    for i=1, count do T1text = string.sub (text_name, 1, 0+i) end
    
    -- Stop counting when we are at the end of the line
    if count == string.len(text_name) then t = 0 end
    
    Infotext = &quot;Line Lenght :: &quot; .. count
    setText(Info, Infotext) 
end


function onSceneUpdate()

    TypeText(myText)

end</code></pre></div><p>Oops, I re-read your initial post, I guess you had a time trying to figure out how it works too. hehe.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-02-10T05:26:56Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6392#p6392</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6140#p6140"/>
			<content type="html"><![CDATA[<p>No problem <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> got some more stuff coming, just need time to make the scripts<br /> less ridiculous, that&#039;s the major difficulty to me <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2014-01-07T03:04:40Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6140#p6140</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6137#p6137"/>
			<content type="html"><![CDATA[<p>Cool!!! Thanks Vegas!</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-01-06T17:51:13Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6137#p6137</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Automatic Text Display]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6135#p6135"/>
			<content type="html"><![CDATA[<p><span class="postimg"><img src="https://dl.dropboxusercontent.com/u/19970067/Maratis/AutomaticTextDisplay/TextTyping.png" alt="PunBB bbcode test" /></span></p><p>Here&#039;s an example for automatic text displaying, there&#039;s <strong>three levels</strong> :</p><p><strong>1)</strong> Simple text typing<br />It will start displaying text when you launch the scene, nothing fancy</p><p><strong>2)</strong> IOread example<br />Will read text in an external text file when you press 1 or 2 or 3 or 4<br /><strong><span style="color: #FF0000">WARNING</span></strong>, you must edit the script IOread.lua and set the correct path for the .txt file</p><p><strong>3)</strong> Text Input<br />Press any keyboard letter to write text (only letters, space, backspace and delete)<br />It will switch to a new line when you entered 15 characters</p><p>• Project : <a href="https://dl.dropboxusercontent.com/u/19970067/Maratis/AutomaticTextDisplay/TextTyping.rar">TextDisplay</a><br />• Lua script only (Simple) : <a href="https://dl.dropboxusercontent.com/u/19970067/Maratis/AutomaticTextDisplay/SimpleTextType.lua">SimpleText</a><br />• Lua script only (IOread) : <a href="https://dl.dropboxusercontent.com/u/19970067/Maratis/AutomaticTextDisplay/IOread.lua">IOread</a><br />• Lua script only (Text Input) : <a href="https://dl.dropboxusercontent.com/u/19970067/Maratis/AutomaticTextDisplay/TextInput.lua">TextInput</a></p><p>ps. the text displayed doesnt make sense, i was just on a chiptune site then copied random lines</p><p>Feel free to edit/improve <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2014-01-06T15:29:01Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6135#p6135</id>
		</entry>
</feed>
