Skip to content

Tutorial for rendering multiple objects / How to use VAOs properly by Chapter 1 #99

@Bigwee875

Description

@Bigwee875

I went through Chapter 1 & was able to get 1 object rendered.
Unfortunately I did not fully understand Vertex Array Objects, Vertex Buffer Objects, or why they must be assigned or how they were useful.
I also didn't know how to draw multiple different / similar objects using VAOs.

Apparently they were mentioned in passing (code) in Chapter 2, but Chapter 2 sounded a lot like visual improvements so I had passed that up, because I wanted to render multiple objects first, and was flailing headless until I visited the Discord.

Is it possible to add a last Tutorial onto Chapter 1 that walkthroughs how to Render different objects properly?
Such as what VAOs / VBOs need to be reassigned, what needs to change before a second GL.Draw...

I think it'll be a great opportunity to also explain why VAOs are great since we'd actually be switching between them.
Rendering only 1 object is fine for an entry tutorial but it's a mystery when wanting to draw multiple different objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions