Orientation of image assigned to SphereVisual3D

Dec 7, 2012 at 7:42 PM

I am using the helixtoolkit of codeplex.

¿How I can set the orientation of the image that I assign to a sphere3D?

I can assign the ImageMaterial but ¿how to rotate/orientate the image?

Thanks in advace

Coordinator
Dec 7, 2012 at 8:25 PM

To rotate the image, try applying a Transform2D to the TextureCoordinates in your sphere geometry.

Or create a material from a VisualBrush or ImageBrush that contains a rotated image (slower performance).

http://msdn.microsoft.com/en-us/library/system.windows.media.transform(v=vs.95).aspx
http://msdn.microsoft.com/en-us/library/system.windows.media.media3d.meshgeometry3d.texturecoordinates.aspx