• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

vertex buffer

  1. DrStupid87

    How can I change a shader to draw a sprite once, instead of twice over a set of vertexes?

    Hi again, So I've been working on a shader for a while now but there's a strange issue with it I just don't know how to solve despite a lot of googling. I have a vertex buffer that generates two triangles and fills that with a sprite, the idea being to generate pieces of overlay with it. What...
  2. DrStupid87

    GML Advice on transparency with shaders inside of vertex buffers

    Hi all. So I've got two vertex buffers that draw overlay pieces on my map. I want to put a shader on them so I can get a wind effect working on smaller pieces of grass. Been following a tutorial on it and have hit a snag. Here's the code for my vertex buffer: /// @description Create vars for...
  3. Astrado

    3D Is posible to interact with a 3D object with the mouse?

    I'm making a point and click puzzle game, with 3D graphics using vertex, witch I made following Dragonite's Spam tutorials. So far I have a lot of progress with all the other mechanics. And currently I found my self stuck with this one mechanic quite crucial. I want to make this 3D objects...
  4. EL0FBRENO

    GameMaker How to NOT draw vertices from a Vertex Buffer using a shader

    I want to stop drawing the face of a cube if there's another one beside it, like it's done in minecraft for optimization. But i want to do that using shaders, because the shaders run in gpu instead of the cpu, that makes it run faster etc. etc. Besides that the vertex buffers are a bit annoying...
  5. DrStupid87

    GML How can I get multiple alpha colours in a vertex buffer and flip the sprites?

    Hi all, So I have a vertex buffer over an isometric map. It randomly spawns images of grass, dirt and rock sprites to fill up the map and make it look more interesting. First question is how can I set each sprite (of 1600 drawn) to randomly flip on its x axis? I tried writing image_xscale =...
  6. Tangerine

    GameMaker Draw vertex buffer without stacking alpha

    I have a vertex buffer for drawing the shadows of my game. I draw the vertex with an alpha of 1 and all shadow sprites are black. Then with a shader I reduce the alpha of the drawn vertex buffer to 0.5. The problem is that the alpha overlaps with each shadow and I would want all of the shadows...
  7. FoxyOfJungle

    SOLVED 3D Billboards... how to rotate quad on it's axis, using the vertex shader??

    Hello amazing community, I'm trying to make billboards (for my 3D game) which will be used for particles. In a single batch (vertex buffer), I have several quads, where each 4-vertex quad is a plane representing an individual particle. I create them in real time this way (parts of the...
  8. bsabiston

    sprite_get_texture maybe not working sometimes ?

    I've had a bug for several days where some of my characters are not drawing correctly - I am getting the sprite texture and using that to make a vertex buffer, which I then draw. I cannot see any change I made which would cause this to stop working - unless maybe I just added too many sprites...
  9. Tangerine

    Separate texture for a vertex buffer help

    Is there a way to use a sprite as a texture for a vertex buffer without having to mark that sprite as a separate texture in the sprite editor?
  10. rui.r6o

    Update specific vertex in vertex buffer?

    I am trying to update just a specific vertex in a vertex buffer, however I don't see any direct way of doing it. I know you can override all of the vertices by using vertex_begin() and then adding all of the vertex data, but that means I need to define all vertices again. I know I can also...
  11. Tangerine

    GameMaker 3D Colissions with a plane which vertices are modified with a shader.

    Is it possible to check for collisions with a plane that has its vertices distorted with a vertex shader? For example with vertices that a shader modifies its z position like the waves of this video:
  12. Tangerine

    GameMaker Scrolling surface in a 3D plane help.

    I'm trying to draw a scrolling surface as a texture on a plane. I managed to make it repeatable using gpu_set_tex_repeat. And next I submit the vertex buffer with the surface as a texture. That part works. But not sure how to make it scroll, when I use draw_sprite_tiled inside the surface it...
  13. J

    Graphics Vertex fetching DLL for HLSL

    I have made a DLL that allows you to set textures in the Vertex shader for HLSL shaders. Download is here. How to use (in GML): Call shader_set_device in the create event, with the first argument being the d3d11 device, and the second being the d3d11DeviceContext. Create a texture in the...
  14. A

    Memory leak - like problem with matrix calculations? (3d)

    Hello I'm making a partially 3d game and I have an issue similar to a memory leak: by deactivating 3d models (flushing vertex batches and whatnot to prevent actual memory leaks) and re-activating them (just loading the model in a vertex buffer), performance gets slightly degraded. If you repeat...
  15. F

    SOLVED Adding to a vertex buffer over several frames

    Is it possible to create a vertex buffer and add to it over several frames? I tried reading the docs to see if anything happens when you call vertex_begin a few times after submitting some information but the documentation on vertex buffers generally aren't very helpful. Heres a loose example...
  16. Strobosaur

    Legacy GM Can't create Vertex Buffer of size... (GMS 1.4, game used to work perfectly)

    So a few years back i spent a lot of time on a project in GMS 1.4, it worked absolutely fine at the time development stopped, on both my own 3 computers, and those of at least 3 friends. If i try to run it now however, i get the following error: Fatal Error: Can not create vertex buffer of size...
  17. G

    Drawing A Vertex Buffer As An Outline

    Is it possible to draw a shape built from vertices, say, a circle, as an outline similar to draw_circle(x,y,outline) where outline = true without using a shader? I can't seem to locate a solution. If I render the vertices using pr_linestrip the lines connecting to the radial vertex are also...
  18. Mehdi

    How can I do this?

    Hi friends and merry Christmas to all. Does anyone know how one could make such terrain? (Dark areas) Only a few points: This is non-physics, therefore box2d terrain generation is not needed. The terrain is not procedural, because the game is played in preset levels. The terrain is smooth &...
  19. Raziel Lewach

    SOLVED The garbage collector goes crazy with a vertex buffer existence

    Hello! I'll explain my issue, I see no sense on it. My game runs in 3D at 400+ fps with a lot of stuff drawing, but I added one thing that crazies me. I create a vertex buffer with a big size and, after doing it, the blue bar from the show_debug_overlay (the garbage collector) goes totally...
  20. 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...
Top