Browse by Tags

Tagged Content List
  • Blog Post: What's New in Graphics for 4.0 Beta 2

    Last beta I mentioned we were saving the best for Beta 2 so thank you for waiting :) New Features The PixelShader class now accepts Pixel Shader 3.0 shaders when your hardware supports them. Important : There is no software rendering for PS 3.0. For example, you won't see PS 3.0 Effects over Remote Desktop...
  • Blog Post: WPF3D Lighting and Shading

    We use the standard fixed-function Blinn-Phong model . You can read up on all of the equations here at MSDN. If you have a Tier 2 card, we actually do our lighting in a vertex shader. If you don’t have a Tier 2 card, we do the lighting on the CPU. Why not just use D3D9’s fixed-function APIs you might...
  • Blog Post: Transparent DiffuseMaterials and Depth Sorting

    I hinted at this a long time ago and then forgot to follow up, whoops! As the old post says, DiffuseMaterial writes to the depth buffer. This means if you draw one diffuse model and then draw another diffuse model behind it, the card knows not to draw the second one on top of the first because the first...
  • Blog Post: 3.5 SP1 Software 3D Leak Fix Available

    In 3.5 SP1 it was really easy to leak memory when doing software 3D rendering involving a VisualBrush or DrawingBrush. We got this complaint many times online and in person. Unfortunately, there is no work around. It’s described in “Issue 2” from this new Knowledge Base article . The fix should also...
  • Blog Post: 3D Hit Testing

    How to do 3D hit testing has come up a bit recently in the forums but essentially it isn’t any different than 2D hit testing which is described on MSDN here . You can either start with a 2D point on the Viewport3D or a 3D point on a Visual3D. Starting at the Viewport3D level is straightforward. Suppose...
  • Blog Post: Transforming Bounds

    Many haven’t realized this, but we added the ability to transform between 2D and 3D Visuals back in 3.5. This is handy if you need to draw 2D content around your 3D object or if you want to know the 2D position of a 3D point without doing a hit test. The methods are: GeneralTransform3DTo2D Visual3D.TransformToAncestor...
  • Blog Post: D3DImage and Software Rendering

    If the WPF render thread is doing software rendering, D3DImage will not show up. I don't think we specifically called this out in the documentation so it can come as a surprise when you first encounter it. Off the top of my head, here are times when the render thread is in software: RenderCapability...
  • Blog Post: .NET 3.5 SP1 Graphics @ Channel 9

    Sorry for the lack of updates, but we've been pretty busy. On what, you may ask? Our PM, David Teitlebaum, just did a video on Channel 9 showing off the new features. He starts by covering interactive 2D on 3D and improved layered window support, both of which were in 3.5, and he finishes with the customizable...
  • Blog Post: Blender to XAML Exporter Updated

    Robert Hogue has updated the Python script with a bunch of new features. See this forum post for the instructions, tutorials, and demos! -- Jordan
  • Blog Post: .NET 3.5 has been released!

    Yesterday, .NET Framework 3.5 and Visual Studio 2008 went live on MSDN. You can see what's new in both here and download them here . Since this is a graphics blog, here are the graphics-specific changes of note in 3.5: New Graphics Features UIElement3D Interactive 2D on 3D: Viewport2DVisual3D...
  • Blog Post: Augmented Reality with WPF3D

    Augmented Reality is the process of taking real world data, typically video, and enhancing it with computer graphics. Casey used WPF3D along with an AR toolkit and DirectShow to get some great results. Check out the sweet video ! -- Jordan P.S. We finally got around to putting some links on the...
  • Blog Post: Blender Exporter on CodePlex - Looking for volunteers...

    In July I promised to track down the Blender exporter that was lost during the GotDotNet phase out. The last version of the export script is now hosted on CodePlex ( here ). I am embarrassed that it has taken me this long to do this, and even more so that the script is not up to date for the latest version...
  • Blog Post: Petzold.Media3D

    Charles Petzold has posted his WPF3D library on the web. It includes sphere, cube, cylinder, torus, line, and teapot mesh generation. Buying his book 3D Programming for Windows grants you royalty-free use of the library so be sure to check it out! -- Jordan
  • Blog Post: Cel Shading

    Charles Petzold has been experimenting with cel shading on his blog at the request of Chris Cavanagh (whom has updated his 3D physics XBAP btw). Though we do use shaders internally, WPF3D's API is fixed function so you have to dig out the ol' fixed function playbook to achieve fancier effects. The plays...
  • Blog Post: Subclassing UIElement3D

    Subclassing from UIElement3D to create your own elements that respond to input, focus and eventing is simple to do in 3.5. In this example we'll create a Sphere class which derives from UIElement3D and will show off some new features in the process. Deriving from UIElement3D The first step is to...
  • Blog Post: What’s new in WPF 3.5

    With the release of WPF 3.5 beta 2 (download here: http://www.microsoft.com/downloads/details.aspx?FamilyId=D2F74873-C796-4E60-91C8-F0EF809B09EE&displaylang=en ), we’ve added some exciting new features to WPF 3D. At a very high level these can be grouped in to two main additions: UIElement3D and...
  • Blog Post: More 3D Transitions

    The WPF Feature Montage has been updated to include a custom transition control that contains four 3D transitions: page turn, curtain pull, explosion, and door open. The full source is included in the zip. -- Jordan P.S. For those of you who saw us give our WPF performance talk at TechEd, we aren...
  • Blog Post: Latest 3D Apps

    It sounds like the Shaxam folks are improving their Lightwave to XAML exporter. Richard Godfrey has two fantastic examples up on his blog . Chris Cavanagh has created a little 3D physics XBAP demo and he has also posted the source . Japan's famous Asahiyama Zoo released an XBAP called " Mother...
  • Blog Post: 2D -> 3D -> 2D Transitions

    WPF Architect Greg Schecter has written a few really cool 3D transitions for 2D elements. We've gotten questions about transitions on the forums before and his explanation and source code should help you implement similar effects yourself. The demo The source The math behind the transition...
  • Blog Post: Bootcamp Lecture

    We gave a lecture on 3D yesterday at a "WPF Bootcamp" event and I've attached the slides. Here's the outline: Intro to WPF3D with a simple example Interactive 2D on 3D Performance tips (based on this paper ) -- Jordan
  • Blog Post: Material Behavior

    What Material you choose will impact your GeometryModel3D in three ways: Lighting model Depth write Blend with the back buffer The first one is straightforward since it's right in the name of the Material plus it's documented. The last two aren't obvious at all and this is probably the...
  • Blog Post: 3D Scatter Plot Example

    During our lecture, David Teitlebaum demoed a scatter plot application and people expressed interest in getting the code. It turns out the code is already publicly available in this thread over in the official forums. It's a good example of how to you can use "mesh coalescence" to improve perf and yet...
  • Blog Post: Not Quite Dead Yet

    Apologies for the lack of updates recently, but we were busy preparing an internal lecture on WPF3D. The good news is we created a lot of content and we'll start posting parts of it soon. Also, we think we fixed the broken images. If you see any more, let us know. -- Jordan
  • Blog Post: Turning the Pages

    Turning the Pages 2.0 by Armadillo Systems uses WPF3D to allow you to manipulate books in 3D space and collaborate with other readers. The British Library is using it for a few of the books in their remarkable collection. Thanks to this app, two of Leonardo da Vinci's codices have been brought together...
  • Blog Post: Dominoken

    For the Japanese launch of Vista, design firm Bascule used WPF3D to create something unlike any other WPF app you've seen so far. I'm not sure how to describe it other than it's kind of like the Playstation game Parappa the Rappa . Just click here to run it in your browser. -- Jordan
Page 1 of 2 (32 items) 12