Skip to content

How to draw many instance of plan with same texture but with different uvs. #321

Description

@iomeone

for example, I want to draw 1000 cards, and every cards shows a number. How to do this with InstancedUniformsMesh.

from https://protectwise.github.io/troika/three-instanced-uniforms-mesh/ , it seems setUniformAt only support float, vec2, vec3, vec4, mat3, mat4. but how to support sdfTexture and pass uv of each sdf character to uniform ,and render it.

the links below implement without being use sdf text.
https://github.com/Oxynt/three-instanced-uv/blob/main/index.html

https://raw.githack.com/Oxynt/three-instanced-uv/main/index.html

I wonder how to draw instance using troika-three-text

Thank you!

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