Comments (9)
Hey,
this is hard to tell, could you upload an example model somewhere, so that I can reproduce it?
Best,
Max
from blenderproc.
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:
- no material was loaded as the file does not have one
- the material was loaded but the name is different
- no material was loaded even though the material has one, sometimes happens with .ply files (blender-bug)
from blenderproc.
Hi, @themasterlink
Thanks for your reply.
I fork your repository and upload my models at this branch.
Best Regards,
Jason
from blenderproc.
Hey,
as I suspected it is a combo of 1. and 2.:
In your mtl
file:
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.
Else you can change the name in your conditions to:
"conditions": {
"name": "se.*"
}
from blenderproc.
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.
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.
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.
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.
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)
- Eager render data
- Not what I see in Blender HOT 1
- Regarding object 3D vertices in meters (8 corners and 1 centroid) extraction and project them to 2D image plane (pixel cordinate) HOT 1
- blenderproc quickstart on Mac M2 raises error. HOT 2
- Wrong Matrix Inversion HOT 4
- how to use rigidbody to fix the collision problem of ycb distractors with themselves as well as object of interest?
- ERROR: StructRNA of type Material has been removed HOT 3
- 13/5000 How can I use my images to replace textures HOT 5
- coco annotation merge for multiple .blend files HOT 2
- render hdr lighting without background HOT 2
- Unsuccessful quickstart HOT 5
- how to save object distance from camera in coco annotations HOT 7
- Duplicate linked does not work correctly with hierarchy.
- Rework MeshObject material manipulation HOT 2
- BrokenPipeError during BOP dataset generation
- Code/assets to generate the rendering of falling objects in your demo video HOT 2
- Render process break down without error. HOT 2
- ModuleNotFoundError: No module named 'blenderproc' HOT 5
- Object location and rotation not rendered properly
- The position of the Python interpreter called by blenderproce.exe is an absolute path HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blenderproc.