This project is read-only.

Transparency demo

  • Open the "ExampleBrowser" application to run this example.
  • The source code can be found in Source\Examples\ExampleBrowser\Examples\Transparency

This application demonstrates how to use the SortingVisual3D to sort child objects with distance to camera.
For simple scenes without overlapping objects this will help to make transparency look right.


        <ht:HelixViewport3D InfiniteSpin="True">
            <ht:SortingVisual3D x:Name="sortingVisual1">
                <ht:RectangleVisual3D Origin="0,0,0" Normal="1,0,0" LengthDirection="0,1,0" Fill="#80FF0000"/>
                <ht:RectangleVisual3D Origin="1,0,0" Normal="1,0,0" LengthDirection="0,1,0" Fill="#8000FF00"/>
                <ht:RectangleVisual3D Origin="-1,0,0" Normal="1,0,0" LengthDirection="0,1,0" Fill="#800000FF"/>

                <ht:CubeVisual3D Center="-3,0,0" SideLength="1" Fill="Black"/>
                <ht:CubeVisual3D Center="3,0,0" SideLength="1" Fill="Black"/>

Last edited Jun 15, 2012 at 4:46 AM by objo, version 3


No comments yet.