2d text label created with displayconduit is partially invisible when taking a screenshot

I am trying to create text labels on the members of a structure. The labels on one side of the structure are not displayed completely, as if there is another (invisible) object overlapped on them (see attached image).
Do you know what is causing this problem and how I can fix it?rhinoproblem

This is the code that creates the labels:

protected override void DrawForeground(DrawEventArgs e)
{
foreach (var text in _texts)
{
Point2d pt = e.Viewport.WorldToClient(text.Location);
e.Display.Draw2dText(text.Text, Color.Black, pt, true, TextSize,“Arial”);
}
}

Hi @dale,

Do you have any ideas what could cause this problem, or can you point to person who would know?

Could you run the SystemInfo command and post the results here?

@Puja

Hello @stevebaer

Please find below the system info:

System Boot Time: 09-Sep-19, 9:06:24 AM
System Manufacturer: LENOVO
System Model: 20EQS7A900
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 94 Stepping 3 GenuineInt
el ~2673 Mhz
BIOS Version: LENOVO N1EET80W (1.53 ), 14-Sep-18
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume1
System Locale: en-us;English (United States)
Input Locale: fi;Finnish
Time Zone: (UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vil
nius
Total Physical Memory: 32’135 MB
Available Physical Memory: 24’758 MB
Virtual Memory: Max Size: 64’268 MB
Virtual Memory: Available: 56’587 MB
Virtual Memory: In Use: 7’681 MB
Page File Location(s): C:\pagefile.sys
Domain:
Logon Server:
Hotfix(s): 306 Hotfix(s) Installed.
[01]: KB2841134
[02]: KB2670838
[03]: KB2830477
[04]: KB2592687
[05]: KB3191566
[06]: KB2479943
[07]: KB2491683
[08]: KB2506014
[09]: KB2506212
[10]: KB2509553
[11]: KB2511455
[12]: KB2532531
[13]: KB2533623
[14]: KB2534111
[15]: KB2536275
[16]: KB2544893
[17]: KB2545698
[18]: KB2547666
[19]: KB2552343
[20]: KB2560656
[21]: KB2564958
[22]: KB2570947
[23]: KB2574819
[24]: KB2579686
[25]: KB2585542
[26]: KB2603229
[27]: KB2604115
[28]: KB2620704
[29]: KB2621440
[30]: KB2631813
[31]: KB2639308
[32]: KB2653956
[33]: KB2654428
[34]: KB2656356
[35]: KB2667402
[36]: KB2676562
[37]: KB2685811
[38]: KB2685813
[39]: KB2685939
[40]: KB2690533
[41]: KB2698365
[42]: KB2705219
[43]: KB2706045
[44]: KB2712808
[45]: KB2718704
[46]: KB2719033
[47]: KB2727528
[48]: KB2729094
[49]: KB2729452
[50]: KB2731771
[51]: KB2732059
[52]: KB2736422
[53]: KB2742599
[54]: KB2750841
[55]: KB2758857
[56]: KB2761217
[57]: KB2770660
[58]: KB2773072
[59]: KB2786081
[60]: KB2789645
[61]: KB2798162
[62]: KB2807986
[63]: KB2809215
[64]: KB2813430
[65]: KB2834140
[66]: KB2836942
[67]: KB2836943
[68]: KB2839894
[69]: KB2840149
[70]: KB2840631
[71]: KB2847927
[72]: KB2857650
[73]: KB2861698
[74]: KB2862152
[75]: KB2862330
[76]: KB2862335
[77]: KB2864202
[78]: KB2868038
[79]: KB2868116
[80]: KB2868626
[81]: KB2871997
[82]: KB2882822
[83]: KB2884256
[84]: KB2888049
[85]: KB2892074
[86]: KB2893294
[87]: KB2894844
[88]: KB2900986
[89]: KB2911501
[90]: KB2912390
[91]: KB2919469
[92]: KB2923545
[93]: KB2929733
[94]: KB2931356
[95]: KB2937610
[96]: KB2943357
[97]: KB2952664
[98]: KB2957189
[99]: KB2965788
[100]: KB2968294
[101]: KB2970228
[102]: KB2972100
[103]: KB2972211
[104]: KB2973112
[105]: KB2973201
[106]: KB2973351
[107]: KB2977292
[108]: KB2978120
[109]: KB2978742
[110]: KB2984972
[111]: KB2984976
[112]: KB2991963
[113]: KB2992611
[114]: KB2993651
[115]: KB2999226
[116]: KB3000483
[117]: KB3003743
[118]: KB3004361
[119]: KB3004375
[120]: KB3005607
[121]: KB3006137
[122]: KB3010788
[123]: KB3011780
[124]: KB3019978
[125]: KB3020369
[126]: KB3020387
[127]: KB3020388
[128]: KB3020393
[129]: KB3021674
[130]: KB3021917
[131]: KB3022777
[132]: KB3023215
[133]: KB3030377
[134]: KB3031432
[135]: KB3033889
[136]: KB3033929
[137]: KB3035126
[138]: KB3035132
[139]: KB3037574
[140]: KB3042058
[141]: KB3042553
[142]: KB3045685
[143]: KB3046017
[144]: KB3046269
[145]: KB3055642
[146]: KB3059317
[147]: KB3060716
[148]: KB3067903
[149]: KB3067904
[150]: KB3068708
[151]: KB3071756
[152]: KB3072305
[153]: KB3072630
[154]: KB3074543
[155]: KB3075220
[156]: KB3075222
[157]: KB3075226
[158]: KB3076895
[159]: KB3076949
[160]: KB3078601
[161]: KB3080149
[162]: KB3080446
[163]: KB3084135
[164]: KB3086255
[165]: KB3087039
[166]: KB3092601
[167]: KB3092627
[168]: KB3093513
[169]: KB3097989
[170]: KB3101722
[171]: KB3102429
[172]: KB3108371
[173]: KB3108381
[174]: KB3108664
[175]: KB3108670
[176]: KB3109094
[177]: KB3109103
[178]: KB3109560
[179]: KB3110329
[180]: KB3115858
[181]: KB3121461
[182]: KB3122648
[183]: KB3123479
[184]: KB3124275
[185]: KB3124280
[186]: KB3125574
[187]: KB3126446
[188]: KB3126587
[189]: KB3127220
[190]: KB3135983
[191]: KB3138612
[192]: KB3138910
[193]: KB3138962
[194]: KB3139398
[195]: KB3139914
[196]: KB3139940
[197]: KB3142024
[198]: KB3142042
[199]: KB3145739
[200]: KB3146706
[201]: KB3146963
[202]: KB3149090
[203]: KB3150220
[204]: KB3150513
[205]: KB3153171
[206]: KB3155178
[207]: KB3156016
[208]: KB3156017
[209]: KB3156019
[210]: KB3159398
[211]: KB3161102
[212]: KB3161561
[213]: KB3161664
[214]: KB3161949
[215]: KB3161958
[216]: KB3163245
[217]: KB3163589
[218]: KB3164033
[219]: KB3164035
[220]: KB3168965
[221]: KB3170455
[222]: KB3170735
[223]: KB3172605
[224]: KB3175024
[225]: KB3177186
[226]: KB3177467
[227]: KB3178034
[228]: KB3179573
[229]: KB3184122
[230]: KB3184143
[231]: KB3185319
[232]: KB3185911
[233]: KB4014565
[234]: KB4014573
[235]: KB4014579
[236]: KB4015546
[237]: KB4019263
[238]: KB4019990
[239]: KB4022722
[240]: KB4025337
[241]: KB4034679
[242]: KB4038779
[243]: KB4040966
[244]: KB4041678
[245]: KB4048960
[246
Network Card(s): 6 NIC(s) Installed.
[01]: Intel® Ethernet Connection (2) I219-LM
Connection Name: Local Area Connection
Status: Media disconnected
[02]: Intel® Dual Band Wireless-AC 8260
Connection Name: Wireless Network Connection
DHCP Enabled: Yes
DHCP Server:
IP address(es)
[01]:
[02]:
[03]: Cisco AnyConnect Secure Mobility Client Virtual
Miniport Adapter for Windows x64
Connection Name: Local Area Connection 2
Status: Hardware not present
[04]: Bluetooth Device (Personal Area Network)
Connection Name: Bluetooth Network Connection
Status: Media disconnected
[05]: Microsoft Virtual WiFi Miniport Adapter
Connection Name: Wireless Network Connection 2
Status: Media disconnected
[06]: ThinkPad TBT 3 Dock Ethernet
Connection Name: Local Area Connection 3
DHCP Enabled: Yes
DHCP Server: 10.3.0.15
IP address(es)
[01]:
[02]:

Hi - Steve meant the Rhino SystemInfo command.
-wim

@wim

Hi

I use Rhino 5, but I cannot find such a command called ‘SystemInfo’. Is it only available in Rhino 6?

-Puja

Hi Puja - yes, that command was introduced in Rhino 6. Please let us know which SR of Rhino 5 you are running and post a screen capture of the Rhino Options > View > OpenGL page.
-wim

Hi @wim,

Please find below the screenshot you requested:

-Puja

Are you increasing the scene bounding box to make sure everything you are drawing is inside? You may be getting some view frustum clipping if you aren’t.
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Display_DisplayConduit_CalculateBoundingBox.htm

Hi @stevebaer,

We are drawing the text with the drawforeground method and using 2d text so I assumed that the text is not needed to be included in the bounding box. am I incorrect?

You are probably correct, but this may be a bug in V5 and the bounding box trick may help. Have you been able to test this in V6? I’m curious to know if the issue still exists in V6

Unfortunately, currently it is not possible for us to test this in V6.