WebGL 2: Element Arrays & drawElements()

preview_player
Показать описание
This video looks at element arrays and the drawElements() function. We'll take our first look at targets (aka binding points). And we'll see the huge benefits -- and drawbacks -- of using these over simple vertex arrays and drawArrays().

You can find supplementary materials on this video series' GitHub page:

This series on WebGL 2 was produced for anyone who, like me, had major problems getting a firm understanding of WebGL's intermediate and advanced concepts. Every video is focused on a single concept. If I've done this well, you shouldn't really need to "get up to speed" before watching any of these videos. There are no external libraries. I'm not building up to a custom API or injecting any abstractions. And I don't expect you to have watched from episode #1 to get "how I'm doing things with WebGL."

Complete playlist:

Videos:

I really hope someone out there will find this series helpful.
Рекомендации по теме
Комментарии
Автор

Thanks a lot :D Looks way better than the function I created to convert .obj file faces into triangles

Alex-kbws
Автор

You mentioned "more round trips to the GPU" as a con. Does an index buffer still incur an overhead even if it's static?

nullstress
Автор

HI Andrew, Just wondering if you offer a course on Udemy or Another Platform? My comment is late so don't know if I'd see a reply.

dharnilm
Автор

"... notice anything redundant ? or ... possibly redundant ?"

bigpapsi