Blog

The AB3D web site is dedicated to development of WPF applications that are using 3D contents. The main resource on the site is Reader3ds library that enables using 3D objects from 3ds files in WPF. For an overview of the contants of the site see the Home section.

I would also like to encourge you to post your comments about the page or the posted code. If you have any wishes or ideas, please let me know.

New version of Ab3d.Reader3ds available Tuesday, July 01, 2008 11:10 PM

I hope you did not notice that the actual version of Reader3ds has expired today. If you did, I would like to apologize for the inconvenience.

So finally the new version 4.3 is available for download.
This is the last freely available version and will expire on 31th December 2008.

The following is the list of changes:

  • Fixed bug where camera name or light name is longer than 8 characters (ArgumentOutOfRangeException: Length cannot be less than zero.).
  • Added public static get ExpirationDate - so it is possible to get expiration date without actually creating an instance of Reader3ds (this can already throw expired exception).
  • Fixed exception when reading 3ds file without any animation keyframe.
  • The commercial version is already prepared. The version 4.3 is almost the same as the commercial version – the only difference is that it does not contain licensing system (it has the nasty expiration date).

    The commercial version should be available at the end of the week. I need to move the site to a new and faster server and then it will be possible to purchase the license (automatically on the new site).


    Another great news is that new versions of Ab2d.ReaderSvg and Ab2d.ReaderWmf are also almost prepared and will be published very soon. And until the end of the month commercial versions of both will be available also.

    Comments: (0)
    Explore the power that Silverlights brings to the web with two new tutorials Sunday, April 06, 2008 4:10 PM
    Silverlight Excel application
    The first tutorial describes how to convert an excel graph to a Silverlight application with Paste2Xaml tool. To show the power of Silverlight we add a starup animation and a dynamicaly showing graph data on moving the mouse over graph's bars. The full source code is also available.

    TRY Silverlight Excel application


    Silverlight EU Countries application
    The second, more advanced, tutorial shows how to convert a map of EU countries in svg file to a Silverlight application with ViewerSvg. The tutorial will also show how to read the data from xml file and how to use data binding. The application will show the basic data about the country that is selected with the mouse. There is also a slider that shows when the countries were joining the EU.

    TRY Silverlight EU Countries application


    The tutorials can be found at www.wpf-graphics.com/HowToMenu.aspx.

    Comments: (0)
    Updated Paste2Xaml and ViewerSvg Wednesday, April 02, 2008 9:10 AM

    Ups, a bug smuggled into the Paste2Xaml.

    If you pasted metafile from clipboard, the object tree view was not filled. This is fixed now.

    To make it even more user friendly, I have also added support for renaming the element by simply double clicking on it (on the image). Also the image is now fully seen when opened / pasted - before lower left part was partialy hidden with the application buttons. Those two changed were made to Paste2Xaml and ViewerSvg.

    So if you were so quick to get the new version of Ab2d tools and libraries on 31th March or 1st April, than please get the new version again.

    New version of all the Ab2d tools and libraries is available from www.wpf-graphics.com/Overview2d.aspx.

    Comments: (0)
    Silverlight? Yes, the new Paste2Xaml and ViewerSvg support Silverlight! Tuesday, April 01, 2008 12:20 AM

    A while ago I spoke with Matevz Gacnik (his great blog: www.request-response.com/blog). He just came from MIX08 and told me that Silverlight is hot. Very hot! "You should implement support for it as soon as possible!" he said.

    He is Microsoft's MVP. That means his advice should be taken seriously. So I postponed my current work - preparing a commercial version of Reader3ds.

    Now I am proud to announce that new version of Paste2Xaml and ViewerSvg support Silverlight.

    The following screenshots shows the new ViewerSvg with opened svg file and Export dialog:
    ViewerSvg application
    ViewerSvg export options

    Now it is possible to use almost any 2D or 3D drawing application to create user interface elements for Silverlight applications. You can draw it in Adobe® Illustrator®, CorelDRAW®, Inkscape, Microsoft Visio or other vector drawing application, save the work in svg file and use ViewerSvg to convert the drawing into xaml. If the application support save into Windows metafile (wmf or emf) like Autocad, it is possible to use Paste2Xaml to convert the saved metafile into xaml. If it is not possible to save the drawing into svg or metafile you can use copy and paste the drawing into Paste2Xaml. This can be used for example for converting graphs from Excel or WordArt from Microsoft Work into xaml. Also there are already huge internet image libraries that can be a great source for user interface elements (see Links section).

    So you can use your favorite drawing application and simply draw the user interface of your WPF or Silverlight application in it.

    There are also some other improvements and bug fixes:

    New in Paste2Xaml library v1.3:
    • Added support for silverlight.
    • Added objects tree view with rename option - possible to export elements with name (so they can be manipulated later from the code).
    • Added select object with mouse.

    New in ViewerSvg library v1.3:
    • Added support for silverlight.
    • Added object selection with mouse.
    • Added export dialog with xaml text and preview tabs.
    • Added selecting number of decimals in the exported xaml (useful for optimizing the size of exported xaml).
    • Added possibility to export only selected elements.

    New in ReaderSvg library v1.6:
    • Fixed reading number in exponent format (for example 1.234e-3) in transform element. This fixed the problems when some elements in the read image were placed on the wrong location and with the wrong size.

    New in ReaderWmf library v1.3:
    • Fixed problems with some wmf files that were imported with some anomalies (lost details)

    New version of all the Ab2d tools and libraries is available from www.wpf-graphics.com/Overview2d.aspx.

    Comments: (0)
    New versions of Ab2d tools and libraries Tuesday, March 04, 2008 10:20 PM

    Based on users feedback all the Ab2d tools and libraries were improved.

    Paste2Xaml (utility to read Windows metafiles (wmf), Enhanced Metafiles (emf) or get matafile objects from clipboard and can convert it into xaml) and ViewerSvg (utility to convert svg and svgz files into xaml) has been improved with a zoom toolbox that enable panning and zooming the read image (top right on the image below).

    ViewerSvg application

    New in ReaderSvg library v1.5:
    • Added support for reading svgz (compresses svg) files.
    • Fixed reading some embedded images - sometimes "Invalid character in a Base-64 string." exception was thrown.

    New in ReaderWmf library v1.2:
    • Fixed reading some wmf files - especially files exported from Autocad are converted properly now.
    • Added MinLineWidthFactor property - useful for metafiles with lots of lines. With the property it is possible to adjust the line thickness.
    • Added EmbeddedBitmapImages property that replaced the obsolete MetafileImages (because of misunderstanding the property)
    • Added support for reading pixels from metafiles - they are converted to Ellipse elements with the specified radius.

    New version is available from www.wpf-graphics.com/Overview2d.aspx.

    Comments: (0)
    Reading SVG images, Windows metafiles (wmf) and Enhanced Metafiles (emf) from XAML Thursday, January 03, 2008 10:20 PM

    With new version of ReaderSvg and ReaderWmf it is now possible to read SVG, Windows metafiles (wmf) and Enhanced Metafiles (emf) from XAML.

    For example:
    <ab2d:SvgViewbox Source="samples/myClipart.svg"/>

    SvgViewbox can be used just as Image control. Its Source property is set to the Uri of the svg file. It can be a resource, content, located on the web or on the local hard disk. It can be also used for DataBinging - for example from Combobox. For reading metafiles there is a WmfViewbox control.

    There are also some other improvements and bugfixes.

    New version is available from www.wpf-graphics.com/Overview2d.aspx.

    Comments: (0)
    Improved version of ReaderSvg library available. Friday, September 14, 2007 1:10 PM
    New in ReaderSvg library v1.3:
    • Fixed reading text for svg files created in Inkscape.
    • Added SvgBounds property (bounds of the elements in svg). Set InnerWidth and InnerHeight as obsolete.
    • Improved read svg elements so they fit correctly into parent object. For example with previous version some svg files produced Viewboxes that exceeded (or were smaller) the size of parent StackPanel. Now the Viewbox should fit correctly into StackPanel or any other element.
    • Now FillRule for Path is set to NonZero or EvenOdd.
    • Fixed some bugs that crashed the ReaderSvg.

    New version is available with ViewerSvg from www.wpf-graphics.com/ViewerSvg.aspx.

    Comments: (0)
    Added Paste2Xaml application and Ab2d.ReaderWmf class library Thursday, August 23, 2007 9:00 PM

    Paste2Xaml is a WPF application that can read Windows metafiles (wmf), Enhanced Metafiles (emf) or get matafile objects from clipboard and can convert it into xaml. It can also export embedded images that can be used in exported xaml. The metafiles can also be imported at runtime with new Ab2d.ReaderWmf library.

    The following diagram shows how it is possible to import 2D vector drawing from almost any drawing application into WPF world:

    Ab2d Overview diagram

    Paset2Xaml Screenshots:

    Main Paste2Xaml window

    Main Paste2Xaml window - a graph from Microsoft Excel 2003 has been pasted to the application (the application is already showing a WPF representation of the graph)



    Export Dialog

    Export Dialog - showing the xaml text and all the export options for a metafile with 2 embedded images.



    The graph from Microsoft Excel 2003 shown in XamlPad

    The graph from Microsoft Excel 2003 shown in XamlPad.



    See www.wpf-graphics.com/Paste2Xaml.aspx for more.

    Comments: (1)
    New version of ReaderSvg and ViewerSvg published Monday, July 09, 2007 10:00 PM

    ReaderSvg has now improved text support. In previous version all text were converted to paths. This made simpel svg files with text very complex in WPF. In new version text that do not have some special stroke or fill is converted into simple TextBlock. There is also a new property UseSimpleText that can forec conveting text into TextBlock even if text has some special storke or fill. The svg reading is also imporved.

    ViewerSvg has also been slights improved.

    See www.wpf-graphics.com/Overview2d.aspx for more.

    Comments: (1)
    New ViewerSvg - SVG to XAML converter application available Thursday, June 28, 2007 12:00 AM

    ViewerSvg is a svg to xaml converter application. It is using the Ab2d.ReaderSvg library that imports objects from svg file into WPF.

    Comments: (0)
    Blog powered by tBlogger.
    Copyright © 2007 by Andrej Benedik. All Rights Reserved.