Skip to content

takahirox/EXT_text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

EXT_text

Contributors

Status

Draft

Dependencies

Written against the glTF 2.0 spec.

Overview

If you want to 3D text data in a glTF, you need text geometry data in it. 3D text geometry data is expensive and can increase the file size a lot. This EXT_text extension allows to easily and inexpensively 3D text data.

Example screenshot

Example screenshot

Defining Texts

"extensions": {
    "EXT_text": {
        "texts": [
            {
                "text": "Hello glTF!",
                "fonts": ["Arial", "Times New Roman"],
                "size": 1.0,
                "color": [1.0, 1.0, 1.0, 1.0]
            }
        ]
    }
}

Adding Text instances to Nodes

"nodes": [
    {
        "extensions": {
            "EXT_text": {
                "text": 0
            }
        }
    }
]

Text Types

Property Type Description Requires
text string Text content ✅ Yes
fonts string [1-*] No
color number [4] Text's RGBA font color No, default: [0,0,0,1]
size number No, default: 1.0

Implementation Note

T.B.D.

About

glTF text extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published