transparent png?s or gif?s ?

frequenzteiler's icon

hi everybody..
i have built a nice patch and added some nice grafix for the UI.
the problem is that i would like to add a transparent pic over the filtergraph-object which works in display-mode so that it looks like it?s behind a glass-window.
does anyone know if this would be possible somehow????
it turned out that fpic is not able to do this...
someone outthere got an idea how to do this?
it says that with masks for e.g. toggle-buttons all white bits in the mask would appear transparent but i?m not sure how to do this.

greetings!

swieser1's icon

you may want to look into jsui objects... i think you can do transparency with those. however, i don't know if you'd be able to control the filtergraph with your mouse if you have another object on top of it.

Andy's icon

From my experience with this sort of thing the image would block control of the filtergraph.

I haven't tried it with these particular objects but I have had a situation where placing a colour picker on top of a pwindow, for instance, blocks mouse idle. This may or may not produce the same effect.

If it works please let us know. It would make a nice interface.

Andy

Adam Murray's icon

This is also something I'd like to be able to do. I have a sequencer patch that consists of a bunch of nsliders. I wanted to make it highlight the nslider for the note currently playing and still respond to the mouse so the notes can be changed on the fly.

I didn't find anything that did the trick, but I got pretty close with ubutton. If you put a ubutton behind an nslider and put it in stay mode, when its stay value is recieved it will light up over top of the nslider. And it still responds to mouse clicks too. Exactly what I wanted. Unfortunately, as soon as you click the nslider it redraws back on top the ubutton.

On Windows it was acceptable because the next time the stay value is received it redraws correctly. But I tested the patch on an intel macbook, and the ubutton gets into a bad state. For a ubutton with stay=1, 1 should highlight and 0 unhighlight. But if I click the nslider when it's highlighted, 0 starts highlighting and 1 unhighlights (until the mouse is clicked when it's highlighted again). It's backwards, weird! Is this just an intel mac thing or a mac issue in general? It's the first time windows worked better ;)

I gave up after that and decided to put lights below the nsliders, but it was disappointing. Some sort of transparency support would be really nice.

-Adam

PS - Here is an example of the behavior I was describing. I'm curious if other mac users see the problem and windows users don't?

Max Patch
Copy patch and select New From Clipboard in Max.

frequenzteiler's icon

thanks to everyone for your ideas...
it?s true that it would block the control and i don?t think there would be a way to avoid that but that doesn?t matter anyway cause i?m only using it to display stuff.
so if the jsui thingy will work - that would be great...i?m gonna try this.
and thank you adamj..i think it?s weird that it differs on an ibook
because actually if you use the same version on both computers it should do the same...and i dont think its a mac specific problem but im gonna try out your thing on my ibook and tell you how it went.

greetings

oh ..btw. for now i decided to leave the window out if the jsui-thingy wont work...although i tried doing transparency-stuff with masks and it turned out well.but this is tricky with the filtergraph-object.

thanks again!!!!

Stefan Tiedje's icon

Adam Murray schrieb:
> PS - Here is an example of the behavior I was describing. I'm curious
> if other mac users see the problem and windows users don't?

yup, the same on PPC Powerbook...
A little flickery workaround is below...

Stefan

Max Patch
Copy patch and select New From Clipboard in Max.

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

Adam Murray's icon

Thanks Stefan! This is very helpful.

It seems the ubutton can still get in the backwards state when I open the patch for edit, but I can live with that (it's easily corrected with another mouse click).

Is there a way to change the ubutton highlight color?

-Adam