Giter VIP home page Giter VIP logo

Comments (11)

feiss avatar feiss commented on May 28, 2024 3

Indeed! It is a spec thing, not an actual issue of the exporter.

from gltf-blender-exporter.

UX3D-nopper avatar UX3D-nopper commented on May 28, 2024 1

No need to send, here is the solution:

  • glTF 2.0 allows several texture coordinates and also the Blender exporter does export them:

grafik

For the metal roughness texture, I have plugged a UV map as input. This is "allowed":
https://github.com/KhronosGroup/glTF-Blender-Exporter/blob/master/docs/user.md

So, if your model has several texture coordinates, you can choose, which one has to be used.
But you need to take care, as at the moment, only two texture coordinate sets have to be supported by a glTF 2.0 viewer.

If this is a hobby project, your approach is okay. But if you want to be more productive, I strongly recommend a professional tool like Substance Painter to apply materials directly on a 3D object.

from gltf-blender-exporter.

mokargas avatar mokargas commented on May 28, 2024 1

@UX3D-nopper Thanks for the direction. I'll give this a try and take a look at Substance Painter.

Currently this is a hobby. Previously I baked all textures with export to GLTF 1.0 and didn't bother with PBR, so right now I'm just trying to tease out a workflow I can re-use.

from gltf-blender-exporter.

donmccurdy avatar donmccurdy commented on May 28, 2024 1

Related: KhronosGroup/glTF#1015 ... @feiss please also leave feedback there if you have suggestions on the proposal! 🙂

from gltf-blender-exporter.

UX3D-nopper avatar UX3D-nopper commented on May 28, 2024

You are right, this is not working by design. At the moment, it is not possible to pass a texture scale for glTF 2.0.

Also, it is not possible to create a custom node tree linking into the textures. As soon as all documentation is finished, it will be more obvious why.

Let me have a look at your scene - maybe it can be solved differently.

from gltf-blender-exporter.

mokargas avatar mokargas commented on May 28, 2024

@UX3D-nopper Sure thing, do you want me to send it to you?

from gltf-blender-exporter.

UX3D-nopper avatar UX3D-nopper commented on May 28, 2024

But please post your final rendering, as soon as you are finished!

from gltf-blender-exporter.

feiss avatar feiss commented on May 28, 2024

@UX3D-nopper Substance Painter is not the solution to this issue (how do you texture 2kms of grass with no tiling, no shaders and not using a massive texture?), and there can be different reasons some studio or hobbyist don't want or cannot use it.

I hit with this issue today. I made a tileable texture with substance painter, and I wanted it repeated many times along the floor, and after some tries I realized there was no support for texture mapping transformations. The solution was to scale up the UVs of the floor. And I will use another UVmap for the lightmap.

from gltf-blender-exporter.

UX3D-nopper avatar UX3D-nopper commented on May 28, 2024

Agree, and maybe this could be a new extension, where a texture matrix can be stored somewhere.

But as far as I understand, this is a problem with the current features of glTF 2.0, right?

Even we would apply the Mapping into the UV map in Blender, you would still need a separate one for the lightmap.

from gltf-blender-exporter.

UX3D-nopper avatar UX3D-nopper commented on May 28, 2024

Okay, got it. Let's define a spec for texture coordinates. I put it on the list, what the guys want to discuss at SIGGRAPH.

from gltf-blender-exporter.

UX3D-nopper avatar UX3D-nopper commented on May 28, 2024

Here we go:
KhronosGroup/glTF#1044

from gltf-blender-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.