vertex buffer

  1. 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...
  2. H

    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...
  3. 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...
  4. Bart

    Graphics Blender to GameMaker:Studio Exporter

    Blender to GameMaker:Studio Exporter (current release v1.0.6) Note to the moderators viewing this topic: I spoke with @Nocturne about this and got approval to put it here Introduction After quite a few years I am happy to announce the updated version of my Blender exporter add-on that I posted...
  5. E

    3D Texturing cubes with Multiple Textures?

    I'm working on a game right now that I want to be a simple 3D platformer, using cubes/prisms made from vertex buffers for the terrain. My problem is the way I want to texture the terrain differs based on how the terrain is shaped. Something like this below: I understand I might not be able...
  6. The Reverend

    GMS 2 what's the vertex buffers size? [solved]

    I don't know more than the very basics of buffers and got a question about vertex buffer size. Here's the example code I was testing some stuff with: n_points = 512; line_buffer = vertex_create_buffer_ext(12 * (n_points)); // <- that's the important line for my question...
  7. Gizmo199

    3D How do vertex buffers handle the 'z' in vertex_position_3d? [GMS2]

    I posted this on the sub-reddit but I figured id try here as well: So I have a vertex buffer drawing a bunch of sprites that are stacked one on top of the other in a vertex buffer. Each sprite has a "height" that I put into the vertex_position_3d 'z' function. Now everything within the vertex...
  8. DukeSoft

    Discussion HRESULT: 0x80070057 / vertex_create_buffer_from_buffer / DLL buffer generation

    Just FYI - Since runtime 2.2.4 I've had issues where I got this message pop up: Win32 function failed: HRESULT: 0x80070057 Call: GR_D3D_Device->CreateBuffer at line 294 in file \VertexBuilderM.cpp and my vertex buffers were empty. My projects generates buffers through a DLL - GM creates...
  9. Erik Leppen

    GMS 2 How to draw vertex buffers transformed?

    I'm used to draw a vertex buffer in old versions of GM like so: d3d_transform_set_identity(); d3d_transform_add_scaling(xscale, yscale, 1); d3d_transform_add_translation(xorigin, yorigin, 0); vertex_submit(vbuff, pr_trianglelist, -1); d3d_transform_set_identity(); Apparently, in GM...
  10. Posho

    GMS 2 [Solved] 3D Projection Error

    Hey, I'm encountering this weird issue with some simple 3D projections. I'm trying to make some sort of prison cell but the floor and ceiling can not be seen unless they are looked at from the inside, this happens despite the walls working just fine. What could be causing this? I am using...
  11. P

    GML Reading the contents of a vertex bufferr

    I'm planning on creating a vertex buffer-building DLL in C++, to take advantage of multithreading while generating large and dynamic vertex buffers without editing any of GameMaker's source files (technically possible, according to this thread here). To do this, though, I need to know how Game...
  12. P

    Legacy GM Vertex Buffers only drawing below the map [SOLVED]

    This is sort of a follow-up to another thread I posted. However, another issue popped up. Screenshots displayed at the link: https://sites.google.com/view/prometheus1998imagegallery/vertex-buffers-only-drawing-below-the-map The only things I can think of is that, somehow, I defined the "up"...
  13. P

    Legacy GM Vertex Buffers only drawing half a square [SOLVED]

    Exactly what it says on the tin. I'm trying to create a vertex buffer-based version of @GMWolf's World Chunks tutorial before jumping off the deep end into 3D graphics. Images are hosted on the link below; I couldn't get the screenshots to embed correctly. There's one showing the end result...
  14. Anixias

    GMS 2 Slight Sprite/Texture Glitch

    Hi. I decided to optimize how I render my game's terrain. The terrain is tile-based. I was simply looping through every tile on screen every frame and recalculating subimages and rendering tiles. As you can imagine, this didn't really work, as it took 95% of my debugger's profiling time. So, I...
  15. The Reverend

    Shaders Vertex Buffer - Linking Attributes in GLSL ES

    I'm looking into vertx buffers for one of my next tutorials and got a question about linking the vertex buffer to the vertex attributes in GLSL ES & windows. Depending on how I do it the order is flipped. In Create Event I'm building the vertex format with position and 2 sets of texture...
  16. Nux

    Alpha 2D Skeletal Animation - Animation States

    - A bare-bones, pure GML, modular animation runtime for GMS2 - Nuxii 2D Skeletal Animation Runtime Downloads: Download the most recent runtime (to be added in the near future once everything is wrapped up) Marketplace(?) GitHub Direct Introduction: Hi, this began as a personal project which...
  17. Bingdom

    Shaders Making vertex buffers pixelated

    Hello GMC, So from my understanding, vertex buffers/ primitives are shot straight to the GPU. Ignoring all game resolutions and only using your monitor's display resolution. I know to get texture coords, it's v_vTexcoord. I'd like to know an equivalent or similar way to this. The problem I'm...
  18. acidemic

    Question - Code Is it possible to move vertex buffers in a room in GMS2?

    I am working on the 2D game where I have terrain being drawn using the vertex buffers. So far this was ok until I decided to introduce pieces of terrain with parallax movement. So now I want parallax affected terrain to move relatively to the main player's terrain. Programming parallax logic is...
  19. Anixias

    GMS 2 3D Floating Objects Problem

    I'm making a 3D game using the approach found in Don't Starve, so my trees are 2D images rendered onto vertical planes. I have an issue, though. My trees "float", because the plane sits directly on the terrain, so the bottom of the plane is actually some graphical space below the tree stump. How...
  20. Kaliam

    GMS 2 3D: drawing a vertex buffer at different coordinates/location?

    Hello, I'm just curious if anyone knows of a way to draw a frozen vertex buffer at a different location on screen? I've checked through the documentation for a way to do this and so far the only thing I could find is: matrix_transform_vertex(matrix, x,y,z,) However, since i'm pretty sure a...
Top