OpenGL - geometry shaders
Вставка
- Опубліковано 20 лип 2019
- Code samples derived from work by Joey de Vries, @joeydevries, author of learnopengl.com/
All code samples, unless explicitly stated otherwise, are licensed under the terms of the CC BY-NC 4.0 license as published by Creative Commons, either version 4 of the License, or (at your option) any later version.
Very nice video with a clear explanation. I can pick up the idea very quickly.
Great video, thanks for taking the time to make it. :-)
Great explanations.
Good stuff Mr. Will.
that is so cool
nice
why can I not use structs as output from the vertex shader and input to the geometry shader, if I declare them just like you out in the blue, it works, if I pack them into an out VOUT { vec3 TexCoords; vec3 Normal } vs_out; and try to get them by in VOUT { vec3 TexCoords; vec3 Normal } gs_in[]; and by accessing gs_in[0].TexCoord and gs_in[0].Normal, it does compile fine, but it just does not work. Any Ideas?
At 03:12 you said 4 triangles but wouldn't that make 3 triangles? Since in this case it's numOfTriangles=N-2.
not to mean harsh but what purpose of theses videos, i think learnopengl.org are sufficient.
Particularly for the more difficult concepts, it's useful to have the same information presented in multiple forms. Some people may prefer to read only, others want to read first then watch, and others want to watch first then read. I'm also generally doing a more complete walkthrough of the code examples than on the site. There are also some cases in the code and explanations where I'm adding more detail and tweaking for clarity. In a few cases, the original code has mistakes, such as this one: the original code exploded the nano suit triangles in clip space, causing some triangles to clip; exploding them in view space fixes the problem.
@Tungki Reza Prasakti with your logic, none should go to schools or universities, we could all go buy the books and study directly.
Then why are you here if you don't need the video ?
This is actually really helpful i comeback here after i finish reading just to be *extra* sure.
I think the comment was just spam for that site which no longer exists.