• 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
Question by calvintang · Feb 19, 2012 at 06:00 PM · guitexturerender texturein-gamehard

How do create a readout (GUI?) on the surface of an object or plane?

Gentlemen, I need your help.

I am trying to create an in game instrument cluster that would output the information to the user for learning purposes.

This is different from the normal GUI's, as the normal GUI would always be on screen all the time, but what I want is like a second camera output on the surface of a game object like a model or even a plan would be fine.

I have tried to do it with the render texture, but I think I am only half-way there. The render texture kinda works, but the GUI that I have placed on the secondary camera would appear like it is created on the main camera.

A picture tells a thousand words so lets move on to that.

http://imgur.com/AqP3z The first picture (the one on top) shows my main camera view. It is a 3D game so don't bother too much about the background.

http://imgur.com/uNJLQ

The second picture(the one on top) still shows the main camera view, but as you can see on the 3d model, I tried to add a plane and that is where I have placed my render texture.

What I'm trying to do is to make the instrument cluster appear on the instrument cluster on the motorbike only.

Maybe render texture or GUI's are not suitable here. I don't really know so please advice!

The other examples that I could think of is a in-game 3d-scoreboard, or even a in-game tv. Added this so that people could find then when they encounter a similar problem.

Things that the instrument display would show. Different pictures for the tachometer (1x~14x RPM) (Label 2D texture), speedometer readout (Label) , date (Label), gear indicator (Label).

I have previously tried to google the problem but I couldn't find a suitable answer.

Many thanks in advance!

Comment

People who like this

0 Show 2
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 calvintang · Feb 21, 2012 at 01:16 AM 0
Share

Help, anybody ?

avatar image teamwork · Jun 03, 2013 at 04:31 AM 0
Share

I'd like to know the answer to this as well....

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Loius · Jun 03, 2013 at 05:33 AM

NGUI

or other gui solution.

Textured planes.

Comment

People who like this

0 Show 0 · 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

Answer by DaveA · Jun 04, 2013 at 12:14 AM

Looks like you have the instrument cluster in the same layer as the main camera. Put all that instrument stuff in a new layer, and the camera for it too. Put the rendertexture in the default layer, and apply it to the mesh (via a material of course) on the motorcycle.

Comment

People who like this

0 Show 0 · 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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Make a Button out of a Textured Plane 2 Answers

GUI Textures problem 1 Answer

Swapping multipul textures on mouse over using raycast 4 Answers

C# GUI Button 2 Answers

Show texture when clicking left mouse button 0 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