GMS 2 [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:
 

Sybok

Member
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().
 

zenzyr

Member
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);
 

Sybok

Member
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