We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Blender Text Export

Home Forums General Questions Blender Text Export

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #64131
    cangunes
    Participant

    Hello, I create Curve Text and then export it in glTF format. The version I am using is verge3d 2.13.0. Then I can add it to the scene with the loader. But what I want to do is to be able to change this Text whenever I want. For example, I want to make “Y” while writing “X” by default in the Text object. I can replace the geometry part of the Text I added to the scene with a new TextGeometry, but this time it loses the Curve property. There are no parameters and text in the geometry part of the Text object. How can I do that?

    
    const loader = new v3d.GLTFLoader()
      loader.load('../../assets/newText.gltf', function(gltf) {
        console.log('gltf: ', gltf)
        var item;
        var item2;
        gltf.scene.children.forEach((x)=>{
          if (x.name === "ManText") {
            item = x
          }else if(x.name === "WomanText"){
            item2 = x
          }
        })
        console.log('item1:', item)
        console.log('item2: ', item2);
    
        appInstance.scene.add(item)
        appInstance.scene.add(item2)
      })
    
    Attachments:
    You must be logged in to view attached files.
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.