Image Material with PipeVisual3D

Anonymous 9 years ago 0
This discussion was imported from CodePlex

Mrme wrote at 2014-03-25 10:31:

Hi, so it seems I can add an image as Material for most Visual3Ds if not all, but not for the PipeVisual3D , I use the following code which works just fine with Cube,Ellipsoid,Rectangle Visual3Ds
 PipeVisual3D pi = new PipeVisual3D();
            Material m = MaterialHelper.CreateImageMaterial("E:\\2.jpg", 1, UriKind.Absolute);
            pi.Material = m;

objo wrote at 2014-04-29 10:48:

Mrme wrote at 2014-07-24 14:44:

I finally had the time the check the code, I found that the generateTextureCoordinates in the MeshBuilder class constructor was set to false. I checked the source code here on CodePlex and it seems to be fine. you may close the issue here