question

Axel Kohonen avatar image
0 Likes"
Axel Kohonen asked Axel Kohonen commented

Bug with opacity when using drawtext in FlexSim 2017

Hi,

It seems that the opacity is set to zero (making objects fully transparent) in FlexSim 2017 when using drawtext and not giving the opacity parameter. According to the documentation the opacity parameter is optional and before FlexSim 17 it behaved in such a way that the opacity was 1 if not given.

See the attached image. Drawtext also changes the opacity of the following draw3dtext and drawflattext commands. And drawflattext does not seem to be working as it should.

Thank you!

Kind regards,

Axel

FlexSim 17.0.0
bug report17.0.1drawtext
bugimage.jpg (92.6 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered Axel Kohonen commented

We will fix the opacity issue for the next bug fix release.

You are using drawflattext() incorrectly. Put the following code in your Custom Draw trigger to see how this command works:

if(!param(2))
	setdrawnamefunction(80, 15, c, param(1), 1);
else 
{
	fglTranslate(-40, -15, 0);
	drawflattext("Hello World");
}
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Axel Kohonen avatar image Axel Kohonen commented ·

Hi @phil.bobo

Thank you for fixing the opacity and for correcting my incorrect use of drawflattext. I see that I had not read the documentation properly .

Thank you!

Axel

0 Likes 0 ·