Blog Home  Home RSS 2.0 Atom 1.0 CDF  
Random Bits! - WinFX
Rakesh Ravuri's blog
 
 Thursday, September 15, 2005

One of my colleague's asked what is fill rule,

"The 'fill-rule' property indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape. For a simple, non-intersecting path, it is intuitively clear what region lies "inside"; however, for a more complex path, such as a path that intersects itself or where one subpath encloses another, the interpretation of "inside" is not so obvious."  - From the SVG Spec January 14

the following set of pictures will help understand the need for specifying the fill rule for self intersecting paths,

Fill Rule: Even-Odd

 

Fill Rule: Non Zero

9/15/2005 5:32:59 PM (India Standard Time, UTC+05:30)  #    Comments [0]   .NET | Graphics | WinFX  |  Trackback
  1. System.Windows.Media.GradientBrush does not contain a definition for 'AddStop' 
    • Equivalent using GradientBrush.GradientStops.Add(...)
  2. System.Windows.Shapes.Ellipse does not contain a definition for 'CenterX/Y'
  3. System.Windows.Shapes.Ellipse does not contain a definition for 'RadiusX/Y'
  4. System.Windows.Shapes.Path does not contain a definition for 'FillRule'
    • use ((PathGeometry)Path.Data).FillRule
  5. System.Windows.Forms.Integration.ElementHost' does not contain a definition for 'AddChild'
    • Equivalent using System.Windows.Forms.Integration.ElementHost.Controls.Add(...)
  6. System.Windows.Application does not contain definition for 'RegisterComponent'

I will add more to this list as I find them...


Updated 16-Sep

9/15/2005 5:19:50 PM (India Standard Time, UTC+05:30)  #    Comments [0]   .NET | WinFX  |  Trackback
 Tuesday, August 09, 2005

Here is the initial release of the Blender to XAML python export script.

Blender is a awesome free Open source 3D Animation & Modelling platform, download it and give it a try.

PURPOSE:
    To allow rudimentary XAML export capabilities.  Currently the goal is to
    support just the geometry,Solid Materials & lights.
    Texture & Animation will be in the next version.

IMPORTANT:
    You probably need the FULL python installation (2.3) to run this script.
    If you have problems, get the python installation from
    http://www.python.org , make sure also to set the 'PYTHONPATH' variable



 USAGE:
   Select one or more objects and execute this script (ALT+P)
   Be Sure to select a Camera & Light :) if "Exported Selected" is on.
   Everything that CAN be exported, will be written to the export file.
   You can change the export filename by entering the path and filename
   in the dialog.  If you do not enter a path, the export file will
   appear in your blender directory.

   The Color Sliders on the top represent the Ambient Light in the "World"

LIMITATIONS:
    Your mesh "M U S T" be triangulated before you execute this script.
    If you don't there will be holes in your mesh.
    Only exports triangular meshes,spot/point light,materials & camera currently.

    Texture coordinates & Normals are NOT be exported. 

NOTES:
    If you would like to contribute, or make modifications, send your mods
    to me and I will incorporate them into the next release which I am currently working on
    for everyone to enjoy.
    Please don't distribute modified copies of this file without contacting me
    first!

 

Here are some of the screenshots of the XAML Export script in action. I truned off the OSA(AA) to compare the rendering in Avalon (WinFX) to that in OpenGL based blender.

xaml exporter in blender

xaml exporter in blender

xaml exporter in blender

xaml exporter in blender

8/9/2005 12:34:08 PM (India Standard Time, UTC+05:30)  #    Comments [0]   .NET | Graphics | WinFX  |  Trackback
Copyright © 2008 Rakesh Ravuri. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: