Skip to content

Add an Opacity Micromap sample #1542

Description

@yknishidate

Hi,

I have been experimenting with an Opacity Micromap sample based on VK_EXT_opacity_micromap in my personal fork:

https://github.com/yknishidate/Vulkan-Samples/tree/omm_sample

Image

I know that NVIDIA already provides dedicated samples here:

https://github.com/NVIDIA-RTX/OMM-Samples

However, if there is value in adding an Opacity Micromap sample to the Vulkan-Samples repository as well, I would be happy to prepare a PR. (Unlike NVIDIA’s sample, my sample does not depend on an external OMM SDK; it bakes the OMM using a simple compute shader.)

One thing to note is that my current implementation is based on VK_EXT_opacity_micromap. Since the VK_KHR_opacity_micromap specification appears to have been finalized only a few days ago, I am thinking it may be better to wait a little, migrate the sample to the KHR version, and then submit a PR.

Also, the leaf image used as the alpha mask is not included in my current working branch. If the maintainers are open to accepting this sample, I would also like to add the image to the Vulkan-Samples-Assets repository. The image was drawn by myself in Figma.

Please let me know whether this would be a welcome addition, and whether you would prefer the sample to target the KHR version before opening a PR.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions