lighting

  1. 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...
  2. 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...
  3. P

    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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. _Proxy

    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 =...
  12. 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...
  13. 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...
  14. 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...
  15. P

    Help with "with" to affect all instances of an object.

    Hi everyone, I have an object I call "oLighting" it's an accumulation of code that I've picked up on tutorials and forums, and it creates a light source that affects all my objects under my parent object. It works great, however I'm having troubles with the "with" function, as I already have all...
  16. pawpads

    GMS 2 Accessing Sprite / Mask As Vertices

    I'm currently trying to improve my project's implementation of shadow projections. Currently, the lighting system is very rudimentary, and works as follows: 1. Render a surface and populate it using all light-creating objects' lighting sprites 2. Calculate the projection of all shadow-casting...
  17. P

    Need help with simple equation

    Hi everyone, I'm having completing what I feel is probably a simple equation to complete a simple action. What I'm trying to do is make a simple lighting system. I have an object "oLight" and as I walk past it, my shadow casts in the opposite direction. It works well, however, I'd like to make...
  18. RipRoarinBoogerBenis

    Clearing Surfaces

    I followed a somewhat out of date tutorial to build a simple lighting system I intend to expand, but while it works for the most part, the sprite bound to the mouse and the triangle primitives created by the walls leave behind afterimages like a windows 98 error. I've gone through a few forums...
  19. Jihl

    Need a hand with surface and lighting!

    Hey there! I need to apply a lighting effect on my game depending on the players position, the room is very big so I can't draw a black screen on the whole room or it gets laggy. This is the draw event of my obj_lighting_controller var b = 600 var c = 1000 if !surface_exists(lSurf) lSurf...
  20. B

    Graphics Celeste-like lighting engine!

    GM Version: GMS2 Target Platform: ALL Download: N/A Links: https://github.com/bilouw/Gamemaker-Lighting-Engine Summary: Hi, Here a little Lighting Engine that i made on GMS 2. It's not very impressive, but it can make a good job. It is based on the Mike Dailly tutorial for shadow projection...
Top