Skip to content

trying to add a text geometry, stuck in JavaScript #28

@shensquared

Description

@shensquared

Hi Robin, I'm trying to add a text geometry where I can put short description of the scene like 'new initialization', so it'd be easier for audience to interpret my animation.

I added a TextGeometry in the geometry.py file, similar to all the box/sphere. By reading this https://threejs.org/docs/#api/en/geometries/TextGeometry documentation, not much is needed other than passing in params, and I'm almost sure I've done this part correctly.

But when declaring a new TextGeomotry, python throws error saying 'uuid' not defined. Looking into some threejs documentation, this seems to be potentially caused by missing of Three.FontLoader() dependency, but then I'm stuck. I have a vague sense the JS files under the viewer folder is what I should modify but I don't know exactly how?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions