question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SharpDX Viewport3DX transparent background not working

See original GitHub issue

Does sharpdx viewport3dx support transparent background? According to #579 and #867, setting backgroundcolor to #00000000 will make background transparent. But it is not working to me. Did I missed anything?

            <hx:Viewport3DX x:Name="view1"
                        Grid.Row="0"
                        Margin="0,20,0,0"
                        Background="#00000000"
                        BackgroundColor="#00000000"
                        Camera="{Binding Camera}"
                        CoordinateSystemLabelForeground="#434343"
                        EnableDesignModeRendering="True"
                        EnableSwapChainRendering="True"
                        FXAALevel="Ultra"
                        IsZoomEnabled="True"
                        MSAA="Maximum"
                        ShowCameraInfo="True"
                        ShowCameraTarget="True"
                        ShowCoordinateSystem="True"
                        ShowFrameDetails="True"
                        ShowFrameRate="True"
                        ShowViewCube="True"
                        TextBrush="Black"
                        UseDefaultGestures="False">
               </hx:Viewport3DX>

Setting backgroundcolor to #00000000 result in a black background. tim 20180730172308

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
JeremyAnselcommented, Jul 30, 2018

Hello, This seems to work:

    <Grid Background="Green">
        <hx:Viewport3DX Background="#00000000" BackgroundColor="#00000000"
                        FXAALevel="Ultra" MSAA="Maximum"
                        EnableSwapChainRendering="False">
        </hx:Viewport3DX>
    </Grid>

The background becomes green: capture

1reaction
holancecommented, Jul 30, 2018

MSAA and FXAA are mutually exclusive. FXAA will be disabled if msaa is used.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting Background of Viewport3DX to Transparent
I can set BackgroundColor to another color but not to Transparent. ALso the Background Property has no effect. Is this normal issue is...
Read more >
Helix Toolkit v2.1.0 release notes - Awesome .NET - LibHunt
Note: FXAA does not support transparent background for now. 12. ... SharpDX); RenderTechnique Property doesn't work for Viewport3DX #655 (WPF.
Read more >
Announcements · Helix Toolkit
Note: FXAA does not support transparent background for now. ... SharpDX); RenderTechnique Property doesn't work for Viewport3DX #655 (WPF.
Read more >
Jins/helix-toolkit
InputBindings into Viewport3DX.ManipulationBindings . Fixed small error in the calculation of the animation. #1405 (WPF.SharpDX/UWP/Core).
Read more >
How to render text to a transparent BitmapRenderTarget?
I'm trying to render text to a BitmapRenderTarget , cleared with transparent color. My TextBox is drawn on its own SharpDX.Direct2D1.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found