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.

КОМЕНТАРІ • 15

  • @joehsiao6224
    @joehsiao6224 4 роки тому +1

    Very nice video with a clear explanation. I can pick up the idea very quickly.

  • @samuelcampbell6559
    @samuelcampbell6559 3 роки тому

    Great video, thanks for taking the time to make it. :-)

  • @hubertblainewolfeschelgels5295
    @hubertblainewolfeschelgels5295 2 роки тому

    Great explanations.

  • @insertoyouroemail
    @insertoyouroemail 4 роки тому

    Good stuff Mr. Will.

  • @danielkrajnik3817
    @danielkrajnik3817 3 роки тому +1

    that is so cool

  • @raghul1208
    @raghul1208 Рік тому

    nice

  • @kampkrieger
    @kampkrieger 2 роки тому

    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?

  • @graphics_travelers
    @graphics_travelers Рік тому

    At 03:12 you said 4 triangles but wouldn't that make 3 triangles? Since in this case it's numOfTriangles=N-2.

  • @tungkirezaprasakti9511
    @tungkirezaprasakti9511 4 роки тому

    not to mean harsh but what purpose of theses videos, i think learnopengl.org are sufficient.

    • @briantwill
      @briantwill  4 роки тому +30

      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.

    • @acajoom
      @acajoom 4 роки тому +6

      @Tungki Reza Prasakti with your logic, none should go to schools or universities, we could all go buy the books and study directly.

    • @eliaswenner7847
      @eliaswenner7847 4 роки тому +4

      Then why are you here if you don't need the video ?

    • @brad7816
      @brad7816 3 роки тому +2

      This is actually really helpful i comeback here after i finish reading just to be *extra* sure.

    • @ThinkingNow
      @ThinkingNow 3 роки тому +1

      I think the comment was just spam for that site which no longer exists.