-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
Trying to write shader with lines from OBJ file #333
Comments
Hi @snibbe! So happy and honored seeing you here! Just send you a quick mail, this is one of those cases. GlslViewer geometry loaders mostly know to work with points and triangles at the moment. I usually work with lines them by creating collapsed geometry composed of triangles.
I know a bit convoluted. |
I'll use the workaround. Thanks for such a quick answer! |
If you happen to have an example vertex shader that does this, I would be very grateful if you posted it here. The solution I just tried uses gl_VertexID, but for some reason the glsl version on my Mac in glsViewer is limited to 1.2 and doesn't support gl_VertexID. |
I found this example, is slightly different because it encode the direction that the vertex needs to take on the shader.vert
|
Hi,
I'm just getting started with glslViewer (thanks @patriciogonzalezvivo!). I'm trying to work with an OBJ file consisting only of lines, but the lines won't render using a minimal shader. It looks like it might be an issue with the clipping planes and not computing a bounding box for line objects? But I am not certain. Any advice welcome. Minimal files include inline below.
Scott
test.obj:
test.frag:
The text was updated successfully, but these errors were encountered: