You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exporter iterates through the mesh and outputs materials as they are found used on polygons. So the material assigned to the first created polygon will be first to be listed in the B3D file. The exporter goes from oldest polygon to newest polygon finding materials.
The exporter should instead get the list of materials on the mesh and output those in order.
The order of materials is very important because Irrlicht works on material indices not material names.
The relevant function in the exporter is: write_brus
I found a workaround that worked for me:
It is possible to move a material to last in the list. Go to edit mode. Press A then A on the keyboard to deselect everything. Select the material and press select to select all polygons assigned to the material. Then press Mesh->Separate->Selection to create a new object from the selected polygons. Go to object mode. Drag the new object on top of the old object while pressing shift and drop it. This will parent the new object to the old object. Then select the old object and the new object and press Ctrl+J to join the objects back together.
The text was updated successfully, but these errors were encountered:
This will probably get fixed in a rewrite (in progress) unless someone else gets to it first. As there is a workaround and it is a very old issue I am not too concerned about it. Thanks for the detailed info, though!
This will probably get fixed in a rewrite (in progress) unless someone else gets to it first. As there is a workaround and it is a very old issue I am not too concerned about it. Thanks for the detailed info, though!
I'm using Blender 2.83
The exporter iterates through the mesh and outputs materials as they are found used on polygons. So the material assigned to the first created polygon will be first to be listed in the B3D file. The exporter goes from oldest polygon to newest polygon finding materials.
The exporter should instead get the list of materials on the mesh and output those in order.
The order of materials is very important because Irrlicht works on material indices not material names.
The relevant function in the exporter is: write_brus
I found a workaround that worked for me:
It is possible to move a material to last in the list. Go to edit mode. Press A then A on the keyboard to deselect everything. Select the material and press select to select all polygons assigned to the material. Then press Mesh->Separate->Selection to create a new object from the selected polygons. Go to object mode. Drag the new object on top of the old object while pressing shift and drop it. This will parent the new object to the old object. Then select the old object and the new object and press Ctrl+J to join the objects back together.
The text was updated successfully, but these errors were encountered: