Golf cup - how to handle with hmap based terrain?

Blitz3D Forums/Blitz3D Programming/Golf cup - how to handle with hmap based terrain?

wmaass(Posted 2009) [#1]
I love the idea of using heightmap based terrain for creating golf holes - it's fast, easy and effective. However I have never found a great solution for having a cup on the green that the ball can fall into. Seems like my only option other than making the cup 2D is to create the golf hole using terrain editors such as TEd, converting it to a mesh terrain and then cutting the hole into the green where I want it manually. Anyone have any other ideas?


GfK(Posted 2009) [#2]
I used a black circle as a 2D sprite for the hole in Par Fore.

Otherwise you're getting into the realms of polygonal nightmares.


wmaass(Posted 2009) [#3]
Yeah that is what I figured. 2D sprite isn't a bad solution but I'm dealing with purists who would likely object.


Bobysait(Posted 2009) [#4]
Just try to duplicate a significant part of the polygon where belong the hole. cut the polygon as you can make a hole in it.
add the duplicate polygon ( with the hole ) superimpose the corners, and modify the "hole" height, resulting the hole to be a bit heigher than the terrain.




wmaass(Posted 2009) [#5]
Great idea.