[GEM-dev] bug: geos vertices messup with draw full/fill message

B. Bogart ben at ekran.org
Wed Mar 30 17:27:53 CEST 2005


Thanks for reporting this Erich!

I was about to revisit the issue, but I've not yet converted my old geo
switching patches to pixelTANGO.

Also I'm working on a abstraction geo called supercube that you may
like, I'm sure we'll have a chance to geek out a bit in Helskinki!

Glad you beat me to it.

I can confirm this error (on OSX)

Oh and also the error is NOT dependant on the alpha, that just makes the
error visible. I've included an alteration of the patch with lighting
and no alpha and we can better see how the vertecies are drawn. I'm
pretty sure draw fill is drawing the vertecies with some points
reversed. I only had this error when I started dyanmic patching, so I
thought that was the cause, not the draw fill part, which was also in
that patch!

pt.light is included just to save me time.

B.

Erich Berger wrote:
> hi,
>
> attached u find a patch which shows that when one
> sends a |draw full( or |draw fill(  to cube or cuboid,
> ( thats the ones i noticed) the vertices drawing gets messed up.
> in opposite sphere and tube are working as it should.
>
> this is just visible with alpha enabeled and happens
> for example if one switches back from drawing a geo
> as line to fill mode.
>
> esp. strange is that a |draw full( message is doing something,
> as its everywhere called "fill" in the src,
> but maybe this points already to a possible errorsource ?
>
>
> cheers
>
> erich
>
> ---------------------
> http://randomseed.org
>
>
> ------------------------------------------------------------------------
>
> #N canvas 199 23 740 532 10;
> #X obj 184 398 alpha;
> #X obj 184 321 color 0 1 0 0.5;
> #X obj 184 374 rotate 114 0 1 0;
> #X msg 94 422 draw line;
> #X msg 94 399 draw fill;
> #X msg 94 376 draw full;
> #X obj 184 300 gemhead;
> #X obj 184 166 alpha;
> #X obj 184 89 color 0 1 0 0.5;
> #X obj 184 142 rotate 114 0 1 0;
> #X msg 94 190 draw line;
> #X msg 94 167 draw fill;
> #X msg 94 144 draw full;
> #X obj 184 68 gemhead;
> #X obj 184 207 cube 0.5;
> #X obj 184 439 cuboid 0.5 0.5 1;
> #X obj 184 115 translateXYZ -1.5 1.5 0;
> #X obj 184 347 translateXYZ -1.5 -2 0;
> #X obj 545 164 alpha;
> #X obj 545 87 color 0 1 0 0.5;
> #X obj 545 140 rotate 114 0 1 0;
> #X msg 455 188 draw line;
> #X msg 455 165 draw fill;
> #X obj 545 66 gemhead;
> #X obj 545 205 tube 0.5;
> #X obj 545 113 translateXYZ 1.5 1.5 0;
> #X obj 545 406 alpha;
> #X obj 545 382 rotate 114 0 1 0;
> #X msg 455 430 draw line;
> #X msg 455 407 draw fill;
> #X obj 545 308 gemhead;
> #X obj 545 355 translateXYZ 1.5 -1.5 0;
> #X obj 545 447 sphere 0.5;
> #X obj 545 329 color 0 1 0 0.5;
> #X obj 403 26 cnv 15 100 60 empty empty empty 20 12 0 14 -258699 -66577
> 0;
> #N canvas 0 22 450 300 gemwin 0;
> #X obj 132 136 gemwin;
> #X obj 67 89 outlet;
> #X obj 67 10 inlet;
> #X obj 67 41 route create;
> #X msg 67 70 set destroy;
> #X msg 142 68 set create;
> #X msg 132 112 create \, 1;
> #X msg 198 112 destroy;
> #X connect 2 0 3 0;
> #X connect 3 0 4 0;
> #X connect 3 0 6 0;
> #X connect 3 1 5 0;
> #X connect 3 1 7 0;
> #X connect 4 0 1 0;
> #X connect 5 0 1 0;
> #X connect 6 0 0 0;
> #X connect 7 0 0 0;
> #X restore 420 57 pd gemwin;
> #X msg 420 38 destroy;
> #X text 12 34 here full & fill \, but it messes up the vertices;
> #X text 20 273 here full & fill \, but it messes up the vertices;
> #X text 452 261 here it s fine;
> #X connect 0 0 15 0;
> #X connect 1 0 17 0;
> #X connect 2 0 0 0;
> #X connect 3 0 15 0;
> #X connect 4 0 15 0;
> #X connect 5 0 15 0;
> #X connect 6 0 1 0;
> #X connect 7 0 14 0;
> #X connect 8 0 16 0;
> #X connect 9 0 7 0;
> #X connect 10 0 14 0;
> #X connect 11 0 14 0;
> #X connect 12 0 14 0;
> #X connect 13 0 8 0;
> #X connect 16 0 9 0;
> #X connect 17 0 2 0;
> #X connect 18 0 24 0;
> #X connect 19 0 25 0;
> #X connect 20 0 18 0;
> #X connect 21 0 24 0;
> #X connect 22 0 24 0;
> #X connect 23 0 19 0;
> #X connect 25 0 20 0;
> #X connect 26 0 32 0;
> #X connect 27 0 26 0;
> #X connect 28 0 32 0;
> #X connect 29 0 32 0;
> #X connect 30 0 33 0;
> #X connect 31 0 27 0;
> #X connect 33 0 31 0;
> #X connect 35 0 36 0;
> #X connect 36 0 35 0;
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bugtest-bb.pd
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20050330/a21df3e1/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pt.light.pd
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20050330/a21df3e1/attachment.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20050330/a21df3e1/attachment.pgp>


More information about the GEM-dev mailing list