Set the scene background to transparency

Oct 5, 2011 at 5:15 PM

Hi,

Is there a way to set the scene background to transparency. I mean most of the tutorial have the background color in light blue and I want it to be transparent?

Make it like

this.scene.BackgroundColor = new Color(255, 255, 255, 0); doesn't work.

 

Thanks

Coordinator
Oct 14, 2011 at 3:17 PM

I don't understand why you would make your background  color transparent. The BackgroundColor is used for clearing up the screen using Graphics.Device.Clear(..) so it can never be transparent. You can however, set the BackgroundTexture to be transparent, but it will be alpha-blended with BackgroundColor.

Ohan

Oct 14, 2011 at 8:41 PM

Thank ohan,

The reason I want to make it transparent is I'm trying to test GoblinXNA with the new see through Vuzix glass Star 1200. But you're right it can never be transparent.

I found away around it by making it black, then it is kind of transparent.

 

Thanks

Truyen

Coordinator
Oct 14, 2011 at 10:59 PM

Yes, for optical see-through glasses, black color is treated as transparent color.

Ohan