Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Strange mesh for medium size surfaces #12

Open
ivka15 opened this issue Oct 15, 2014 · 1 comment
Open

BUG: Strange mesh for medium size surfaces #12

ivka15 opened this issue Oct 15, 2014 · 1 comment

Comments

@ivka15
Copy link

ivka15 commented Oct 15, 2014

While working with data extracted from images I noticed a strange mesh behavior for ISurface. Ouliers occur and the contours flicker. Probably some overflow in the rendering part??? I have isolated the bug to be easily reproducable (see code below). Look at the lower left corner of the generated mesh. It occurs with uSize >= 63 for vSize = 4 and with increasign vSize the uSize threshold for the bug to be visible decreases. Can you please have a look on it and possibly fix it?

int uSize = 63;
int vSize = 4;
IVec4[][] controlPoints = new IVec4[uSize][vSize];

for(int i = 0; i < uSize; ++i)
  for(int j = 0; j < vSize; ++j)
    controlPoints[i][j] = new IVec4(i, i, j); //the bug is also visible for i,i+j,j i,i*j,j i,i/(j+1),j etc. 

new ISurface(controlPoints, 3, 3).clr(1,.5,1);
@sghr
Copy link
Owner

sghr commented Oct 20, 2014

I tested it with your code and I couldn't observe the flicker.
In my experience, I saw 3D display issues depending on graphic cards and settings around them especially after Processing versioned up to 2.0 with the new version of OpenGL.
There is a possibility that you might not get the flicker if you use Processing 1.5 with the compiled binary of iGeo for 1.5. It's also possible that the future version of Processing solve the issue. And it's also true there might be a factor indirectly causing this issue in iGeo which I have no idea about right now but if somebody has any clue please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants