Search Unity

uniGLTF import - generate lightmap UV

Discussion in 'Asset Importing & Exporting' started by Metaclay, Jul 13, 2020.

  1. Metaclay

    Metaclay

    Joined:
    Sep 28, 2019
    Posts:
    11
    I'm trying to import the gltf format into unity, the problem is i can't find the parameter to turn on 'generate lightmap uv' ( just like when i import fbx format) . Does anyone know how to do it ?

    the object i imported will have shadow artifact , if i import using fbx, this can be easily fixed by turn on the 'generate lightmap UV' , but now if i use glft , this option is not available.

    Thanks
     
  2. jeromeatunity

    jeromeatunity

    Joined:
    Jul 1, 2018
    Posts:
    63
    GLTF libraries use custom import pipelines. Unfortunately the built-in Generate Lightmap UV functionality is not exposed outside of our FBX importer.

    Looking on the KRONOS Unity GLTF github repo, I don't think generating Lightmap UVs is supported out of the box.

    But there was a mention of SeinJSUnity in the issues, and that library includes a Generate Lightmap UVs option in their custom importer. Maybe have a look at their implementation, and see if that's what you are after.


    hth.