Blenderproc: About bop provide ycb model .ply file question

Created on 19 Mar 2021  路  7Comments  路  Source: DLR-RM/BlenderProc

I converted the model to ply file through meshlab and picture texture is normal, like as follows:
2021-03-19 22-07-36灞忓箷鎴浘

But when I use BlenderProc render, I get the picture:
2021-03-19 22-09-45灞忓箷鎴浘

I provide the model, can you help me solve the question or how can I get the model about bop .ply file?

https://drive.google.com/drive/folders/1lnVlSdzsFSRMoo2eNORorTS0WsvGWba8?usp=sharing

I'm looking forward to your reply!
Thank you!

question

Most helpful comment

Hi,

Thanks Max.

I tried your suggestion, but it only works in ObjectLoader.py.
BopLoader.py does not yet support importing obj files, even if I try to modify the code.

I have a simple way. It is converted into the same format as the YCBV model provided by BOP through meshlab.

MeshLab: Search -> Convert PerWedge UV into PerVertex UV
and export .ply likes:
2021-03-24 16-08-48灞忓箷鎴浘

Remember to modify the texture map name.

Thanks

All 7 comments

Hey,

your linked file is not accessible to everyone, could you please change this?

Best,
Max

Hey,

but I highly suspect that you are using vertex colors, check out this example:

https://dlr-rm.github.io/BlenderProc/examples/basic_object_pose/README.html?highlight=cf_change_to_vertex_color

Best,
Max

Hi,

Thanks for replying to me

I uploaded the file again, you should be able to access it: https://drive.google.com/drive/folders/18CdzxQfKEN_p6aFlSkAAs90RdBScCc5y?usp=sharing

I try the basic_object_pose example, but I get it:
000001

I use config_ycbv_random.yaml, because the models have texture image, like my models. It works fine.
Command:
python run.py examples/bop_challenge/config_ycbv_random.yaml /home/wy/media/data/bop ycbv /home/wy/Projects/bop_toolkit resources/cctextures examples/bop_challenge/output

When I replace the YCBV model with my model, just only in bop/ycbv/models file replace, my model becomes black.

000002

I use the models just YCB fruits.
Although the format of my model is similar to the YCBV model, I think there are some details that cause errors.
But I don鈥檛 know what went wrong.

Thanks

Hey,

okay, I checked. The short answer is: Do not use .ply.

The long answer is that you use textures, which are not supported in .ply, they work in your case because your program adds a comment to these files: comment TextureFile obj_000007.png. But that is not in the standard and can therefore not be read by blender.

I would save all your files as .obj instead as .ply that should solve the problem.

Best,
Max

Hi,

Thanks Max.

I tried your suggestion, but it only works in ObjectLoader.py.
BopLoader.py does not yet support importing obj files, even if I try to modify the code.

I have a simple way. It is converted into the same format as the YCBV model provided by BOP through meshlab.

MeshLab: Search -> Convert PerWedge UV into PerVertex UV
and export .ply likes:
2021-03-24 16-08-48灞忓箷鎴浘

Remember to modify the texture map name.

Thanks

The problem has been resolved, I will close the issue.

I tried your suggestion, but it only works in ObjectLoader.py.
BopLoader.py does not yet support importing obj files, even if I try to modify the code.

One last remark to this, loading .obj files should be done with the ObjectLoader and not with the BopLoader the bop loader is for loading the bop dataset.

If your dataset is not in the BOP format it won't work.

Best,
Max

Was this page helpful?
0 / 5 - 0 ratings