For example, I have two 3d objects in 3ds file. the two objects have a little bit overlapping, so if I load these and merge these into one object by jPCT, the part of overlapping will a little bit flashing after applying deferrent texture. Look at the following code:
for(int index=0;index<terrainObjs.length;index++){
obj = (Object3D) terrainObjs[index];
if(obj.getName().indexOf("track_ground")!=-1){
obj.setTransparency(1);
}
terrain = Object3D.mergeObjects(terrain, obj);
}
but I notice that the object's properties I set before merging will be missing after merging, so the object named "track_ground" in terrain is not transparent. That's the problem about opacity, right?
So how to set the property of such a object which will be merged into another object?