J
Jorppa
Guest
I recently purchased GM:S 2 with plans to make a 2d-3d hybrid game for Windows. For the 3d portion I would need high-performance 3D dynamic height maps as I'd like to maximize rendering speed.
Rendering a static heightmap is no issue for me, but I want it dynamic.
I experimented with shaders and they seemed very promising for the job. I managed to alter vertices' z-values with random values and have virtually no FPS hit.
The issue is that I can't figure out how to pass the actual heightmap values into the Vertex Shader.
One solution would have been to pass the heightmap texture or 2d array into the Vertex Shader. It seemed this is not possible in GM:S 2?
I found no working examples online. I noticed some old threads that mentioned that a .dll is needed to get texture data in the vertex shader. For example here is a Similar issue
Note that I am new to shaders. Did I just miss something, or is there a .dll or some extension I can use? Anyone have experience in this?
Thanks!
Rendering a static heightmap is no issue for me, but I want it dynamic.
I experimented with shaders and they seemed very promising for the job. I managed to alter vertices' z-values with random values and have virtually no FPS hit.
The issue is that I can't figure out how to pass the actual heightmap values into the Vertex Shader.
One solution would have been to pass the heightmap texture or 2d array into the Vertex Shader. It seemed this is not possible in GM:S 2?
I found no working examples online. I noticed some old threads that mentioned that a .dll is needed to get texture data in the vertex shader. For example here is a Similar issue
Note that I am new to shaders. Did I just miss something, or is there a .dll or some extension I can use? Anyone have experience in this?
Thanks!