You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
Using planes are too thin to provide side coverage and spheres are weirdly shaped for 90-degree angle games made out of mostly cubic shapes.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Allowing the use of a OccluderShapeCube would have all of the depth benefits of OccluderShapeSphere compared to the 2D OccluderShapePolygon but would fit the geometry of gridmap-based games using cube-shaped meshes primarily for design.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
It would be added to the occluder node as a shape option.
If this enhancement will not be used often, can it be worked around with a few lines of script?
No because it needs to be part of the occluder node.
Is there a reason why this should be core and not an add-on in the asset library?
It needs to be part of the occluder node.
The text was updated successfully, but these errors were encountered:
4.0 has a BoxOccluder3D resource, but implementing box occluders in 3.5 isn't trivial due to how occlusion culling works in 3.x. Allowing generic meshes to be used for occlusion was being worked in godotengine/godot#52347, but it ended up being scrapped in favor of a simpler solution with only quads.
Still, you can represent a cube occluder by using 6 quads (or 4 if you don't need floor/ceiling occlusion). The issue is that geometry overlapping several occluders will not be culled in 3.x, due to how geometry occlusion works (as opposed to raster occlusion, which can do this in 4.0). Therefore, using several small occluders will usually not result in anything being occluded. You need to use fewer larger occluders instead.
4.0 has a BoxOccluder3D resource, but implementing box occluders in 3.5 isn't trivial due to how occlusion culling works in 3.x. Allowing generic meshes to be used for occlusion was being worked in godotengine/godot#52347, but it ended up being scrapped in favor of a simpler solution with only quads.
Still, you can represent a cube occluder by using 6 quads (or 4 if you don't need floor/ceiling occlusion). The issue is that geometry overlapping several occluders will not be culled in 3.x, due to how geometry occlusion works (as opposed to raster occlusion, which can do this in 4.0). Therefore, using several small occluders will usually not result in anything being occluded. You need to use fewer larger occluders instead.
Thanks, yeah I tried making a cube but it didn't really work very well, I found a sphere worked a little better but has downsides too (things disappearing inside the sphere). I didn't actually know 4.0 had a much better occlusion technique so I'll probably just make bigger occlusion planes instead.
Calinou
changed the title
Occluder node include OccluderShapeCube
Add OccluderShapeCube to geometry occluders
Oct 24, 2022
Describe the project you are working on
Gridmap based First-person game.
Describe the problem or limitation you are having in your project
Using planes are too thin to provide side coverage and spheres are weirdly shaped for 90-degree angle games made out of mostly cubic shapes.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Allowing the use of a OccluderShapeCube would have all of the depth benefits of OccluderShapeSphere compared to the 2D OccluderShapePolygon but would fit the geometry of gridmap-based games using cube-shaped meshes primarily for design.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
It would be added to the occluder node as a shape option.
If this enhancement will not be used often, can it be worked around with a few lines of script?
No because it needs to be part of the occluder node.
Is there a reason why this should be core and not an add-on in the asset library?
It needs to be part of the occluder node.
The text was updated successfully, but these errors were encountered: