Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by ck47_s · May 17, 2010 at 08:17 AM · textload3dtexttxt

How to load *.txt files and display the text on the surface of a book model ?

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.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Lipis · May 17, 2010 at 10:21 AM 0
Share

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

avatar image ck47_s · May 17, 2010 at 10:37 AM 0
Share

thank u all the same I've changed my question to a single way

avatar image Lipis · May 17, 2010 at 10:43 AM 0
Share

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..

avatar image ck47_s · May 17, 2010 at 12:02 PM 0
Share

Im sry bout this.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by fherbst · 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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Changing 3D text in update 3 Answers

DirectoryNotFoundException when running a build 1 Answer

Read txt into string array, recognize as commands with arguments 1 Answer

I want pixelated unicode text. Need suggestions... 2 Answers

Creating a Game Object from a text file 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges