I was loading the .3ds/.dae files in my panel through Collada/MaxDs classes of away3d 3.6 Api. I would render wire frame 3D images. In order to mimic realistic 3d image, i dont have any texture image(.jpg) exported from 3D software to apply to its material property.
Why shouldn’t i apply the some random textures downloaded (http://www.texturewarehouse.com/gallery/) from net is not applying to the 3d model properly. Finally the image seems like 2D images due to improper texture(i.e the edges of the image are not visible like 3d model)
Is it required to have the same texture image generated from the 3d software to have better 3d model. Please provide your comments.
Here is my code snippet for texture application
protected function onLoadSuccess(event:Loader3DEvent):void
{
container =event.loader.handle as ObjectContainer3D;
var newMaterial:BitmapFileMaterial = new BitmapFileMaterial(“someTextureImage.jpg”);
for each (var child:Mesh in container.children){
child.material = newMaterial;
}
......}