pcb

gtk: Thin drawn polygons hide "clearline" lines, arcs, text

Bug #1072500 reported by Robert Fitzsimons
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pcb
Fix Released
Medium
Chad Parker

Bug Description

With the gtk hid. In the latest git revision, it's also been present for a while.

When the "clearline" attribute is set on a line/arc/text, if it then intersects with a polygon on the same layer, the intersecting part isn't visible in "Thin draw/Thin draw poly" modes.

To reproduce:
- Open pcb.
- Draw a rectangle/polygon.
- Deselect "New lines, arcs clear polygons", in the settings menu.
- Draw a new line which starts outside and then enters and ends in the polygon.
- Select "Thin draw ploy", in the settings menu.

The part of the line that enters the polygon has been clipped, is invisible. Though with a bit of care you can find end point with the mouse cursor.

Revision history for this message
Robert Fitzsimons (robfitz273k) wrote :
Revision history for this message
Robert Fitzsimons (robfitz273k) wrote :

For transparent objects to work in OpenGL the opaque objects need to rendered first.
http://www.opengl.org/archives/resources/faq/technical/transparency.htm#blen0020

Note: This might have an effect on the lesstif hid?

Revision history for this message
Robert Fitzsimons (robfitz273k) wrote :

A similar problem also exists with overlapping polygons in the same layer.

Revision history for this message
Robert Fitzsimons (robfitz273k) wrote :

This patch replaces the previous version. It splits the rendering of polygons into two parts for thin drawn mode, first the polygons contour and then later the transperent filling.

Tested with gtk and lesstif hids.

Traumflug (mah-jump-ing)
Changed in geda-project:
importance: Undecided → High
tags: added: gtk-gui
tags: added: polygons
Changed in pcb:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → future-bug-fix-release
Revision history for this message
Chad Parker (parker-charles) wrote :

Branch LP1072500 implements a fix for this.

It more or less takes the same approach as the original patches, but the code base has diverged somewhat since they were submitted, and have they have bit-rotten.

Changed in pcb:
assignee: nobody → Chad Parker (parker-charles)
Revision history for this message
Chad Parker (parker-charles) wrote :

Please test branch LP1072500 and report back.

It will be merged into master next weekend if I don't hear back from anyone.

Revision history for this message
Chad Parker (parker-charles) wrote :

Used for observing polygon transparency in thindraw mode.

Changed in pcb:
status: Confirmed → Fix Committed
Changed in geda-project:
status: New → Fix Committed
assignee: nobody → Chad Parker (parker-charles)
Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

OK, seems to work as advertised.

Thanks Chad ;-)

Changed in pcb:
milestone: future-bug-fix-release → pcb-4.3.0
Changed in pcb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.