Login  Register

Extending Functionality of Shader Programs

Posted by ElvJOGL on Feb 09, 2016; 7:49pm
URL: https://forum.jogamp.org/Extending-Functionality-of-Shader-Programs-tp4036139.html

Hi everyone, specially to @Elect who responded to my first jogamp forum post.

I am a college student. A professor at my school has asked me to help her on her research. Her work entails investigating the area of the boundary of polygon geometry when subject to subtraction. For instance taking the subtracting the geometrical region of a polygon by the same shape polygon only toned down in scale. Like subtracting a small triangle out of a larger triangle. The professor's interests is to investigate the relation between the region the is left inside the larger polygon, because that translates into a variable which might link to Ehrhart's Polynomial coefficients. I am not saying in fact that Ehrhart's Polynomial coefficients are involved, but they might, only if I knew the entire work of what my professor is working.

However, my role into this as a program is to write a program that can visually represent all these geometrical shapes to make it possible to do count the number of pixels that are in the polygonal region.

Anyways, the problem that I ran into in java is that Heap memory is too small, even in 64Bit java version. The problem here is that storing that many pixels into an array is somehow IMPOSSIBLE, because the number of pixels that one derives out of the H Fold Sum Set Algorithm that I am working on outputs a number of an integer number like 49 digits long. You for a fact that the number is huge, it will take virtual about 32GygaBytes or more to store that many vectors in a file. I have tried it, but because the look is so slow as the number of vectors (vertices) approach 1 billion pixels, it just to overwhelming.

Anyhow, I was just looking into OpenGL technology (I mean programming) and I am wondering whether one can write multiple shader programs with hard coded vectors to draw the geometry that I am looking?

Anyone is particularly capable or understand GLSL Shader programming, do you think this type of work is possible with JOGL Shader? I prefer JOGL Java because I have been working with java for quite some time and the research opportunity that my professor has offered me is something that I have not expect and it is putting me to the test.

Any help will be greatly appreciated.

If you guys need more explanation about lattice points geometry, let me know.

I will definitely come around this forum to share my questions in how to solve this Tabaco.

thank you.