Silverlight 3D demo

Click on the screenshot to open demo page.
Microsoft has no plans for supporting 3D in Silverlight (formerly WPF/e) but since they give us a decent 2D vector renderer it’s quite easy to implement simple 3D graphics using JavaScript and standard WPF/e shapes. As an example I added third dimension to my 2D animation benchmark.
The hard part was to make objects display in the right z-order. WPF/e doesn’t have zIndex support at this time (update: it was added in Silverlight 1.1 alpha) so to manipulate display order you have to change object position in the objects tree. I figured out that to make it work smoothly I have to sort all scene objects by depth first and then render them from front to back (check out the source code to see how it’s implemented).
The result looks good in my opinion although it’s notably slow in Firefox (too much alpha-blending I guess).
(May 30, 2007: I updated this post with the new name of WPF/e)
8 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment
-
- Categories:
- Technology
- Life
- Solutions box
- Usability
- Vista
- Recent posts:
- trim() function for ActionScript and JavaScript
- How to be stupid
- Posting the old stuff
- The Magic
- Cloudy day at Loudtalks
- You don’t have to prove
- TechCrunch50 list announced
- Recent translations:
- Recent comments:
- Cardin: I believe with optimisation all of these technologies, Java, Flash, Silverlight, Javascript can achieve much...
- Alexey Gavrilov: @Tunc: Tell them to send with USPS and you should be fine. Non-dutiable limit for incoming mail has...
- Tunc: I bought a running shoe and a watch that record some of your data(heart rate, speed, gps coordinates of places...
- Alexey Gavrilov: Sharing a recent good experience. A Blackberry phone (0.7 kg, under $300 value = non-dutiable if you...
- Alexey Gavrilov: Tracking on Russian Post website may include more information than provided by USPS:...
-
September 2010 M T W T F S S « Feb 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 - Archives:
- February 2010
- December 2009
- January 2009
- October 2008
- September 2008
- April 2008
- March 2008
- February 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- Feeds:
RSS
Comments RSS










very cool! 3Q
Comment by flatpeach — April 11, 2007 @ 5:42 pm
hi nice site.
Comment by alex — April 13, 2007 @ 10:12 pm
This is really cool stuff.
I’m working on a pure 3D project for Silverlight 1.1 Alpha.
Have a look at :
http://www.dolittle.com/blogs/einar/archive/2007/05/19/3d-in-silverlight-1-1-alpha.aspx
Comment by Einar Ingebrigtsen — May 20, 2007 @ 10:56 am
hi all.
Comment by robert — June 14, 2007 @ 9:47 pm
[…] http://metalinkltd.com/?p=114 very simple Silverlight 3D simulation using 2D vectors. […]
Pingback by Twitter / Project Manhattan: http://metalinkltd.com/?p=1... — July 28, 2008 @ 4:17 am
Nice sample. I just publish a Engine 3D that is very similar to WPF 3D using the vector graphics as base. http://www.codeplex.com/aXelerateSL3D
Comment by Daniel Rojas — December 5, 2008 @ 2:39 am
Have you done any more work in this area, specifically with Silverlight 2.0?
Comment by Frank Patton — December 31, 2008 @ 3:43 am
Hi Frank, that doesn’t seem to worth it. It’s a cool demo but that’s about it. Flash 10 supports 3D with hw acceleration, while Silverlight doesn’t have it on the roadmap and doesn’t even support raster effects / manipulation, which make Papervision and similar efforts possible.
Comment by Alexey Gavrilov — January 11, 2009 @ 12:59 pm