so when a group has no name, is it very helpfull to have the name "null"? :)
also what if 2 meshes are under same group? you end up with twice same name.... 
not very helpfull either.

a detail, mtl now defines the transparency if you use d or tr tags
There is a possible issue with methods that might need resolving, but I do wait 
before spend time on it,
as loaders/parsers are under major update atm.

Fabrice


On May 2, 2011, at 12:51 PM, John Brookes wrote:

> 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?

Reply via email to