blending

  1. CodeManu

    GMS 2 Save surface with the "correct" alpha blending

    Hey all! I've been trying to export an surface (via surface_save method) into a .png, but due to how alpha blending works on surfaces it gets tinted (towards black as I'm using draw_clear_alpha(c_black,0) to clear the surface). I know this is the correct behaviour, and that It can be fixed by...
  2. Ggd07

    GMS 2 [SOLVED] Using surfaces with alpha correctly

    Hello, I have been trying to fix this for weeks now, and due to my limited understanding with blending and shaders I am not able to do so. I've read countless threads on reddit and on the forums but was not able to fix this. Basically, the problem is this: What I am doing exactly, is having...
  3. The-any-Key

    When I realized that alpha is not a color.

    Above is the reaction I had when I understod that alpha is just a number that is only used in a blending formula. When it comes to colors and blending I lack in knowledge, big time. I assumed alpha was a color in the color so to speak. Ex say a red with 50% alpha. I assumed red 50% alpha was a...
  4. Binsk

    GMS 2 3D MRT Blending issues

    EDIT : This post is Hella old, no longer working on a solution. This is probably a stupid topic but my brain is too fried to think right now. I'm looking for suggestions to effectively overcome this small problem. I have some models with relatively large amounts of materials that thus require...
  5. Y

    Legacy GM blending 2 different tiles

    so currently I have a sand and a grass texture next to each other (they are tiles) is it possible to make them blend together to get a more natural look because it's quite strange to have sand going straight into grass. I looked into texture blending but i'm not quite sure if that is what I'm...
  6. R

    Legacy GM Creating 'lighting' with blend modes?

    Hi again everyone! I'm not entirely sure this is the correct spot to be asking this, but it seems like my best bet, so apologies if I missed the appropriate spot for this thread! :) I was wondering if there is a way using blend modes and the draw function to create a 'lighting' effect? It's...
  7. S

    Legacy GM Problem with alarm on a script

    hi, i'm trying to set up a script that makes an object turn into a color when it takes damage: //damage_color(color) alarm[1] = 7 image_blend = argument0 if alarm[1] = 0{ image_blend = c_white } the problem is that when i call the function damage_color(), the object wont blend back into...
  8. Jared Johnson

    Color math help please!

    I'm using GM8. I need to figure out what color to blend with while drawing a colorless sprite to match the same colorless sprite drawn with one color to a surface, and then the surface is blended with another color. I have to do it this way, I cannot draw the shape to the surface already...
  9. R

    Make background independent from lighting?

    Hey guys! I'm curious if it's possible to not affect the backgrounds by the surface I use for lighting. I have lighting and two shader based effects on the top of that. I want my backgrounds affected by the effects (one is a distortion, the other one is a palette shader) but not the lighting...
  10. M

    Legacy GM [SOLVED] Help clearing surface without affecting particles colour.

    Hi, Basically I'm trying to clear a surface without it affecting the colour of particles I draw onto it, however I'm also trying to maintain the additive blending of those particles. So I'm using draw_clear_alpha(c_white,0) but it's making all my particles I draw onto the surface white. The...
  11. MilesThatch

    Legacy GM Blending Mode Combinations Comparison

    GM Version: GM Studio Target Platform: COMPARISON DEMO Download: Easy Comparison Demo for Blending Modes Links:NA Summary: I have found myself in need of using some advanced Blending Modes and I have had a bit of trouble understanding how they function. Especially the advanced usage of...
  12. D

    Blending - Resetting colors to previous states without blending again

    Hi, In this project I'm working at, I have around ten tones of blue when a character collides with an object. It changes to a certain tone after a certain threshold of health is reached. The problem I'm having is, when the character regenerates health, the darker tone blends again with the...
Top