Transparency order problem on png textures
#1
Hello,
I'm trying to make a scene with multiple visuals with transparent png textures, but I got a problem with the sorting of the textures.
Can you help me?

I also tried to use the TransparencySorter, with no success:
Quote:sorter = new Ab3d.Utilities.TransparencySorter(this.MainViewport);
sorter.StartSortingOnCameraChanged();

[Image: http://i.imgur.com/T5sDa0bl.png]
http://i.imgur.com/T5sDa0bl.png

PHP Code:
<Border Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Name="ViewportBorder" Background="White">
            <
dxControls:DXViewportView Name="MainDXViewportView" PresentationType="DirectXOverlay" BackgroundColor="#5F5F5F" DXSceneDeviceCreated="MainDXViewportView_DXSceneDeviceCreated">
                <
Viewport3D Name="MainViewport">
                    <
visuals:PlaneVisual3D Material="http://www.freeiconspng.com/uploads/bubble-png-9.png" Size="75 75" CenterPosition="0 100 0"></visuals:PlaneVisual3D>
                    <
visuals:PlaneVisual3D Material="http://www.freeiconspng.com/uploads/bubble-png-9.png" Size="100 100" CenterPosition="0 0 0"></visuals:PlaneVisual3D>
                    <
visuals:PlaneVisual3D Material="http://www.freeiconspng.com/uploads/bubble-png-9.png" Size="50 50" CenterPosition="0 200 0"></visuals:PlaneVisual3D>
                </
Viewport3D>
            </
dxControls:DXViewportView>
        </
Border>
        <
cameras:TargetPositionCamera Name="Camera1" Heading="0" Attitude="-90" Bank="0" ShowCameraLight="Always"
                             
TargetViewport3D="{Binding ElementName=MainViewport}" CameraType="PerspectiveCamera" />

        <
ab3d:MouseCameraController Name="MouseCameraController1" 
                                    
RotateCameraConditions="LeftMouseButtonPressed"
                                    
MoveCameraConditions="LeftMouseButtonPressed, ControlKey"
                                    
TargetCamera="{Binding ElementName=Camera1}"
                                    
EventsSourceElement="{Binding ElementName=ViewportBorder}"/> 
  


Messages In This Thread
Transparency order problem on png textures - by paulohumberto42 - 09-16-2016, 03:14 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)