GameMaker [Solved] 3D Walls in Studio 2

Posho

Member
Hello,

With the death of d3d functions, I've been having to fiddle with vertex buffer functions which is a completely new ground to me. Whilst I was able to pull off drawing floors with textures, I can't properly pull off walls.

Can anyone who knows how this works, please help me with this? It's literally just a wall. :potato:
 
Z

zenzyr

Guest
Could you explain your process? I'm having lots of trouble figuring this out.
 
Z

zenzyr

Guest
I think he just changed the image_angle to a certain degree.
The image_angle would only work on the x and y cords. Because game maker doesn't exactly have a z cord, the function cant be used here.
 
S

Sybok

Guest
Aside from creating the vertex buffers correctly, the easiest way is just to reuse the floor buffer and apply matrix_build() followed by matrix_set().
 
Z

zenzyr

Guest
Aside from creating the vertex buffers correctly, the easiest way is just to reuse the floor buffer and apply matrix_build() followed by matrix_set().
like this?

var matrix = matrix_build(x, y, z, 0, 90, 0, 1, 1, 1);
matrix_set(matrix_view, matrix);
 
S

Sybok

Guest
Yes, but with matrix_world. Matrix_world affects the model itself.

But after the draw you need to set it back to matrix_build_identity() otherwise the transform will be applied to every other object thereafter.
 
Top