• 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. 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...
  2. Bart

    Graphics Blender to GameMaker Exporter

    Blender to GameMaker:Studio Exporter (current release v1.0.10) 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...
  3. 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...
  4. The Reverend

    GameMaker 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...
  5. 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...
  6. 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...
  7. Erik Leppen

    GameMaker 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...
  8. Posho

    GameMaker [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...
  9. 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...
  10. 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"...
  11. 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...
  12. Anixias

    GameMaker 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. Anixias

    GameMaker 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...
  18. Kaliam

    GameMaker 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...
  19. GMWolf

    Graphics Swaying grass tutorial - GMWolf

    GM Version: GameMaker:Studio 2 Target Platform: ALL Download: N/A Links: YouTube Video Summary: Add lush swaying grass to your game with this powerful solution. This video aims to introduce you to Vertex Buffers and Vertex Shaders in GameMaker Studio 2, by building a a simple grass mesh...
  20. Anixias

    GameMaker [Solved] 3D Z Testing doesn't work GMS2

    I am using vertex buffers to create and store primitives and models, but whenever I use vertex_submit, the entire vertex buffer is rendered at a single depth, in the order I submit them. This means that nothing can really phase-through anything else. It's not too hard to set objects at the...
Top