Search Unity

Computer screen or monitor?

Discussion in 'Scripting' started by BlackArcane, Apr 4, 2013.

  1. BlackArcane

    BlackArcane

    Joined:
    Jun 26, 2011
    Posts:
    119
    Hey all! I want to implement a computer screen in my game. I have a model of a screen and I want to be able to display text on it according to what the user types. How could I achieve that? Thanks in advance! :)
     
  2. Mike L

    Mike L

    Joined:
    Sep 14, 2010
    Posts:
    1,035
    you could maybe find a way to modify the texture? or you could try using a 3d text object? those are the best answers i have....
     
  3. BlackArcane

    BlackArcane

    Joined:
    Jun 26, 2011
    Posts:
    119
    3D Text could work but if I am not mistaken it is always rendered, even if it is behind other objects so I will have trouble using it. Modifying the texture seems hard. Any easier way?
     
  4. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,102
    Only becuase the deafult 3dtext shader doesnt z sort
     
  5. BPPHarv

    BPPHarv

    Joined:
    Jun 9, 2012
    Posts:
    311
    I was going to suggest banging out one of the GUI elements and spread it over the screen surface but this will only work for a front view only it will look odd from an angle, modifying a material would be the way I'd go about it.
     
  6. wccrawford

    wccrawford

    Joined:
    Sep 30, 2011
    Posts:
    2,038
    Render to texture. It's a Pro-only feature.
     
  7. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,145
    http://wiki.unity3d.com/index.php?title=3DText

    --Eric
     
  8. BlackArcane

    BlackArcane

    Joined:
    Jun 26, 2011
    Posts:
    119
    Render to texture isn't for rendering a camera view to a texture? How could I use this for a monitor?

    Thanks Eric! This could actually work now! :D
     
  9. TylerPerry

    TylerPerry

    Joined:
    May 29, 2011
    Posts:
    5,577
    What screen resolution are we talking?
     
  10. BlackArcane

    BlackArcane

    Joined:
    Jun 26, 2011
    Posts:
    119
    Do you mean the in-game monitor resolution, or the resolution of the actual build? The first is pretty small, a surface about a 2,1,1 scaled cube in unity. The second is user defined...