Partilhar via


Rotating 3D earth in WPF

3D stuff in WPF is cool aint it? Last week I was playing around with some more 3D stuff and I came up with this rotating globe.

The code is attached along with the pics of earth and saturn :). It basically consists of a mesh on which the pic is used as a DiffuseMaterial brush. The rotation is performed by animating the angle on the rotationTransform. Mess around with the code and you could come up with some nice configurations :)

rotating earth.zip

Comments

  • Anonymous
    June 05, 2006
    How did you generate the mesh?
  • Anonymous
    June 05, 2006
    Hi Mathias,

    I used Zam3D.

    Following is a more comprehensive ans from David.

    "You best bet will probably be Electric Rain's Zam3D - a full 3D modelling application designed specifically for WPF which natively outputs xaml.  It can also convert .3ds files to xaml.

    If you're only concerned with file conversion, you can check out Microsoft Expression "Sparkle Interactive Designer", which can convert .obj files to xaml.  Thomas Goddard wrote a xaml eporter for Maya.  And Daniel Lehenbauer wrote a xaml exporter for Blender."

    The corresponding thread is:
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=448247&SiteID=1
  • Anonymous
    July 15, 2006
    The comment has been removed
  • Anonymous
    October 30, 2006
    that must be a mismatch in dlls... pls reinstall .NET 3.0