Skip to content

Please add example of drawing an .obj with a material/texture.  #176

Open
@Triazic

Description

@Triazic

I can use 'LoadModel' to load my obj and I can render it using DrawModel with a tint.

But I can't figure out how to apply texture/material to it. Of the following functions in the cheatsheet:

image

Only SetModelMeshMaterial is exposed which I can't do, if I can't load it in the first place:
image

And the approach used in the raylib example here doesn't work due to type errors:
image

I don't doubt there is a way but I'd rather not dig into the cryptic bowels of the js/ts wrappings etc. Please provide an example using the API as it stands today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions