Silverlight 3D Dice 2 Source Code
A new, improved Silverlight Dice Simulator. This one decorates each face with an image showing the spots (whereas the last version just had white diamonds which looked a bit naff). This uses Silverlight's non-affine matrix projection to map a bitmap onto a rectangular 3D polygon.
If you download the source code, you will find a separate project called 'Silverlight3D'. This enables a basic 3D scene to be created, containing 3D polygons and lines. You could use this to create a simple Doom-style game, with texture-mapped walls etc. I would do this but unfortunately I don't have the time. The simple 3D library is very much a work in progress, so don't expect perfection. But it might give you some ideas and some tools upon which to build.
The 'face content method' option allows you to switch between rendering the die faces using images (PNG's mapped onto the sides of the cube using Matrix3DProjection), or a red square with 1-6 white ellipses (also mapped onto the sides of the cube using Matrix3DProjection). The advantage of the ellipse method is that it allows the sides to be shaded according to the light source position. However the ellipse method is considerably slower.
In Version 3 I have overhauled the source code, to make the dice more configurable, with the option to override the default settings by implementing various interfaces. I'm moving towards fully encapsulating the Dice code to make it more 'pluggable'.
NB. Unfortunately my web host now prevents me hosting .EXE files on my website, so the download link above will take you to 4Shared.com to download the game.