RSS/Atom feed Twitter
Site is read-only, email is disabled

The code for layer blending modes.

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

The code for layer blending modes. Sumdag 02 Aug 22:44
  The code for layer blending modes. scl 03 Aug 09:49
   The code for layer blending modes. Sumdag 04 Aug 00:26
2013-08-02 22:44:17 UTC (over 11 years ago)
postings
2

The code for layer blending modes.

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?

scl
2013-08-03 09:49:51 UTC (over 11 years ago)

The code for layer blending modes.

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

2013-08-04 00:26:20 UTC (over 11 years ago)
postings
2

The code for layer blending modes.

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.