i have cave generated with help of perlin noise. I have 2d vector with marked borders so I need to split them into polygons to handle collisions with them (i use qt, c++)
how to get polygon borders by 2d vector
Maybe it's just me, but I have no idea what you are asking, or if you are even asking a question.
Just guessing here, but it seems like you want to generate a representation of your Perlin noise caves that you can use for collision detection? If the caves are 2D, you could use the marching squares algorithm to convert it to a series of lines representing the cave walls. In 3D, use the dual contouring or marching cubes algorithm to convert the noise field to a triangle mesh. Then you can use the mesh or lines to do collision detection using standard approaches.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement