GithubHelp home page GithubHelp logo

Comments (9)

themasterlink avatar themasterlink commented on May 12, 2024

Hey,

this is hard to tell, could you upload an example model somewhere, so that I can reproduce it?

Best,
Max

from blenderproc.

themasterlink avatar themasterlink commented on May 12, 2024

But to explain the warning, what happens is that your selector does not find any material which fits the name you selected.

There are now several possible reasons for that:

  1. no material was loaded as the file does not have one
  2. the material was loaded but the name is different
  3. no material was loaded even though the material has one, sometimes happens with .ply files (blender-bug)

from blenderproc.

ljs7619480 avatar ljs7619480 commented on May 12, 2024

Hi, @themasterlink

Thanks for your reply.
I fork your repository and upload my models at this branch.

Best Regards,
Jason

from blenderproc.

themasterlink avatar themasterlink commented on May 12, 2024

Hey,

as I suspected it is a combo of 1. and 2.:

In your mtl file:

https://github.com/ljs7619480/BlenderProc/blob/d89fada9a5d5c45365cf9b9d0f82c4ce66165399/examples/vertexCol/scene.mtl#L3

But in line 19748 of scene.obj:

usemtl se_0

This should have the same name as in your .mtl file:

usemtl scene_0

Best,
Max

from blenderproc.

themasterlink avatar themasterlink commented on May 12, 2024

Else you can change the name in your conditions to:

"conditions": {
    "name": "se.*"
}

from blenderproc.

ljs7619480 avatar ljs7619480 commented on May 12, 2024

You are right, I change the filename before. It's named se.mtl & se.obj originally.
However, after I fix it, the render result of my model becomes the whole black.
First row is the result after I fixed the bug and the second row is the original output.
output

After that, I also try to use blender-gui to load this model in .obj format directly, and it also did not read the vertex colors in .obj file.
But it will read the vertex colors in the .ply file.

from blenderproc.

ljs7619480 avatar ljs7619480 commented on May 12, 2024

I notice that you have fixed this issue in the Replica dataset, and then modified it to read my ply file.

    {
      "module": "loader.ReplicaLoader",
      "config": {
        "data_path" : "<args:1>",
        "data_set_name": "",
      }
    },
    {
      "module": "manipulators.MaterialManipulator",
      "config": {
        "selector": {
          "provider": "getter.Material",
          "conditions": {
            "name": "ReplicaMaterial"
          }
        },
        "cf_change_to_vertex_color": "Col"
      }
    },

Best Regards,
Jason

from blenderproc.

themasterlink avatar themasterlink commented on May 12, 2024

Oh yeah I forgot that .obj can not store vertix colors. So you have to use .ply.

I am glad it works now.

from blenderproc.

ljs7619480 avatar ljs7619480 commented on May 12, 2024

Hi @themasterlink,

Thanks for your helping I find out the solution.
I use ReplicaLoader, and rendering the vertex colors successfully.

However, the module is all wrapped, and It is a little workaround to use that module to load the "non" replica dataset objects.
Does (General) "objectLoader" currently support loading the vertex colors and name it by given argument? The parameters of objectLoader seem to do not support this function.

BRs,
Jason

from blenderproc.

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.