blenderproc.python.loader.Pix3DLoader module¶
-
class
blenderproc.python.loader.Pix3DLoader.
Pix3DLoader
[source]¶ Bases:
object
This loads an object from Pix3D based on the given category of objects to use.
From these objects one is randomly sampled and loaded.
Note: if this class is used with another loader that loads objects with semantic mapping, make sure the other module is loaded first. TODO: Really?
-
static
_correct_materials
(objects)[source]¶ If the used material contains an alpha texture, the alpha texture has to be flipped to be correct
Parameters: objects ( List
[MeshObject
]) – The list of mesh objects where the material maybe wrong.
-
static
get_files_with_category
(used_category, data_path)[source]¶ Returns a list of a .obj file for the given category. This function creates a category path file for each used category. This will speed up the usage the next time the category is used.
Parameters: Return type: Returns: list of .obj files, which are in the data_path folder, based on the given category
-
static