[PD] Colors in Gem stereoscopic mode

2009-04-14 Thread PSPunch

Hi,


Finding out that many online stores sell colored cellophane glasses at a
low price, I was thinking of some projects using Gem's stereoscopic modes.

But, whoa.. they all come in blue and red whereas Gem works in red/green.

Are these colors chosen as they are offered by one of the common OpenGL
libraries?
If so, the following may be off topic on the Pd list but.. are the
conventional color schemes of classic 3D glasses avoided for some
practical reason?


--
David Shimamoto


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] colors

2008-01-24 Thread Ctrl Alt Back
It actualy works.
Thanks a lot.

On Wed, Jan 23, 2008 at 08:43:02PM +, Martin Peach wrote:
 Ctrl Alt Back wrote:
 hi,
 
 i compiled one pd-extended on gentoo as well, following
 http://puredata.info/docs/developer/Members/nanodust/pd-extended-gentoo
 and found # color scheme section, was able to change canvas_fill,
 text_color .. etc, but there was no set canvas_fill white line.
 I tried to add that line but did not seem to do anything.
 
 There was couple of postings where pd users demanded pd with reversed
 colors, or at least darker background for using on stage and not getting
 blinded. I am wandering if enybody found easy way how to configure this?
 
 The canvas backgound is outside of that section. It's in a proc called 
 pdtk_canvas_new, near line 900 of pd.tk.
Yes, line 925 has it, i tried to change it before, but did not do
anything. It was difficult to find out which pd is actualy using which
pd.tk, so now i did small test :
removed all installed pd  and pd-extended from PC,
installed only pd-0.41-0test11,
changed -background white to -backgroung red in 
/usr/local/lib/pd/bin/pd.tk
pd has red background.
then i need to change color again when i installed pd extended from deb
package.

but thats just canvas $name.c -width $width -height $height -background
white line. to get in pd.tk other lines to set font colors - i
suppose i would need to compile pd-extended from source.


CtrlAltBack
-- 
|||Ctrl + Alt + Back|||
|||restart your view|||

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] colors

2008-01-24 Thread Roman Haefeli
On Thu, 2008-01-24 at 13:42 +0100, Ctrl Alt Back wrote:
 to get in pd.tk other lines to set font colors - i
 suppose i would need to compile pd-extended from source.

not that i am an expert on this, but as far as i understand there is no
need to recompile pd (extended or vanilla) just for changing the
appearance. all the gui is stuff is written in the script pd.tk, which
isn't compiled. only the engine itself is written in c and needs to be
compiled. if you are comfortable in tcl/tk, you can adapt the appearance
of pd on the fly (you might need to restart pd, but not to recompile
it).

roman




___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] colors

2008-01-24 Thread Martin Peach

Roman Haefeli wrote:

On Thu, 2008-01-24 at 13:42 +0100, Ctrl Alt Back wrote:
  

to get in pd.tk other lines to set font colors - i
suppose i would need to compile pd-extended from source.



not that i am an expert on this, but as far as i understand there is no
need to recompile pd (extended or vanilla) just for changing the
appearance. all the gui is stuff is written in the script pd.tk, which
isn't compiled. only the engine itself is written in c and needs to be
compiled. if you are comfortable in tcl/tk, you can adapt the appearance
of pd on the fly (you might need to restart pd, but not to recompile
it).

  
I think that is only true in the patched pd-extended version. The 
canonical version has all the line colouring in the main code. I attach 
a file showing the places where the lines are coloured. This was to 
implement a random line colouring that I tried a couple of years ago (so 
the current version of pd might not match).


Martin

/* line drawing in pd. These are the functions that draw lines connecting 
objects in pd 0.39-2 test 7 */
/* lines prefixed with - are to be removed and replaced with the lines starting 
with + */
/* if you want to use coloured lines */
/* 2006102 Martin Peach */

/* g_canvas.c 894: */
/* canvas_drawlines is called only from canvas_map in g_canvas.c. This draws 
lines in newly opened canvases */
static void canvas_drawlines(t_canvas *x)
{
t_linetraverser t;
t_outconnect *oc;
{
linetraverser_start(t, x);
while (oc = linetraverser_next(t))
-sys_vgui(.x%lx.c create line %d %d %d %d -width %d -tags l%lx\n,
-glist_getcanvas(x),
-t.tr_lx1, t.tr_ly1, t.tr_lx2, t.tr_ly2,
-(outlet_getsymbol(t.tr_outlet) == s_signal ? 2:1),
-oc);
+   {
+   sys_vgui(.x%lx.c create line %d %d %d %d -width %d 
-tags l%lx -fill #%06lX\n,
+glist_getcanvas(x),
+t.tr_lx1, t.tr_ly1, t.tr_lx2, t.tr_ly2,
+(outlet_getsymbol(t.tr_outlet) == s_signal ? 2:1),
+oc,
+   
(((long)oc2)  0x0FF));
+   }
}
}



/* g_canvas.c 909: */
/* canvas_fixlinesfor is called by iemgui_size, iemgui_delta, iemgui_pos, 
iemgui_displace in g_all_guis.c; */
/* by bng_dialog in g_bang.c; */
/* by glist_deselect, canvas_setgraph, canvas_connect(see above) in g_editor.c; 
*/
/* by canvas_addinlet, canvas_rminlet, canvas_resortinlets, canvas_addoutlet, 
canvas_rmoutlet; */
/* canvas_resortoutlets, graph_displace in g_graph.c */
/* by hradio_dialog, hslider_dialog, my_numbox_dialog, text_displace, */
/* toggle_dialog, vradio_dialog, vslider_dialog, vu_dialog, vu_size */
/* canvas_fixlinesfor sets the coordinates of lines after the objects they 
connect have changed */
void canvas_fixlinesfor(t_canvas *x, t_text *text)
{
t_linetraverser t;
t_outconnect *oc;

linetraverser_start(t, x);
while (oc = linetraverser_next(t))
{
if (t.tr_ob == text || t.tr_ob2 == text)
{
sys_vgui(.x%lx.c coords l%lx %d %d %d %d\n,
glist_getcanvas(x), oc,
t.tr_lx1, t.tr_ly1, t.tr_lx2, t.tr_ly2);
+   sys_vgui(.x%lx.c itemconfigure l%lx -fill #%06lX\n,
+   glist_getcanvas(x), oc, (((long)oc2)  
0x0FF));
}
}
}

/* g_editor.c 99: */
/* glist_selectline is called only by canvas_doclick in g_editor.c */
/* glist_selectline sets the colour of the selected line to blue */
void glist_selectline(t_glist *x, t_outconnect *oc, int index1,
int outno, int index2, int inno)
{
if (x-gl_editor)
{
glist_noselect(x);
x-gl_editor-e_selectedline = 1;
x-gl_editor-e_selectline_index1 = index1;
x-gl_editor-e_selectline_outno = outno;
x-gl_editor-e_selectline_index2 = index2;
x-gl_editor-e_selectline_inno = inno;
x-gl_editor-e_selectline_tag = oc;
sys_vgui(.x%lx.c itemconfigure l%lx -fill blue\n,
x, x-gl_editor-e_selectline_tag);
}
}

/* glist_deselectline is called by glist_select and glist_noselect in 
g_editor.c */
/* glist_deselectline restores the colour of a deselcted line */
void glist_deselectline(t_glist *x)
{
if (x-gl_editor)
{
x-gl_editor-e_selectedline = 0;
-sys_vgui(.x%lx.c itemconfigure l%lx -fill black\n,
-x, x-gl_editor-e_selectline_tag);
+sys_vgui(.x%lx.c itemconfigure l%lx -fill #%06lX\n,
+x, x-gl_editor-e_selectline_tag,
+   (((long)x-gl_editor-e_selectline_tag2)  
0x0FF));
}
}

/* g_editor.c 1268: */
/* canvas_doconnect is called only from canvas_mouseup and canvas_motion in 
g_editor.c */
/* This draws newly connected lines on mouseup (doit = 1) but not motion 
(doit=0) 

Re: [PD] colors ( exthread : pd-extended, version )

2008-01-23 Thread Ctrl Alt Back
hi,

i compiled one pd-extended on gentoo as well, following 
http://puredata.info/docs/developer/Members/nanodust/pd-extended-gentoo
and found # color scheme section, was able to change canvas_fill,
text_color .. etc, but there was no set canvas_fill white line.
I tried to add that line but did not seem to do anything.

There was couple of postings where pd users demanded pd with reversed
colors, or at least darker background for using on stage and not getting
blinded. I am wandering if enybody found easy way how to configure this?

CtrlAltBack
-- 
|||Ctrl + Alt + Back|||
|||restart your view|||

On Fri, Jan 18, 2008 at 09:17:59AM -0500, Martin Peach wrote:
 Ctrl Alt Back wrote:
 On Fri, Jan 18, 2008 at 12:42:06AM +0100, Ctrl Alt Back wrote:
   
 the look of pd-extended : light greyed objects, text running out of 
 objects, lack of synoptic overview - is that definite ? can i configure 
 it that
 it looks the old way ?
 
 yes it is possible but how ? 
 i installed it on another machine, and it keeps the same old look.
 
 CtrlAltBack
   
 In pd/bin/pd.tk around line 87 you have these lines:
 
 # color scheme
 set canvas_fill white
 set text_color #000
 set select_color #00f
 set dash_outline #f00
 set dash_fill #f7f7f7
 set box_outline #ccc
 puts stdout box_outline $box_outline
 puts stdout current namespace is [namespace current]
 puts stdout namespace children [namespace children]
 set graph_outline #777
 set atom_box_fill #eee
 set msg_box_fill #f8f8f6
 set obj_box_fill #f6f8f8
 set signal_cord_highlight #58a
 set signal_cord #558
 set signal_nlet $signal_cord
 set msg_cord_highlight #474
 set msg_cord #565
 set msg_nlet white
 set mixed_nlet #88aaff
 
 
 You can change the colours, for example by setting box_outline black 
 or #000 instead of #ccc.
 None of this works in the MSW version for some reason, probably because 
 tcl/tk on MSWindows is not the full package. Variables defined in pd.tk 
 are not recognized when accessed from pd in Windows, although the 
 variables accessed from procs inside pd.tk are.
 
 Martin


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] colors ( exthread : pd-extended, version )

2008-01-23 Thread Martin Peach
Ctrl Alt Back wrote:
hi,

i compiled one pd-extended on gentoo as well, following
http://puredata.info/docs/developer/Members/nanodust/pd-extended-gentoo
and found # color scheme section, was able to change canvas_fill,
text_color .. etc, but there was no set canvas_fill white line.
I tried to add that line but did not seem to do anything.

There was couple of postings where pd users demanded pd with reversed
colors, or at least darker background for using on stage and not getting
blinded. I am wandering if enybody found easy way how to configure this?

The canvas backgound is outside of that section. It's in a proc called 
pdtk_canvas_new, near line 900 of pd.tk.
I have this at line 932 of the latest pd.tk from cvs:
   wm geometry $name $geometry
   canvas $name.c -width $width -height $height -background white \
-yscrollcommand $name.scrollvert set \
-xscrollcommand $name.scrollhort set \
-scrollregion [concat 0 0 $width $height]
The line beginning canvas sets the attribute background to white. If 
you change white to your favourite colour then your canvases will all be 
that colour. Unfortunately you can't set the colours of lines and boxes that 
way.

Martin



___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list