We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Pages: 1 2 
GUI for Development? (Read 4068 times)
GUI for Development?
Oct 27th, 2005, 8:58pm
 
Hi,

My name is Trevor Linton, i'm a fairly experienced java programmer and i'm pretty impressed by what you've accomplished with processing. I'm curious if anyone has thought of doing a graphical user interface to creating processing applications.

I would be interested in helping out with a project of this type.

Any thoughts?

Thanks

-t
Re: GUI for Development?
Reply #1 - Oct 27th, 2005, 10:09pm
 
Hi there,

I think the most advanced GUI we saw was http://www.thbbpt.net/interfascia/.

I think you would be mroe then welcome, a proper GUI lib for Processing would boosts its prominence in doing usable stuff with it, so I guess it would be tremendous.
Re: GUI for Development?
Reply #2 - Nov 13th, 2005, 4:24pm
 
What about Swing or SWT?
Re: GUI for Development?
Reply #3 - Nov 13th, 2005, 8:09pm
 
Swing would limit you to Java 2 and later, which is becoming less of an issue, but an issue none-the-less.  SWT would require the program to run as standalone, since it requires native libraries.

However, while not simple to integrate in its current form, thinlet is a small (39KB) Java 1.1 (and applet) compatible gui with quite a number of features.  It allows for custom widgets (ie, a Processing canvas), but it would take a little bit of hacking to get them to play well with each other.  Certainly a project worth exploring though, for anyone interested in advanced GUI work with Processing, but doesn't want to let go of Applet and Java 1.1 support.

Marcello
Re: GUI for Development?
Reply #4 - Nov 13th, 2005, 10:50pm
 
Hmm, my interpretation of the question wasn't how to create interface elements with Processing, but using a GUI to do the programming for you, much like EyesWeb or Quartz Composer.

Re: GUI for Development?
Reply #5 - Nov 14th, 2005, 3:13pm
 
Personally I think that it sounds very attractive with the concept of exporting stuff to applications that use OS looking widgets. And project custom widgets too. Smiley

And I'd go for applications any day to get rid of the applet sandbox which makes java (and processing in extension) much more limited than the competition.
Re: GUI for Development?
Reply #6 - Nov 15th, 2005, 3:54am
 
On the flipside, the competition can't run in your browser.
Re: GUI for Development?
Reply #7 - Nov 15th, 2005, 1:53pm
 
cello wrote on Nov 15th, 2005, 3:54am:
On the flipside, the competition can't run in your browser.


...apart from Flash, which runs in a lot more people's browsers, and strikes me as the most obvious competition (what with ActionScript doing many - most - of the same things as Processing...)
Re: GUI for Development?
Reply #8 - Nov 15th, 2005, 2:43pm
 
A friend was working hard on trying to make a method that could analyse binary and generate images in Director. I responded, "what, like this?" And had the code up and running in Processing with more and more variations in ten minutes.

Director has no binary conversion tools.

It's about the right tool for the right job I think. That and Flash and Director aren't free.
Re: GUI for Development?
Reply #9 - Nov 18th, 2005, 5:19pm
 
About using Swing or AWT: I've tried using Swing Components with Processing, but there are serious issues with mixing Swing's lightweight components with Processing (such as heavy flickering).

A while ago I wrote a library that uses AWT, but I've been told by Ben that it still mixes light- and heavyweight components which may break on some systems. Still, I have never seen it misbehave on Windows and I use it for applications which need not run on other platforms, so it may be an option.

I've been thinking about writing a second version which would use native processing drawing methods. However there is already another library which works in that manner, and it's pretty far into development, so I'm not sure which way to go from here.
Re: GUI for Development?
Reply #10 - Nov 18th, 2005, 5:37pm
 
Oolong wrote on Nov 15th, 2005, 1:53pm:
...apart from Flash, which runs in a lot more people's browsers, and strikes me as the most obvious competition (what with ActionScript doing many - most - of the same things as Processing...)

As soon as I posted my message I knew someone would say that. Wink

Flash is hardly comparable when you get down into Processing's power... it's vector, animation, and primarily design-based.  You can write code in it, sure, but it's insanely slow even for a primitive polygon-based 3d engine (you'd think flash could draw polygons quickly).

But yes, for the things that Flash can do, it's probably a better medium than Processing.  But you can do so much more in Java.

Marcello
Re: GUI for Development?
Reply #11 - Nov 22nd, 2005, 10:13pm
 
One of the beauties of Processing is the simplicity of its environment. One window + play button + stop button. What more do you need? For teaching programming to newbies, as I've been doing this year, Processing has been a godsend. That play button is great! It's so reassuring.

Previously, I taught introductory programming using Director, and spent the first half-hour of the class showing students how to get rid of all the excess crap. Our online tutorials start this way, as well.

So I would be worried if Processing turned into a beheamoth like Director, similar to what's now happening with Flash. Little by little functionalities are added, and the thing grows out of control. Most importantly, those development environments were once one good thing, and now have been layered with four, five, six, twenty different development logics. Its a mess.

Now, with that out of the way, and if we keep these goals of simplicity in mind, I think we can still discuss graphical development additions.

For one, I think some students would appreciate having a better way of visualizing items in the data folder. That might be a start.

I suggested another idea to Casey this summer, it's an idea that I've been exploring in another context. It's the idea of code reversability : the ability to generate code graphically, which in turn generates graphical code. This is different than MAX/MSP/PureData/EyesWeb. The idea might sound a little weird, but I'm sure you all get the jist. I think in the context of Processing the pedagogical interest of this is self-evident.

All this would would have to be done by someone else that Ben and Casey, I'm sure. They've already contributed enough and probably want to move on to other projects once out of beta.
Re: GUI for Development?
Reply #12 - Nov 23rd, 2005, 6:25am
 
Destanley;

The reversible graphic code you are talking about has been around for a while. Most implementations with a handful of commands represented by single characters on a two dimensional grid and a cursor-interpreter that moves and executes according to these character-commands. See Funge, Mindcrappity smack etc. There are also versions with 3D and even 4D command grid canvases. I know I've seen some pixel based versions also but cant find them right now. Check out the Esoteric Programming Languages section on Wikipeida for more info. http://en.wikipedia.org/wiki/List_of_esoteric_programming_languages
Re: GUI for Development?
Reply #13 - Nov 23rd, 2005, 8:46pm
 
Befunge is totally cool and I love all that stuff. There are other things like it. But I don't think it's exactly what I was talking about. Maybe I should look into it and see if I understand its use a little better. I always thought it was something more conceptual, anyway not really implemented in anything.

A question: did you mean Mindcrappity smack or braincrappity smack? Or did you mean the pseudo-situationist plug-in libraries for Max from several years back (I fought with those, didn't see anything like that).

I've been screwing around with things like what you describe for a while, and I love all that playful conceptual stuff, but I was thinking of something more pedagogical. I'm not sure that I can really give any specific examples for Processing, I'm more following an intuition, but the idea would be that you have code that can be generated visually, for example. I supose that in some ways Swing does this, but it would be interesting to find something more adapted to Processing. Rather than making buttons (I still don't understand why people want buttons, but hey, it's a free world), you would make more Processing-like code.

Who knows: drawing, then having code built from that. I've always been amazed at how programs like Flash still look like MacPaint. It's kind of a joke. Well, it might be funny to actually take the MacPaint interface, build it into Processing as a tool plug-in, but when you draw your MacPaint drawing, you actually build the code. Obviously, that's not reversable, that's just inverse programming. But it's a first step towards reversability. If you push the logic far enough you can get it to be reversable.

If I'm not making sense, don't worry. It's late and I've been teaching all day.
Re: GUI for Development?
Reply #14 - Sep 4th, 2006, 7:05am
 
Hello all,

I've opened the source for Interfascia, and if people are interested in helping out with it, I'd love any help I can get.

Check it out and send a note:
http://superstable.net/interfascia/
interfascia (at) thbbpt (dot) net

B
Pages: 1 2