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.

Verge3d model glTF export

Home Forums Graphics / Blender Verge3d model glTF export

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #63380
    cangunes
    Participant

    Hello, I am developing ring configuration. Rings can be gold and silver. I want to add different color like blue. I opened glTF file in blender that i added new material for color but i can’t export file. I tried different version blender 2.93, 2.83 etc. Also, i tried different version Verge3d but same error. i am developing a project similar to this repo: https://github.com/mantissa23/flxv.RingConfigurator
    glTF file is located under static/assets. Can you help me?

    #63381
    kdv
    Participant

    That’s a really old app (2.13.0) and even if you re-export the model now most likely it won’t work with the old scripts. Or you should install Verge3D 2.13.0 to work with this app. And first of all you need to get rid of all v3d_Proxy_Node_ objects before re-exporting. Those intermediate objects were automatically created for every parented object at the previous exporting.

    P.S. All additional materials (and colors) can be added via JS without re-exporting.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #63384
    cangunes
    Participant

    I see. Thanks. I tried to change color with javascript but it didn’t work. How can I do? Do you have any idea?

    #63394
    kdv
    Participant

    Well, just clone materials with new names and change RGB color. Or you can change RGB colors in existing materials on demand without cloning.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #63396
    cangunes
    Participant

    How can I clone materials? It produces whiteMatt, whitePolished, whiteMattCross, which is formed in the glTF file. It breaks when I try to manually add it to the glTF file myself. You know, i can’t export model in blender.

    #63397
    kdv
    Participant

    https://www.soft8soft.com/docs/api/en/materials/Material.html#clone

    You know, i can’t export model in blender.

    In fact you can if you remove all v3d_Proxy_Node objects…

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #63399
    cangunes
    Participant

    Thank you, i will try.

    #63428
    cangunes
    Participant

    I tried but i didn’t make :( I removed v3d_Proxy_Node… then i tried export but returned error. Error is PointLight object has no attribute ‘shadow_buffer_clip_end’. After that i tried change with javascript in code but this returns error cannot find material. Again i removed v3d_Proxy_Node manually then it returns error Cannot read properties of undefined (reading ‘isDirectionalLight’). Can you help me?

    Attachments:
    You must be logged in to view attached files.
    #63431
    kdv
    Participant

    even if you re-export the model now most likely it won’t work with the old scripts

    Or you should install Verge3D 2.13.0 to work with this app

    Too much to rework in scripts to make it work with models exported in the up-to-date versions of Verge3D…

    Can you help me?

    Not for free

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #63432
    cangunes
    Participant

    Okay, can you reach me?

    #63433
    kdv
    Participant

    write to kdv [at] izh [dot] com

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #63434
    kdv
    Participant

    As I’ve said it’s enough just to clone materials with different names and colors.
    https://v3d.net/j4s

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #63437
    cangunes
    Participant

    Hi kdv, I got a error about light. ‘PointLight’ object has no attribute ‘enable’. I fixed it, closed light’s shadow property then i can get exporting glTF file. After that i tried to remove v3d_Proxy_Node elements it works but model is showing differently. Not changing color etc. I put images about it. So, i don’t remove anything, just get exporting glTF file then imported project, i am getting new error. Error is v3d.Object3D.add: object can’t be added as a child of itself. I don’t know, how can I fix that? When I delete v3d_Proxy_Node, the model is exported, but the model does not change color etc. It gives an error when I do not delete it, export it directly and use it.

    Attachments:
    You must be logged in to view attached files.
    #63447
    kdv
    Participant

    v3d.Object3D.add: object can’t be added as a child of itself

    That’s because you didn’t delete v3d_Proxy_Node_. Objects with such names are created automaticaly by Verge3D exporter for every parented object. And they do not exist initially in .blend file. But if they exist in .blend (after importing from .gltf) then there will be a conflict when re-exported.

    the model is exported, but the model does not change color etc

    What version of Verge3D is used? Did you try 2.13.0?

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #63448
    cangunes
    Participant

    I imported the glTF file and then deleted the v3d_Proxy_Node parts. I think I need to import the blend file and then delete it there and export it as glTF. Yes, i installed 2.13.0

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.