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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
I think what you are looking for are those HUD (Headup-display) objects.
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
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.
Sounds like something to do with "ObjectsSorting" property of TGLScene. Default is osRenderBlendedLast. Maybe osNone can help.
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.