i have a custom conduit using DisplayPipeline.Draw2dText method in the PostDrawObjects event. In V5 it works, but in V6 nothing is drawn. I use this one which allows to pass a Point3d. Tries various overloads but none of them work in V6, if i draw in DrawForeground it works.
_
c.
In regards to my first question, there seem no real order in which the elements are drawn using the DrawForeground event eg. an arrow drawn using DrawArrow before the rectangle and the text, shines through the rectangle and the text.
@stevebaer, i can see changes for GH, TextTag is working now. I also see that i can use Draw2dText in the PostDrawObjects event of a conduit . But the Measure2dText is not working like in V5 unless i inflate the rectangle. Please compare this example in V5 and V6:
If you uncomment line 19 it works in V6, and the rectangle correctly obsures the arrow line which is what i want. How can i get this working in V5 ? There the arrow line shines through the rectangle and text, making it unreadable.
Also please note what happens to the text aliasing when you change it to DrawOverlay.
Hi @stevebaer, bewlow is an example image with the text aliasing. In V5 everyting is crystal sharp. In V6, i get different results. The left column shows how it looks while i rotate the view using RMB. Once i release the mouse it turns into the right column:
Hmm… this is bizarre. I can’t repeat the aliased text at all with the python script sample you posted. There really shouldn’t be any degradation in how text is drawn based on if you are in what we consider a dynamic mode or not. What is the OpenGL version that your driver says it supports? This can be found on Rhino’s OpenGL settings page or by running the SystemInfo command.
If i draw my 2d text in the DrawOverlay event of my conduit, when AA is set to None, i get the ugly version of the 2d text always, and it does not alias it in dynamic mode as well. If i have AA enabled, either at 2x, 4x or 8x, the text looks ugly and only is aliased in dynamic mode (while i navigate).
If i draw my 2d text in the DrawForeground event, when AA is enabled in Rhino, the text looks aliased and stays aliased even in dynamic mode.
The example above uses PostDrawObjects, do you see it if you change the event name to DrawOverlay ? (please uncomment line 19 too). Looks like this here:
Hi @stevebaer, thank you for looking at this. I can confirm that both bugs reported above are still in 6.12.18316.2251, 12.11.2018.
Everything i draw in a DrawOverlay event is drawn without aliasing unless i navigate the view. Once i start navigation it is displayed properly aliased. If i release my mouse, it is drawn unaliased. I’ve shown this in the video above.
The Measure2dText still gives different results compared to V5. If i measure 2D Text and use the boundary to draw a filled rectangle using Draw2dRectangle, the size of the rectangle is smaller than the bounds of the text. It seems that this only applies to the height of the rectangle as shown in post #2
Hi @stevebaer, i still have the unaliased text problem in DrawOverlay with SR13, the text is drawn aliased while i navigate the view and is drawn unaliased when i stop navigation. Once i switch the function name to DrawForeground the text stays aliased regardless of navigation.