SupernaturalCow
Member
The problem: I use one object to draw all of my terrain and dynamic objects. I currently use depth sorting to draw each tile one after the other, but I'm running into troubles where the player clips with the ground to the right and below him.
The question: I would like to be able to draw sprites at different depths (or Z values), in order to alleviate this problem. Is it possible to draw 2D primitives at different Z positions in 3D space in GM2? In the old GM I would have gone to d3d and drawn a primitive with my desired depth as the Z value, but in GM2 it seems a lot more complicated.
What I read of the manual: After realizing that mostly all d3d content is now obsolete, I took to the vertex buffer section to understand more of how 3D models are drawn procedurally. The problem is that I can't seem to understand enough of the custom vertex buffer stuff to really dig into it well enough. If possible, would anyone also mind referring me to some good guides on the topic of drawing 3D in GM2?
Thanks a bunch!
The question: I would like to be able to draw sprites at different depths (or Z values), in order to alleviate this problem. Is it possible to draw 2D primitives at different Z positions in 3D space in GM2? In the old GM I would have gone to d3d and drawn a primitive with my desired depth as the Z value, but in GM2 it seems a lot more complicated.
What I read of the manual: After realizing that mostly all d3d content is now obsolete, I took to the vertex buffer section to understand more of how 3D models are drawn procedurally. The problem is that I can't seem to understand enough of the custom vertex buffer stuff to really dig into it well enough. If possible, would anyone also mind referring me to some good guides on the topic of drawing 3D in GM2?
Thanks a bunch!