Hi there !
I'm a beginner and I'm workin on a project using Unity3D to create a 3D-book.
(I know Unity3D is designed for games but it looks powerful enough to do this ..)
I come up with this question about how to load *.txt files and display the text on the surface of a book model (My thought is to use 3DText but I'm not sure about it)
Could someone help me ?
Thanks a million !
in fact I'm not a native English speaker . I mean I'm a foreigner college student. please forgive me of my poor way of expressing. I need help asap. I'm messed up with the rules here at this site.. forgive me again.
Everything is possible, but you have to be more specific and you are asking a lot of different things in one question. Please go through the FAQ to see how this website exactly works (http://answers.unity3d.com/faq) because it's not a forum. From the guidelines: Don't post multiple unrelated questions in one post. And I think loading a *.txt, displaying, animating, showing dialogs, etc.. could be separate questions. regards
thank u all the same I've changed my question to a single way
I think it's still two different questions.. how to load a .txt file and how to display a text on 3d surface..! About the first check this answer for example: http://answers.unity3d.com/questions/5185/help-me-about-reading-txt-file/5201#5201 to get an idea how to read from .txt files.. if you want more info you can always comment under any answer... but in order to get an awesome answer to your questions.. you have to be very specific and ONE question at a time...!! good luck and have fun..
Im sry bout this.
Answer by felix.
Jul 26, 2010 at 10:16 PM
First - if your pages aren't dynamic, and the application is thought for offline use (can be bigger size), you should think about using textures only. Create your text in any application and export the page as standard texture, this is by far the easiest way.
But in every other case ---
You require UnityPro for my way to achieve this. I have used it myself for an interactive typewriter, where the text was written by the user and directly assigned to the paper.
Set up a new camera. Set up a GUIText object.
Put this GUIText object in a new layer (select a custom layer for it).
Tell your camera to
only render that layer; set the camera's background color to white and your text color to black, select the right font etc.
Create a new RenderTexture and assign it to the camera.
Import your *.txt file (look at the comments and other answers) and assign it to the GUIText objects text variable.
You can now use this RenderTexture like every other texture - for example, assign it as MainTexture to your book pages.
Answer by Chris Masterton
May 17, 2010 at 05:34 PM
How to readva text file is answered here - http://answers.unity3d.com/questions/5185/help-me-about-reading-txt-file
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
No one has followed this question yet.
Custom text shader in Strumpy Shader Editor
3-D Text Visible Through my Level
Load and save text from web server
I want pixelated unicode text. Need suggestions...
Changing 3D text in update