• 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!

triangles

  1. M

    Drawing triangle vertices between two 3D transforms?

    Hello, everyone. Just like the title states, is there a way I can do this? I've noticed when I use "d3d_transform_set_identity()", I can only draw triangles within that transform. What I would like to do is ultimately created skinned meshes, such that I can set the vertices of a triangle to...
  2. R

    Drawing a repeated primitive along a path

    Hi guys, So I have a simple path roughly in the shape of a circle and I want to repeat a texture around the entire length of the path. I'm using primitives because ultimately the path I'm going to apply this to is massive and this is the most efficient way so far to achieve this. Using a...
  3. J

    Legacy GM [solved] rectangle_in_triangle collision problem?

    I have what looks to be a triangle overlapping a rectangle, but it returns false. I simplified a script I have to isolate the problem, but I still can't seem to figure out what it is. I'm creating a collision system that's based on grid cells (you can see the cells based on the background...
  4. Joe Ellis

    3D Interpolation across a triangle

    Hi, I was wondering if anyone knows how to calculate what the texture coords would be at a 3d point on a 3d triangle, linearly interpolated between the coords at each vertex? I know its quite simple but I cant get my head around how it actually works, I need to interpolate between each 2d...
  5. B

    Legacy GM Applying One Texture Across Multiple Faces?

    Hello, I've been using GM for several years now but this is my first time posting on the forum so forgive me if I make any mistakes here. My problem is thus, I'm creating a game in which I have a number of textures, like this: I need to resize one side of these textures so that it appears...
  6. G

    Legacy GM Explain pr_trianglestrip?

    I'm using primitives to draw the sides of an isometric cube. The documentation described a set of commands that made a rectangle. Thinking I understood this, I went and made the 3 polygons, but this didn't work. There is a corner missing from each polygon, and triangles appear to be being drawn...
  7. M

    Drawing triangles

    How does one go about creating filled in triangles without using game maker's default function "draw_triangle_colour"? Im curious to know and would love to establish my own script that draws triangles for me.
Top