A
A
Asker2017-01-16 17:10:25
GPGPU
Asker, 2017-01-16 17:10:25

How to render a voxel model on a video card?

There is a "Marching cubes" method, which, as I understand it, first creates a polygonal model - an isosurface - from a voxel model, and then the resulting model is rendered in the usual way. I did not understand the principle on which the algorithm is built (I found articles in Russian). Wikipedia also shared another method - throwing snowballs, in which the principle, as I understand it, is as follows:
you need to solve the equation of a straight line [voxel - viewing surface - camera point], determine the point of intersection with the viewing surface, and then this "pixel" is painted over with color the nearest voxel that has been projected onto it. The problem here is, as I understand it. in that you need to sort the voxels in order of distance from this surface, and then just select the closest ones for each pixel.
project and tried to understand the code that is running on the video card, but without understanding the principle of the algorithm, it is difficult. Although it can be seen here that a grid of 20kX10kX20k in size is processed in realtime, albeit with a poor resolution.
In general, we need materials in Russian, or if it’s not difficult for anyone, write the basic principles of this algorithm right here.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question