|
From: Richard H. <r.h...@rl...> - 2006-10-26 10:25:23
|
Hi Folks, I'm keen to try out transparency, on SuSE 10.1 86_64 so I got the latest CVS: cvs -z3 -d:pserver:ano...@gn...:/cvsroot/gnuplot co -P gnuplot and did the following: ./prepare ./configure --with-readline=gnu --enable-history-file make and make fell over: ... if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term -DBINDIR=\"/usr/local/bin\" -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.2\" -DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.2/PostScript\" -DCONTACT=\"gnu...@li...\" -DHELPFILE=\"/usr/local/share/gnuplot/4.2/gnuplot.gih\" -I/usr/X11R6/include -I/usr/include -g -O2 -MT graphics.o -MD -MP -MF ".deps/graphics.Tpo" -c -o graphics.o graphics.c; \ then mv -f ".deps/graphics.Tpo" ".deps/graphics.Po"; else rm -f ".deps/graphics.Tpo"; exit 1; fi graphics.c: In function ‘place_rectangles’: graphics.c:1415: error: expected expression before ‘else’ graphics.c:1433: error: ‘clip_x’ undeclared (first use in this function) graphics.c:1433: error: (Each undeclared identifier is reported only once graphics.c:1433: error: for each function it appears in.) graphics.c:1437: error: ‘clip_y’ undeclared (first use in this function) graphics.c:1442: error: continue statement not within a loop graphics.c:1451: error: continue statement not within a loop graphics.c:1454: error: ‘lpstyle’ undeclared (first use in this function) graphics.c:1459: error: ‘fillstyle’ undeclared (first use in this function) graphics.c: At top level: graphics.c:1481: error: expected identifier or ‘(’ before ‘}’ token make[3]: *** [graphics.o] Error 1 I appreciate that CVS is in a state of flux, and that you'll probably have fixed this before press send on this message... but I thought I'd let you know anyway! best regards, Richard |
|
From: <br...@ph...> - 2006-10-26 21:06:42
|
Richard Henwood wrote: > I appreciate that CVS is in a state of flux, and that you'll probably have > fixed this before press send on this message... We hadn't. But now we do. Thanks for the information. |
|
From: Ethan M. <merritt@u.washington.edu> - 2006-10-26 21:13:17
|
On Thursday 26 October 2006 03:24 am, Richard Henwood wrote:
> Hi Folks,
>
> I'm keen to try out transparency, on SuSE 10.1 86_64 so I got the
> latest CVS:
> and make fell over:
>
> ...
> graphics.c: In function =E2=80=98place_rectangles=E2=80=99:
> graphics.c:1415: error: expected expression before =E2=80=98else=E2=80=99
My fault, sorry. Although I did test-build it. I really can't
explain why the test-build worked, but the commited file was
missing a brace. I have a standard patch/build/commit-on-success
script that is supposed to prevent this sort of thing.
Anyhow, I see it's now fixed in cvs.
As an apology, I offer the following test script for
transparency. The output is rather nice in png or wxt.
#
# Translucent tori with pm3d coloring
#
unset border
set style fill transparent solid 0.30 border
set dummy u,v
unset key
set style line 2 linetype 2 linecolor rgb "#a0a0f0" linewidth 0.500 point=
type=20
2 pointsize default
set object 1 rect from screen 0, 0, 0 to screen 1, 1, 0 behind \
lw 1.0 fc rgb "gray" fillstyle solid 1.00 border -1
set parametric
set view 64, 345, 1.24375, 0.995902
set isosamples 50, 20
set noxtics
set noytics
set noztics
set title "Interlocking Tori - PM3D surface with depth sorting and transpar=
ency"
set urange [ -3.14159 : 3.14159 ]
set vrange [ -3.14159 : 3.14159 ]
set pm3d depthorder
set pm3d interpolate 1,1 flush begin noftriangles hidden3d 2 corners2color =
mean
set palette rgbformulae 8, 9, 7
splot cos(u)+.5*cos(u)*cos(v),sin(u)+.5*sin(u)*cos(v),.5*sin(v) with pm3d, \
1+cos(u)+.5*cos(u)*cos(v),.5*sin(v),sin(u)+.5*sin(u)*cos(v) with pm3d
=2D-=20
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle WA
|
|
From: <tim...@en...> - 2006-10-26 21:39:58
|
Ethan Merritt wrote: > <...> > As an apology, I offer the following test script for > transparency. The output is rather nice in png or wxt. > > # > # Translucent tori with pm3d coloring > # > unset border > set style fill transparent solid 0.30 border > set dummy u,v > unset key > set style line 2 linetype 2 linecolor rgb "#a0a0f0" linewidth 0.500 p= ointtype=20 > 2 pointsize default > set object 1 rect from screen 0, 0, 0 to screen 1, 1, 0 behind \ > lw 1.0 fc rgb "gray" fillstyle solid 1.00 border -1 > set parametric > set view 64, 345, 1.24375, 0.995902 > set isosamples 50, 20 > set noxtics > set noytics > set noztics > set title "Interlocking Tori - PM3D surface with depth sorting and tran= sparency" > set urange [ -3.14159 : 3.14159 ] > set vrange [ -3.14159 : 3.14159 ] > set pm3d depthorder > set pm3d interpolate 1,1 flush begin noftriangles hidden3d 2 corners2co= lor mean > set palette rgbformulae 8, 9, 7 > splot cos(u)+.5*cos(u)*cos(v),sin(u)+.5*sin(u)*cos(v),.5*sin(v) with pm= 3d, \ > 1+cos(u)+.5*cos(u)*cos(v),.5*sin(v),sin(u)+.5*sin(u)*cos(v) with pm= 3d > =20 Wow ! This one is wonderful ! I have never imagined such a thing would=20 be possible with gnuplot ! (doesn't work with png for me - no transparency, only with wxt) Great job ! Timoth=C3=A9e |
|
From: <tim...@en...> - 2006-10-26 21:42:39
|
Timoth=C3=A9e Lecomte wrote: > Ethan Merritt wrote: > =20 >> <...> >> As an apology, I offer the following test script for >> transparency. The output is rather nice in png or wxt. >> >> # >> # Translucent tori with pm3d coloring >> # >> unset border >> set style fill transparent solid 0.30 border >> set dummy u,v >> unset key >> set style line 2 linetype 2 linecolor rgb "#a0a0f0" linewidth 0.500 = pointtype=20 >> 2 pointsize default >> set object 1 rect from screen 0, 0, 0 to screen 1, 1, 0 behind \ >> lw 1.0 fc rgb "gray" fillstyle solid 1.00 border -1 >> set parametric >> set view 64, 345, 1.24375, 0.995902 >> set isosamples 50, 20 >> set noxtics >> set noytics >> set noztics >> set title "Interlocking Tori - PM3D surface with depth sorting and tra= nsparency" >> set urange [ -3.14159 : 3.14159 ] >> set vrange [ -3.14159 : 3.14159 ] >> set pm3d depthorder >> set pm3d interpolate 1,1 flush begin noftriangles hidden3d 2 corners2c= olor mean >> set palette rgbformulae 8, 9, 7 >> splot cos(u)+.5*cos(u)*cos(v),sin(u)+.5*sin(u)*cos(v),.5*sin(v) with p= m3d, \ >> 1+cos(u)+.5*cos(u)*cos(v),.5*sin(v),sin(u)+.5*sin(u)*cos(v) with p= m3d >> =20 >> =20 > > > Wow ! This one is wonderful ! I have never imagined such a thing would=20 > be possible with gnuplot ! > (doesn't work with png for me - no transparency, only with wxt) > > Great job ! > > Timoth=C3=A9e > =20 Would you mind if I send a screenshot along with some explanation to the=20 cairo mailing list (that's one of the first example of using cairo as a=20 backend for 3D rendering program I think) ? Timoth=C3=A9e |
|
From: Ethan A M. <merritt@u.washington.edu> - 2006-10-27 03:33:15
|
On Thursday 26 October 2006 02:40 pm, Timoth=C3=A9e Lecomte wrote: > Timoth=C3=A9e Lecomte wrote: >=20 > Would you mind if I send a screenshot along with some explanation to the= =20 > cairo mailing list (that's one of the first example of using cairo as a=20 > backend for 3D rendering program I think) ? I was planning to put it on the web site anyhow. It's basically just the hidden2 demo we already have, with different coloring+fill options. =2D-=20 Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |
|
From: Ethan M. <merritt@u.washington.edu> - 2006-10-27 00:39:36
|
On Thursday 26 October 2006 02:37 pm, Timoth=C3=A9e Lecomte wrote: > Ethan Merritt wrote: > > <...> > > As an apology, I offer the following test script for > > transparency. The output is rather nice in png or wxt. > > > > Wow ! This one is wonderful ! I have never imagined such a thing > would be possible with gnuplot ! > (doesn't work with png for me - no transparency, only with wxt) You need to select truecolor in order to have an alpha channel in png. set term png truecolor =2D-=20 Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |