Fwd: [Gimp-developer] Question about the plug-in system.
[My apologies, I forgot to CC to the list. ^^"] On 8/4/05, Joao S. O. Bueno Calligaris <[EMAIL PROTECTED]> wrote: > On Thursday 04 August 2005 18:43, Axel Philipsenburg wrote: > > What I'd like to do is to write a plug-in that would make the Gimp > > a nice tool for 3D artists by showing a 3D object in a seperate > > window with the currently selected Gimp image as UV mapped texture. > > > > The 3D object would be loaded from a Wavefront OBJ file with all UV > > mapping coordinates and been displayed by using OpenGL. > > > > The only thing that gives me worries about this, is if the Gimp > > plug-in system would allow a seperate window to be constantly > > displayed and updated whenever a tool operation is finished so that > > the artist can practically see each brush stroke (or other tool > > usage) instantly on the 3D object once the tool has been used. > Offically it is not possible. > > That is: there is no way for the GIMP to call back your plug-in > whenever an action is performed. Either way, the idea of redoing this every time an action is finished sounds very scary. What happens when I don't want to use it, or if I run a script-fu or something? I'd rather be able to preset the settings, and then just click an "Update Preview" function. This _IS_ a preview type thing, isn't it? Otherwise it would be kind of weird... > However nothing but the extreme deselegance of it can stop your > plug-in of pooling the GIMP for image data every few seconds. I believe you mean polling. And while this doesn't sound impossible, would GIMP allow for a Plugin to open a window, poll, and still let the user continue working? If memory serves me right, every other plugin I know of, GIMP hands total control over to the plugin, and "freezes" (if you will) while the plugin is running. So if the window stays open, will I even be able to make a change in the meantime? If you can't get an autoupdating one working, at least one that doesn't auto-update would be nice. [Especially if you're willing to maintain it through the versions. *ahem*] Just a thought, how are you going to set the camera angle though? -- ~Mike - Just my two cents - No man is an island, and no man is unable. -- ~Mike - Just my two cents - No man is an island, and no man is unable. ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Question about the plug-in system.
On Friday 05 August 2005 17:19, Joao S. O. Bueno Calligaris wrote: > On a note to my previous idea of linking such a script to Blender3D: > If it is not possible for a script to be both a GIMP plugina a > blender script, anyway, a Bldenr Python Script can comunicate with a > GIMP plugin script via sockets or TCP with very little effort. The > major nuisance I see in this aproach is taht AFAIK blender takes full > screen for it, so I do not know you could keep a GIMP window open > over Blender for painting. Blender has a command line option for starting in a resizable window. I don't remember what it is, but judging by the "-h" display it seems to be "-w", but I don't know for sure because at the moment, I did not activate the Nvidia proprietary driver. (so my machine won't constantly hang up - ). Regards, Shlomi Fish - Shlomi Fish [EMAIL PROTECTED] Homepage:http://www.shlomifish.org/ Tcl is LISP on drugs. Using strings instead of S-expressions for closures is Evil with one of those gigantic E's you can find at the beginning of paragraphs. ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Question about the plug-in system.
On a note to my previous idea of linking such a script to Blender3D: If it is not possible for a script to be both a GIMP plugina a blender script, anyway, a Bldenr Python Script can comunicate with a GIMP plugin script via sockets or TCP with very little effort. The major nuisance I see in this aproach is taht AFAIK blender takes full screen for it, so I do not know you could keep a GIMP window open over Blender for painting. ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Question about the plug-in system.
Hi, Axel Philipsenburg <[EMAIL PROTECTED]> writes: > What I'd like to do is to write a plug-in that would make the Gimp a > nice tool for 3D artists by showing a 3D object in a seperate window > with the currently selected Gimp image as UV mapped texture. But such a plug-in does already exist. Years ago already I saw a plug-in that allows you to paint on Quake characters will 3D preview in realtime. Did you check the registry? Sven ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Question about the plug-in system.
On Thursday 04 August 2005 18:43, Axel Philipsenburg wrote: > Hello folks! > > I've just now joined this mailing list, looking for some info from > people who know the internals of the Gimp's plug-in system. > > The reason is, that I have a project in mind that I'd like to try > to write as an Gimp plug-in, but I am not sure if it can be done. > > So before diving headlong into the source I though I'd rather ask > if it's even doable. If so, then I'll start digging through docs > and code. :) > > What I'd like to do is to write a plug-in that would make the Gimp > a nice tool for 3D artists by showing a 3D object in a seperate > window with the currently selected Gimp image as UV mapped texture. > > The 3D object would be loaded from a Wavefront OBJ file with all UV > mapping coordinates and been displayed by using OpenGL. > > The only thing that gives me worries about this, is if the Gimp > plug-in system would allow a seperate window to be constantly > displayed and updated whenever a tool operation is finished so that > the artist can practically see each brush stroke (or other tool > usage) instantly on the 3D object once the tool has been used. > > If that is the case, then the only real work for the plug-in in > would be to make a flattened copy of the currently edited image and > send it as texture to the OpenGL part of the plug-in. > > Any comments on the idea or if this possible with using the Gimp's > plug-in system? > Hi! Offically it is not possible. That is: there is no way for the GIMP to call back your plug-in whenever an action is performed. However nothing but the extreme deselegance of it can stop your plug-in of pooling the GIMP for image data every few seconds. So, I'd say it is feasible. It won't be perfect, but would be functional enough. Are you writing the 3D part? Maybe it is even possible to use blender for it. I do not know exactly how Python works with Blender - but it may be possible to write a script that is _both_ a blender script and a GIMP plug-in and get this working with less than 200 lines of code. JS -><- > Thanks a lot in advance. > > Bye Bye > > Axel > ___ > Gimp-developer mailing list > Gimp-developer@lists.xcf.berkeley.edu > http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
[Gimp-developer] Question about the plug-in system.
Hello folks! I've just now joined this mailing list, looking for some info from people who know the internals of the Gimp's plug-in system. The reason is, that I have a project in mind that I'd like to try to write as an Gimp plug-in, but I am not sure if it can be done. So before diving headlong into the source I though I'd rather ask if it's even doable. If so, then I'll start digging through docs and code. :) What I'd like to do is to write a plug-in that would make the Gimp a nice tool for 3D artists by showing a 3D object in a seperate window with the currently selected Gimp image as UV mapped texture. The 3D object would be loaded from a Wavefront OBJ file with all UV mapping coordinates and been displayed by using OpenGL. The only thing that gives me worries about this, is if the Gimp plug-in system would allow a seperate window to be constantly displayed and updated whenever a tool operation is finished so that the artist can practically see each brush stroke (or other tool usage) instantly on the 3D object once the tool has been used. If that is the case, then the only real work for the plug-in in would be to make a flattened copy of the currently edited image and send it as texture to the OpenGL part of the plug-in. Any comments on the idea or if this possible with using the Gimp's plug-in system? Thanks a lot in advance. Bye Bye Axel ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer