Got a model of an industrial estate that uses 1 transparent png image for
things like fences tress etc. As well as other non transparent images.
Problem is cant set the material to transparent as the mesh names are
obj1...#, so no idea which mesh needs it material setting to transparent.
Edited OBJ parser(line 295) to set the mesh name from
//mesh.name = "obj"+meshid;
to
mesh.name = groups[g].name;
Now I can do
if (ObjectContainer3D(indiEstate.getChildAt(i)).name == "Railings")
{
BitmapMaterial(Mesh(indiEstate.getChildAt(i)).material).transparent =
true;
}
Works, no idea if it breaks anything though.
Better way?