How do I make multiple Blender objects into one?
I have obtained some blender files & licences for 3d models of transit vans and some trucks. Currently, when I export these objects to .obj files they are rather large, take a while to render and look to have been built in segments.
These models need to be used on Android devices and they need to be observable through one .obj file. What is happening is when I open the .obj I am not seeing the same model as I do in Blender. The doors and wheels of the vans for instance don't appear.
I need to find a way of reducing these models to be just one single object. Items on the interior of the van don't matter, seats for example. The file would ideally also be around 200kb, and exportable in a single .obj file. Can anybody shed some light on how I would go about doing this?
Remove the objects you no longer want in your model, like the interior objects. Then select all of your objects that you want in a single model and hit Ctrl + J then click
Join selected meshes. The multiple objects will now be one model you can export.
For further reducing the complexity of the model for better performance, you'll need to either remove more objects before joining them or you need to remove details from the objects you want to keep.
To further aid anybody who stumbles across this. I found the decimator modifier very good for reducing the overall size of the exported .obj file.
For also future use... use the Select Linked command to select the individual meshes inside the object!
How do I select all of the part that I want to? I clicked on all of them and they were a light blue,does that mean they are all selected? I could still not combine them into one whole,I did ctrl + J.
At least in some cases, it appears to help if you clear parents of the objects being joined.
@TNTman20002: Select one vertex/edge/face from the group that you want to select then press Ctrl + L to select all connected.
As you have stated that you want to also make the objects "lighter", I have a suggestion for you.
The models that are not optimized for games usually have a lot of unnecessary edge loops which add extra triangles. While they can be removed using the Decimator modifier, the more proper way to do it is to use the Limited Dissolve command.
After combining the objects into one, just TAB into edit mode, press A two times to select all faces and then press X and select
This will combine all the planar connected faces into one face and thus reducing the number of triangles.
If you want to join meshes through Blender's Python API:
item='MESH' bpy.ops.object.select_all(action='DESELECT') bpy.ops.object.select_by_type(type=item) bpy.ops.object.join()
itemcan take any of the following values according to this documentation:
[‘MESH’, ‘CURVE’, ‘SURFACE’, ‘META’, ‘FONT’, ‘ARMATURE’, ‘LATTICE’, ‘EMPTY’, ‘CAMERA’, ‘LAMP’, ‘SPEAKER’]