A new home

I’ve made the move to WordPress!

You should be automatically redirected in 5 seconds. Please visit World Wide Code on Wordpress

Hope to see you there!
Showing posts with label 3D Graphics. Show all posts
Showing posts with label 3D Graphics. Show all posts

Sunday, May 15, 2011

Silverlight 5 - 3D support


The 3D Graphics API was added in the recently released Silverlight 5 Beta.

Having 3D graphics support is a major advancement in Silverlight and is expected to have a huge impact in the near future.

One area where the 3D Graphics API can be useful is 3D Graphics

3D Physics demo




There are a lot of places that you can visit to gain more knowledge about the 3D Physics.
Here are some useful links:
Another nice implementation of the 3D Graphics API is Augmented Reality.
Augmented Reality demo

Useful Links
I would have appreciated more documentation from the Silverlight Team on the 3D Graphics API.
Let's wait and see how these features are implemented by various people. (If you have a good implementation don't forget to ping me)

Thursday, April 21, 2011

Silverlight 5: What's New


Scott Guthrie announced Silverlight 5 in Silverlight Firestarter event last December 2010. Now at the MIX11 conference Scott Guthrie announced the availability of Silverlight 5 Beta.

Lets see what this new Silverlight 5 Beta release has to offer.

    • XAML debugging
    • Media
    • Text
    • Implicit Data Templates
    • Markup Extensions
    • Controls
    • 3D Graphics
    • Trusted Applications in Browser
    • Trusted Applications
    • General “stuff”
XAML debugging
Like the name suggests, you can now set a break point in XAML on any line has a {Binding} syntax. Here is Pete Brown demonstrating XAML debugging.

Media

Silverlight 5 now has something similar to Windows Phone called SoundEffect. You can also control the volume, pitch, etc. in the SoundEffect class. TrickPlay or variable speed playback is also supported in this release.

Text

A RichTextBoxOverflow element has been introduced, that will allow you to have linked text containers where the text flows to another element.  This will help with automatically laying out text in situations like mulit-column.

A few things that are still being worked on are improving text clarity using pixel-snapping and enhanced OpenType support.  Some of these were demonstrated at MIX so be sure to watch the keynote and session videos!


Implicit Data Templates

It is now possible to specify a Data Type for a particular Data Template. This means that you can have different representation of  two different objects in the same list depending on their data types.
<ListBox x:Name="PeopleList">
<ListBox.Resources>
<DataTemplate DataType="local:Manager">
<Border Background="LightBlue">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding FirstName}" />
<TextBlock Text="{Binding LastName}" />
</StackPanel>
</Border>
<DataTemplate>
<DataTemplate DataType="local:Employee">
<Border Background="Bisque">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding FirstName}" />
<TextBlock Text="{Binding LastName}" />
</StackPanel>
</Border>
</DataTemplate>
</ListBox.Resources>
</ListBox>
I would say this feature is going to help a lot for people who deal with different sets of data at a time. As always we have Pete Brown demonstrate Implicit Data Templates.

Markup Extensions

This will help with those who follow the MVVM pattern of development as well as those who have been yearning to be able to have their own expressions run on markup. Allowing Markup Extensions is a great feature, lets see how it affects Silverlight development in the near future.

Controls

On a control level Silverlight 5 Beta brings for us Multi Click and multiple window support.

We now have a ClickCount property in the MouseButtonEventArgs that can be used to determine if a double-click or triple click event has been generated.


Multiple-window is the same Window element that the MainWindow shares and you are able to create numerous Windows that your application can interact with and show as separate windows in the OS.  This is not a ChildWindow implementation where they are all within the main object.  This feature is available to out-of-browser applications.  Once the main application is closed, all the Windows created from that will close as well.


3D Graphics

One of the coolest demos at the Silverlight Firestarter was the 3D demonstrations.