Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: FMX Transparent TLayer3D or TTextLayer3D


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Oct 13, 2017 5:57 PM Last Post By: Douglas Rudd
Jason Seale

Posts: 1
Registered: 4/14/00
FMX Transparent TLayer3D or TTextLayer3D  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 12, 2017 11:31 AM
Hi Everyone:

I have a TViewPort3D, and I want to display text in it but not have the layer the text is on visually blocking and interfering with other elements in the view port. In other words, there is always a black or colored box around the text, but I only want the text visible, not the background of the layer the text is on.

I have tried both TLayer3D with a Label on it, and TTextLayer3D (Projection for each set to Screen).

I have tried setting the Opacity on both, but that just makes the text on them transparent too.

I have tried setting Transparency to True (why does that not work?).

I have tried setting the fill colors like so (attempting to make a fully transparent color, not sure which it should be):

Layer3D_01.Fill.Color := TAlphaColor($FF000000); // Also tried: Layer3D_01.Fill.Color := TAlphaColor($00000000);

... but that has not helped.

I have tried making the background an image, and using a transparent image as the background, but that does not work.

So ... can anyone help me place text on a TViewPort3D that does not have a box around it?

Much appreciated if you can help ...
Douglas Rudd

Posts: 314
Registered: 5/16/97
Re: FMX Transparent TLayer3D or TTextLayer3D  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 13, 2017 5:57 PM   in response to: Jason Seale in response to: Jason Seale
When I unchecked zwrite the background of the TTextLayer3D became transparent.

You can also put a regular TLabel on the TViewPort3D and that has a transparent background.

Or you can use TText3D also has transparent background.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02