lighting

  1. mako

    Low Cost Lighting?

    Hi, guys! I'm still working on my MORTS space exploration game and I've run into a small problem: in 2d, the lack of back-lighting from stars makes the ships look like they're just stickered on over the scene (which, yeah, they are). I've seen a lot of methods for doing dynamic lighting...
  2. T

    GMS 2.3+ Top Down Tile Lighting

    Im working on a turn-based rpg and im planning on doing a lighting system but still haven't figured out how I'm going to do that. Is there anyway to do lighting from tiles? I could make objects and do the lighting from that but it would make stuff like cliffs a little complicated?
  3. D

    GMS 2 Wierd lighting issue

    So I set up the lighting for my game with the Lighting System 2d asset pack following Shaun Spalding's tutorial, but when I use it in my room the lighting only lights up the object that it's touching and nothing else. I have done it exactly the same in other projects where it worked perfectly...
  4. Palocles

    GMS 2.3+ Problem with GMWolfs lighting system

    @GMWolf I used your system from the youtube video of 2017 and included the correction you linked in this forum and it mostly works except that the dark area is not the same size as my camera view and, probably because of the reduced size, the sprites/light areas do not stay fixed relative to...
  5. N

    Asset - Project Lucid Engine - Pseudo 3D for GMS2

    Asset Store Link https://marketplace.yoyogames.com/assets/7494/lucid-engine-pseudo-3d Overview Lucid is for making 3d worlds using 2d art in GMS2. The project includes a variety of scripts intended to simplify the development experience and hide away the rendering logic, so that devs can focus...
  6. William Garrison

    GMS 2 Lights Cutting into eachother

    I just followed a tutorial on lights and finally got one that works with my system and current GMS. Great BYT for some reason my lights are cutting into each other. The gentleman in the video doesn't seem to have that issue as far as I can tell. I have double checked the code and cant find...
  7. N

    GMS 2 Please Help Light up Certain Areas in the Room

    Hi, I have found tutorials for lighting up a certain object, to make the room around them darker and a small area around an object brighter, but I can't find anything regarding areas of the room, like coordinates. My goal is to have a lighting system like Enter the Gungeon, where if the player...
  8. GoK

    GMS 2 Directional Light and Shadows in 3D

    GM Version: GMS 2.2.5 Target Platform: All Download: 3D_Directional_Lighting_starter.yyz 3D_Directional_Lighting_final.yyz Links: N/A Summary Hi! In this tutorial, we will go through the process of creating directional lighting and cast shadows. Note, it's not intended for the complete...
  9. Palocles

    Trying to implement Real-time lighting in 2d

    I’ve just run through this tutorial: https://www.yoyogames.com/blog/419/realtime-2d-lighting-in-gamemaker-studio-2-part-1 and part 2 and i’m having some pretty weird results. Is anyone familiar with the tutorial? Have it working in their games? If you can point me in the right direction to fix...
  10. Bearman_18

    3D [SOLVED] I need help with 3D lighting

    I started work on making a little 3D project for the first time recently. I wrote a script that makes cubes, made a first-person camera, added player controls (walking, jumping), and added physics (collisions, movement, gravity, etc.). Pretty epic, yeah? Anyway, I thought now would be a good...
  11. Azenris

    GMS 2 Lighting

    Hi I am having problems with my lighting ( still ;_; ) I kinda thought It was working ok, but looking closer I can see problems. This link shows the surface_light https://imgur.com/a/7i020P0 However as you can see. There are these weird black lines that intrude on the light. Ignore the...
  12. X

    How do I standardize the pixel density my shader outputs?

    I posted on reddit too about this: https://www.reddit.com/r/gamemaker/comments/e12mnn/how_do_i_standardize_the_pixel_density_my_shader/ My goal is trying to get all the pixel stair stepping to be a standard pixel density / pixel size as say my character so that the game has a consistent...
  13. Harper

    GMS 2 Help With Dynamic Lighting

    I'm trying to achieve a dynamic lighting effect like in "Thomas Was Alone," however I can't seem to find the right sources. I've been trying to follow this tech blog, but I'm not getting much luck. I'm pretty sure it's outdated, and I want to use objects instead of tiles anyways. Any tips to...
  14. BlueHarrier

    Alpha Feather Engine 3D

    I'm working on a 3D engine for my future project, still working on graphic management. [Updates] +Added spotlights, they don't create shadows. +Upgraded the color shadow and translucid renders quality. /Changed the color of the background, nothing important, but seems more beautiful for...
  15. Bart

    Shaders Built-in lighting functions

    Hi all. The manual has a chapter on lighting. It has a couple of functions like draw_light_define_ambient, draw_light_define_point, draw_light_define_direction, ... I can access gm_LightingEnabled, MAX_VS_LIGHTS, gm_LightingEnabled and a couple of other variables in the shader. But there...
  16. YoSniper

    Legacy GM Easiest Way to create "Light Piercing Shadow" effect

    Hello everyone! I've been programming in Game Maker Studio for about a decade now, but when it comes to lighting effects, I tend to be at a loss. I am aware of certain features in GMS like "blend modes" and I understand the difference between bm_add and bm_normal. However, I am aware of the...
  17. P

    GMS 2 Lighting Flashlight Direction (SOLVED!)

    I'm trying to make a cone flashlight with my lighting system but its not keeping the same size as its rotating. // Flashlight if (flash_light) and (flash_light_toggle) { var c = make_colour_rgb(255, 255, 255); var dir = point_direction(x, y, mouse_x, mouse_y); var buffer_x =...
  18. Anixias

    GMS 2 [Solved] Platformer Lighting Mask

    Hi all, I am developing an open-world 2D platformer right now. I'm about to finish getting all of my basic world stuff (solar system simulation to accurately display the sun and moon, moon phases, eclipses, etc.) and am getting into the lighting aspect now. My dilemma is simple: I want the...
  19. P

    Trying to Easily Lighten or Darken my screen

    Hi everyone, I'm trying to find a simple way to lighten or darken my screen. It's for my basic night/day cycle. I have the shadows taken care of via some tutorials etc, and I have a sun that pans across the screen, but I haven't figured out a decent way to get the desired effect of brightening...
  20. Anixias

    GMS 2 [Solved] Lighting Surfaces on non-integer view positions

    Hi all, I'm making a 2D platformer sort of game. I am wondering how best to handle the lighting surface since the view is almost never at an integer position, and surfaces only deal with integers as far as I'm aware. The view size is 480x270 and the game is rendered at 1920x1080 144FPS. For my...
Top