Problem with displaying texture

May 18, 2009 at 12:27 PM

Hello,

I just started testing Kit3D (so cool!) and I did a small application with textured quad. The problem is with displaying the texture.

Here you can see the application: http://addnewcolor.com/KIT3D/TestPage.html

Here is the code for applying material:

BitmapImage bi = new BitmapImage(new Uri("pentagram.jpg", UriKind.Relative));
ImageBrush ib = new ImageBrush();
ib.ImageSource = bi;
Kit3DBrush brush = new Kit3DBrush(ib, 400, 400);
model.Material = new DiffuseMaterial(brush);

Is there a solution for fixing it? I would be really glad if someone could help me.

Thank you for any help!

 

Wojciech