ID: | 1160 |
From: | ka...@aspodata.se |
Date: | Sun, 31 Dec 2017 17:00:43 +0100 (CET) |
Subject: | Re: [pcb-rnd] layers in lesstif |
in-reply-to: | 1159 from ge...@igor2.repo.hu |
replies: | 1163 from ge...@igor2.repo.hu , 1167 from ka...@aspodata.se |
Igor2: ... > I booted a machine where I have hardware accelerated graphics and compared > the gtk2+opengl rendering to the lesstif+xrender rendering. They do the > same, and they both do what they should: > > - multiple silk objects in the same layer group (same side) combine > without transluency, as in an 1 bit bitmap > > - different layer groups (e.g. top side silk and bottom side silk) are > combined with transluency, causig the shading effect you showed That sounds as if you can reproduce this, great. > Bad news: > > It seems 99% of our users want this. I am also among the 1% who don't want > transluency, but I use the gdk render (sw rendering) that doesn't > implement it anyway. So one solution for you is obviously to disabling > XRENDER. I am not sure, but it may hurt performance, tho. I'm not against translucency, I just wish the silk wasn't soo greyish. It makes it hard for me too see it. > Good news: > > When Keith Packard fixed up our gtk+gl earlier this year, he foreseen the > small group of anti-transluency users, so he added a feature called layer > alpha. It's a floating point number, between 0 and 1 in the conf tree, > under appearance/layer_alpha ; the default value is 0.7 I think. > > The lesstif HID didn't use it, but hardwired 0.5 instead in the code. Ok, that would explain the midgrey silk. > I've > just commited r13749 that implements the configured layer_alpha. So please > svn up, re-enable XRENDER and test it. $ svn info | grep ^Rev Revision: 13753 $ ./configure --debug ... HID plugins: batch process (no-gui HID) yes, buildin [hid_batch] GTK2 GUI, software render no [hid_gtk2_gdk] GTK2 GUI, opengl render no [hid_gtk2_gl] GTK3 GUI, cairo render no [hid_gtk3_cairo] GTK3 GUI, gl render no [hid_gtk3_gl] the lesstif gui yes, buildin [hid_lesstif] remote HID server no [hid_remote] websocket server HID no [hid_srv_ws] WARNING: Since there's no libgtk2 found, disabling hid_gtk2*... WARNING: Since there's no libgd, disabling gd based exports (png, nelma, gcode)... WARNING: disabling the gpmi scripting because libgpmi is not found or not configured... Configuration complete, ready to compile. $ make ... gcc -c -std=c99 -pipe -fPIC -I. -I.. -I../src_3rd -I../src_3rd/liblihata -Iicons -DHAVE_CONFIG_H -g -O0 -Wall -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -o ../src_plugins/lib_hid_gl/hidgl.o ../src_plugins/lib_hid_gl/hidgl.c In file included from ../src_plugins/lib_hid_gl/hidgl.c:43:0: ./../src_plugins/lib_gtk_config/lib_gtk_config.h:1:21: fatal error: gtk/gtk.h: No such file or directory compilation terminated. make[2]: *** [../src_plugins/lib_hid_gl/hidgl.o] Error 1 make[2]: Leaving directory `/Net/svn/pcb-rnd/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/Net/svn/pcb-rnd/src' make: *** [all] Error 2 $ I can bisect this, but perhaps you now where the problem lies... > The simplest way to try it out is > from the command line: > > ./pcb-rnd foo.lht -c appearance/layer_alpha=1 > > If you find the right value, you can put it in any of the config files the > same way you did with the invis-color. Not there yet... Regards, /Karl Hammar ----------------------------------------------------------------------- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57
Reply subtree:
1160 Re: [pcb-rnd] layers in lesstif from ka...@aspodata.se
1163 gtk+gl build error on lesstif (was: Re: [pcb-rnd] layers in from ge...@igor2.repo.hu
1164 Re: gtk+gl build error on lesstif (was: Re: [pcb-rnd] layers in from ge...@igor2.repo.hu
1166 Re: gtk+gl build error on lesstif (was: Re: [pcb-rnd] layers in lesstif) from ka...@aspodata.se
1167 Re: [pcb-rnd] layers in lesstif from ka...@aspodata.se
1184 Re: [pcb-rnd] layers in lesstif from ge...@igor2.repo.hu