Re: [Gimp-user] The code for layer blending modes.

2013-08-03 Thread scl

On 03.08.13 at 00:44 AM, Sumdag wrote:

It's the first time I check GIMP's source code and I've been trying to find the
file(s) where the layers blending mode formulas are coded.

To find the formulas and behaviour described you can also check
http://docs.gimp.org/2.8/en/gimp-concepts-layer-modes.html.

You will probably have no luck if you look in GIMP for the blending
modes. They are already ported to GEGL, so you will have more success
looking in the GEGL sources.
You find the GEGL API documentation at http://gegl.org/operations.html.
The section 'Compositors' is your friend ;-)



The GIMP version I
have right now is 2.8.2 (the git version of gegl didn't compile here).

Make sure, you have all necessary tools and dependencies installed.
See also our developer wiki for more information:
http://wiki.gimp.org/index.php/Hacking:Building

To discuss development related questions, feel free to join the
Gimp-developer or Gegl-developer mailing lists.

Good luck + kind regards,

Sven

___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list


[Gimp-user] The code for layer blending modes.

2013-08-03 Thread Sumdag
Thanks for the reply,

I had installed the Gimp version from Ubuntu software center, when I uninstalled
it and compiled again 2.8.2 it started to take into account the changes in the
gimp-composite-generic.c file so I could make a modification to a layer mode and
it worked after compiling 2.8.2.

Make sure, you have all necessary tools and dependencies installed.
The optimal would be to compile the git version. The problem is that GEGL 0.3
gives this error when compiling:
../gegl/.libs/libgegl-0.3.so: undefined reference to
`g_type_get_type_registration_serial'

So couldn't attempt to compile GIMP (git). It would be great to be able to do it
since the way that the last version handles layer modes allows more control over
the blending proportions with the layer below.

-- 
Sumdag (via www.gimpusers.com/forums)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list


[Gimp-user] The code for layer blending modes.

2013-08-02 Thread Sumdag
It's the first time I check GIMP's source code and I've been trying to find the
file(s) where the layers blending mode formulas are coded. The GIMP version I
have right now is 2.8.2 (the git version of gegl didn't compile here). I found
blending modes code on these files but modifying any of them didn't affect the
layers blending modes result:

- app/composite/gimp-composite-generic.c
- app/gegl/gimpoperationdifferencemode.c
- app/gegl/gimpoperationpointlayermode.c
- /gegl_020/operations/generated/difference.c   (from GEGL 0.2.0 source files)


What file should be modified to affect the blending modes of the layers?

-- 
Sumdag (via www.gimpusers.com/forums)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list