Poly-reduce with holes
1824 3 0- MathieuLeclaire
- Member
- 79 posts
- Joined: 2月 2008
- Offline
I have a problem I'm not sure how to get around. I'm sure one of you guys will have a simple and elegant solution to this…
I need to poly-reduce some assets and the poly-reduce sop works very well in most situations, but here is a situation that causes me a lot headaches :
Sometimes, my high-resolution meshes ends up with little holes/missing polygons in them like this:
…it doesn't really matter for us when we render the high-res mesh since we never see these holes. They are occluded and super small.
But when we poly-reduce this mesh, these small holes become big holes like this:
…which now becomes a big problem.
How can I make sure my poly-reduce operation ignores small holes like this and treats the surface like a fully closed surface?
I though of using a polycap, but that closes the bottom surface as well and creates a weird shape in the end. I don't want that bottom to be capped, but I do need these small holes to be closed so my poly-reduce gives me clean results.
In this particular case, I could go and close those holes up by hand, but I have thousands of meshes to process, some with thousands of these small holes. So I'm looking for an automatic process that can close these small holes so that my poly-reduce operations can give me clean results.
Any suggestions?
I need to poly-reduce some assets and the poly-reduce sop works very well in most situations, but here is a situation that causes me a lot headaches :
Sometimes, my high-resolution meshes ends up with little holes/missing polygons in them like this:
…it doesn't really matter for us when we render the high-res mesh since we never see these holes. They are occluded and super small.
But when we poly-reduce this mesh, these small holes become big holes like this:
…which now becomes a big problem.
How can I make sure my poly-reduce operation ignores small holes like this and treats the surface like a fully closed surface?
I though of using a polycap, but that closes the bottom surface as well and creates a weird shape in the end. I don't want that bottom to be capped, but I do need these small holes to be closed so my poly-reduce gives me clean results.
In this particular case, I could go and close those holes up by hand, but I have thousands of meshes to process, some with thousands of these small holes. So I'm looking for an automatic process that can close these small holes so that my poly-reduce operations can give me clean results.
Any suggestions?
Edited by MathieuLeclaire - 2020年11月3日 18:35:18
- MathieuLeclaire
- Member
- 79 posts
- Joined: 2月 2008
- Offline
I just figured out a solution…
I'm measuring the throughout area of the mesh, then cap it. Then I measure the area per element. I divide the per element to the throughout area and if the ratio is bigger then a threshold, then it's the large bottom cap and I delete that polygon.
I'm not sure if it's the best solution, but it works. I'm open to other suggestions if there's an easier one.
I'm measuring the throughout area of the mesh, then cap it. Then I measure the area per element. I divide the per element to the throughout area and if the ratio is bigger then a threshold, then it's the large bottom cap and I delete that polygon.
I'm not sure if it's the best solution, but it works. I'm open to other suggestions if there's an easier one.
Edited by MathieuLeclaire - 2020年11月3日 18:46:51
- vusta
- Member
- 555 posts
- Joined: 2月 2017
- Offline
- vusta
- Member
- 555 posts
- Joined: 2月 2017
- Offline
-
- Quick Links