Menu

Stay on top

Help
Olivier P.
2015-04-08
2015-05-06
  • Olivier P.

    Olivier P. - 2015-04-08

    Hello,

    is it possible to make a text always on top (first seen with the camera) of all other object ? So with any object or their position the text will stay first.
    Thank you.

     
  • nelsonchu

    nelsonchu - 2015-04-09

    I think what you are looking for are those HUD (Headup-display) objects.

     
  • Olivier P.

    Olivier P. - 2015-04-09

    Thanks, but I tried it, and it doesn't work.
    If I put a HudText he will be visible only if there is no texture on object. If there are, he will be hide by it

    PS : It works if the texture blending mode is in Opaque. If Transparency is set, doesn't work anymore.

     

    Last edit: Olivier P. 2015-04-09
  • Olivier P.

    Olivier P. - 2015-04-09

    example with the Game Menu demo :

    move the GlCube outside from the dummy
    set the material form the demo
    put Transparency ton the material

    launch the demo. It works. But click on "show title", the cube will be before the text.

     
  • nelsonchu

    nelsonchu - 2015-04-10

    Sounds like something to do with "ObjectsSorting" property of TGLScene. Default is osRenderBlendedLast. Maybe osNone can help.

     
  • Maverick

    Maverick - 2015-05-06

    Could you please post some screenshot of the problem?
    Try to use dummycube to sort object as you want and/or disable depthtest for the hud object.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.