[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: PCB GL How to return to normal view
In fact pins and vias really HAVE walls on my system. The problem is possibly my interpretation of the 3d projection and switching to far side view (TAB key). With normal view everything looks right: "far side" components and SMD pads are drawn far from other cooper layers. After TAB key, additional pads are drawn using pad color and they on the same level as far side silk screen. There are no walls between normal cooper layers and this far side pad and that why I was confused.
Setting transparency works right.
Very best regards
Michael W.
>
> I think low angle rendering is poor due to the viewport and "camera"
> setup. There is no front / back clipping, so you get everything - and
> since it isn't anti-aliased, it becomes a real mess.
>
> Hmm.. or if (not sure) the code I was playing with for perspective
> viewing is what you fetched.. there might be "some" clipping.. not sure.
>
>
> IIRC, the vias and pins _should_ have walls in the
> "local_customisation_no_pours" branch, but I can't be 100% sure what
> state the code was in when I last pushed.
>
> The wall rendering is translucent - so you might not notice it.
>
> Look at src/hid/gtk/gui-output-events.c
>
> Round about line 1329, there is a block which draws the walls:
>
>
> if (i > 0) {
> cyl_info.from_layer = drawn_groups[i];
> cyl_info.to_layer = drawn_groups[i - 1];
> cyl_info.scale = gport->zoom;
> // gui->set_color (Output.fgGC, PCB->MaskColor);
> gui->set_color (Output.fgGC, "drill");
> ghid_global_alpha_mult (Output.fgGC, 0.75);
> if (PCB->PinOn) r_search (PCB->Data->pin_tree, drawn_area, NULL,
> hole_cyl_callback, &cyl_info);
> if (PCB->ViaOn) r_search (PCB->Data->via_tree, drawn_area, NULL,
> hole_cyl_callback, &cyl_info);
> ghid_global_alpha_mult (Output.fgGC, 1.0);
> }
>
>
> See the
> ghid_global_alpha_mult (Output.fgGC, 0.75);
>
> You could change the 0.75 to 1.0 if you want solid walls.
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user