lighting system

  1. evigouroux

    GameMaker Interlaping shadows

    Hello everyone, first time posting here. Sorry for any mistakes I may make, english is not my first language. I've been having trouble following this tutorial and adapting it to my need. I haven't been using any shader as they were, so far, not needed for what I was doing. In a nutshell : I'm...
  2. T

    Shaders Multi-Light Shader for GMS (Need Help!)

    Hi! I recently decided to update my lighting/shadow shader to support more than one light, but I seem to have gotten mixed up in the process. Shaders and GLSL in general are still really new to me, so any help would be greatly appreciated! Light Controller Draw Event: // Initialize arrays to...
  3. David Lorenz

    SOLVED Lighting System using Surface, need to mask certain objects

    Hello, everyone! I have a very simple lighting system that uses Surfaces. if surface_exists(surf) { var cx = round(camera_get_view_x(view_camera[0])-2), cy = round(camera_get_view_y(view_camera[0])-2); surface_set_target(surf) draw_clear_alpha(c_black, 1)...
  4. TheOnlyWRT

    GML Dynamic Lighting Not Working

    Hello, I followed the tutorial on the game maker blog about a 2D dynamic lighting system (LINK). I have followed everything and I do not get any errors, but I get no lighting. The game looks normal. I initially got an error with the surface_set and surface_reset functions but I edited some code...
  5. IGameArt

    Lustre: 2D Raytracing

    I present to you my experiments in porting a shader from Godot into GameMaker. That's realtime, dynamic global illumination running at over 1-2k fps_real ( I know that's not a real measure, I still like sharing it lol ) So I've only been working on this for a couple of days, but it's...
  6. L

    GML AUTOMATIC Shadow/Light Mask Generator for GML Lighting Engines (Script)

    AUTOMATIC SHADOW/LIGHT MASK CREATION FOR GML LIGHTING ENGINES! Hey Everyone! So a while back I was making a little top down shooter for fun, I experimented with various 2d lighting engines, most have the ability to create a "shadow", or "light mask" based on a sprite which allows shadows to be...
  7. C

    GML Visual Lighting

    Hello all, I have been looking around the internet about lighting systems. I'm still pretty new to Game Maker and I wouldn't take this on if it wasn't important. I say that lighting will be the core mechanic that drives the majority of my game. Between changes in the world, events, mood, and...
  8. RyanC

    GML 2 Color Lighting System - Surfaces & bm_max Issue

    Hi All, I'm wondering if anyone can suggest a better way of doing this: My lighting system uses 2 separate surfaces, 1 for all the background sprites and 1 for the foreground with the player and floor blocks etc. I am trying to achieve a system that will render these surfaces in the GUI_Begin...
  9. Hychan

    Using Primitives to make a Lighting System which shows the first visible wall--

    I followed that one tutorial (https://www.yoyogames.com/blog/419/realtime-2d-lighting-in-gamemaker-studio-2-part-1) to achieve a dynamic lighting system in my top-down game (which was a pain, because the article refuses to load, and I had to find an archive of it. Do y'all know why they took...
  10. P

    GML [SOLVED] Primitives stored in vertex buffers not being drawn to screen

    Hi. I am attempting to create a realtime lighting solution for my game. So far, I have been able to identify all the edges of my objects and have stored them in a list. I am using vertex buffers to store primitives that represent the shadows cast by these edges, but none appear to be drawn to...
  11. Tiago Carvalho

    GameMaker Can a drawn surface be bigger than a room?

    Good afternoon. I am using surfaces to create a lighting system (dark rectangle that overlays the room) , starting at -100 x and -100 y, and being bigger than room width by 100 and room height by 100. When using screen shake, there are parts of the room that are not overlayed, only near the...
  12. Marko03970

    Lightning system

    Hi, I have problems with the lighting system in gms2. I made classic lights with surfaces, and I added shadows too. It's working well, but when I turn on 3-4 lights it starts lagging. Does anyone know any great tutorial or any advice on how to make it faster? Thanks
  13. RipRoarinBoogerBenis

    Lighting Help

    So I built a lighting system that projects 4 black triangles from the corners of the object casting the shadow. It works for the most part, and changing depth according to distance from the player means shadows will be drawn over objects that are further away and don't have line of sight to the...
  14. P

    GameMaker 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...
  15. Yaazarai

    Quick Ray-Traced (QRT) Lighting Tutorial

    GM Version: GM:S 2 (2.2.1.357 IDE, 2.2.1.287 RunTime). Target Platform: Any (As long as they support GLSL ES Shaders). Difficulty: Hard Download Example: Google Drive GitHub: Repo & Technical Writeup Summary: This tutorial will cover the difficulties of lighting and my specific solution using...
  16. A

    Discussion I cant buy anything from the marketplace.

    I wanted the Aura 2 Lighting engine for GMS2. I can't buy anything from the marketplace. Is there any other place I can get it from? I live in India and that would be the issue if i'm not wrong.
  17. Luke Pierson

    Player Lighting Running Off By Itself

    Hello! So I followed a couple tutorials on how to make a sort of torch effect for my player, and the lighting looks cool, but it seems that as soon as I start moving my player, the torchlight moves faster and so it seems to run off by itself and is not attached to where my player is. How can I...
  18. S

    GameMaker Lighting and Shadows

    Evening all, I have just finished the YoYo lighting blog (https://www.yoyogames.com/blog/419/realtime-2d-lighting-in-gamemaker-studio-2-part-1) and have everything working as explained. I have made a couple of changes but I have one thing I want to amend but I am struggling with and I hope the...
  19. Nocturne

    GameMaker Aura 2

    Buy For $7.99 here: https://marketplace.yoyogames.com/assets/5229/aura-2-0-lighting-engine NOW UPDATED FOR GAMEMAKER STUDIO V2.3+!!!!! Aura2 is a GMS2 specific remake of the lightweight, easy to set up lighting engine that I created for your 2D games. It's main feature is that it's a simple to...
  20. F

    Legacy GM Camera is not Zooming out after lightning surface

    Hi Folks, I´m working with a isometric ARPG and in this game we have a local coop for 2 players. I´ve got the camera zooming out when a player get away from the other, but since I implemented a Lightning system the zoom out is not working anymore. I know that maybe is something related to to...
Top