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

Compilation issues with gl_VertexID name #3

Open
sthibaul opened this issue Apr 6, 2018 · 6 comments
Open

Compilation issues with gl_VertexID name #3

sthibaul opened this issue Apr 6, 2018 · 6 comments

Comments

@sthibaul
Copy link
Contributor

sthibaul commented Apr 6, 2018

Hello,

When running DepixelizeOnGPU, I am getting

Compiling shader : ../shaders/Optimization/OptimizeEnergy.vert
0:54(8): error: `gl_VertexID' redeclared

Linking program
error: linking with uncompiled/unspecialized shader
Compiling shader : ../shaders/UpdateCorrectedPositions/UpdateCorrectedPositions.vert
0:24(8): error: `gl_VertexID' redeclared

Just for trying, I renamed them into gl_VertexID2, and got instead

Compiling shader : ../shaders/Optimization/OptimizeEnergy.vert
0:54(1): error: identifier `gl_VertexID2' uses reserved `gl_' prefix

Linking program
error: linking with uncompiled/unspecialized shader
Compiling shader : ../shaders/UpdateCorrectedPositions/UpdateCorrectedPositions.vert
0:24(1): error: identifier `gl_VertexID2' uses reserved `gl_' prefix

I don't know if this is supposed to have exactly this name, otherwise I guess it should be renamed to avoid being in the gl_ namespace?

Samuel

@sthibaul
Copy link
Contributor Author

sthibaul commented Apr 6, 2018

(renaming to VertexID gets these three errors away)

@h00shi
Copy link

h00shi commented Apr 16, 2018

gl_VertexID gets decalred implicitly. I think the only change is to comment these lines:
in input gl_VertexID.

@sthibaul By the way, have you been able to successfully compile this code? I can compile on windows with NVIDIA Titan, however, the graph extractions does not seem to work.

@onefish51
Copy link

gl_VertexID gets decalred implicitly. I think the only change is to comment these lines:
in input gl_VertexID.

@sthibaul By the way, have you been able to successfully compile this code? I can compile on windows with NVIDIA Titan, however, the graph extractions does not seem to work.

I have the same problem ! I run it on Windows with NVIDIA GPU .
here is the result :
frame

@shakibakh
Copy link

shakibakh commented Nov 23, 2021

Hello. I am encountering the same issue on windows with Nvidia GPU as the above comment. Could anyone figure out how to fix this issue? @sthibaul @falichs

@stanleyguevara
Copy link

stanleyguevara commented Mar 30, 2023

SImilar here. Managed to compile and run, cleared the gl_ related stuff, that's the output I get from F2-F4:
bad2

Doesn't seem to be the hardware, as I've ran demo linked here and I get:
better
There are some glitches in the b-spline image, but honestly I don't really care, I'm after Voronoi here.

It looks a bit like it fails on building a similarity graph in what I compile. The graph is there, but not connected, like in the second pic. So then Voronoi is all-square, and b-splines are a mess...

Any ideas? @falichs @sthibaul

@falichs
Copy link
Owner

falichs commented Jul 4, 2023

Hi Everyone!
Sorry for my late response - i did not find the time to maintain this very old student project ;)
i just pushed a commit, which should fix at least some of your issues!

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

6 participants