Sign in to follow this  

Maximum MipMaps For HeightField Rendering

Recommended Posts

Hornsj3    195

I am implementing GPU ray-cast terrain in Directx11, rendered based on heightmap data.

In order to make it more efficient I am attempting to implement the algorithm outlined in the following paper. [url=""][/url]

My experience with DirectX is limited. I was wondering what the best approach would be to populate the mip levels of the texture pyramid outlined in the paper. Is this something to be done on the CPU side, or the GPU side? Can anyone think of a specific implementation for this?

As far as the paper I linked goes I'm just looking for the way to implement the mip-map data structure.

******************************************************Process Description **********************************************
1. Create a Texture of NxN.
2. Directx generates the mipmap levels.
3. I overwrite the auto generated mip map values with custom values according to the algorithm.

Are these steps best done in a compute shader, rendered as individual render targets per mip level, or on the CPU? An implementation hint would also help.



Share this post

Link to post
Share on other sites
Hornsj3    195
Maybe I should rephrase this.

I'm wondering what the recommended way to populate mip-map data is.

Do I load an image file as a resource, calculate the subresource data, set the descriptor to generate mip levels, and assign the resource data to the texture object? This is a CPU solution.

Is there a better GPU solution?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this