Re: Extending Functionality of Shader Programs
Posted by
elect on
Feb 10, 2016; 10:47am
URL: https://forum.jogamp.org/Extending-Functionality-of-Shader-Programs-tp4036139p4036144.html
Hey ElvJOGL,
let me first give you some links
JCSG is a java program about constructive solid geometry, it may be interesting for you.
Now, to represent all these geometrical shapes you can use jogl, if you have the geometric data, you load them on the gpu and you render them.
Counting the number of pixels is another story. You should take in account that those pixels are just a representation that we see after we loaded the geometry on the graphic card, set up a couple of matrices and the gpu rasterizer has done its job. And the pixels we see represent the outmost geometry.
So it is not really clear to me what you mean by counting the number of pixels.
Do you mean maybe about representing the geometry in small units, such as small cubes, and then counting them?
Anyway, modern OpenGL offers huge potential, you can load your data on the gpu and then perform any algorithm you want with compute shaders (that has nothing to do with rendering at all) and then render the geometry you created/modified