Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
Hi All,

If I have a Viewport3D in WPF is it possible for it to have a transparent background? So say I overlay the viewport3D on top of my window content and render only a small cube in the middle, everything behind it to be visible? With all my experiments so far the background is white!

Thanks in advance!
Posted
Comments
Khaniya 16-Dec-10 8:36am    
Very Good Question
I also need same
Why there is no facility to bookmark question also?

1 solution

Yeah you can, just set all relevant backgrounds (your 3D viewport, and the window) to Transparent and make sure the window has these properties set:
WindowStyle="None" AllowsTransparency="True"


Hope this helps,
Fredrik Bornander
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900