TXB2D and TX2D Visibility level
by Brian Bond · in Torque X 2D · 06/22/2009 (7:01 pm) · 3 replies
Hey all,
Anyone able to get the visibility level to work? I can get an object to show up with the right transparency within the builder, but not in game.
Environment:
Windows Vista Home Premium SP1 (64bit)
Torque X 2D 3.0 on XNA 3.0
Steps to reproduce:
1: Create a new project for TX2D.
2: Add 2 materials to TXB2D.
3: Drag and drop one of each material to the scene.
4: Set them on different layers (In this example, I'm using Layer 12 and Layer 15).
5: Align both sceneobjects so the Layer 12 sceneobject is right on top of the Layer 15 sceneobject.
6: Edit the visibility level of the Layer 12 sceneobject to be 0.50 or 0.75 (this should make it translucent so you can see the sceneobject below.)
7: Save the scene and project, rebuild in visual studio, and run.
Expected:
Layer 12 sceneobject is translucent like in TXB2D.
Actual:
Layer 12 sceneobject is opaque/solid and can't be seen through.
I'll submit as a bug report if someone can reproduce for me.
Brian
Anyone able to get the visibility level to work? I can get an object to show up with the right transparency within the builder, but not in game.
Environment:
Windows Vista Home Premium SP1 (64bit)
Torque X 2D 3.0 on XNA 3.0
Steps to reproduce:
1: Create a new project for TX2D.
2: Add 2 materials to TXB2D.
3: Drag and drop one of each material to the scene.
4: Set them on different layers (In this example, I'm using Layer 12 and Layer 15).
5: Align both sceneobjects so the Layer 12 sceneobject is right on top of the Layer 15 sceneobject.
6: Edit the visibility level of the Layer 12 sceneobject to be 0.50 or 0.75 (this should make it translucent so you can see the sceneobject below.)
7: Save the scene and project, rebuild in visual studio, and run.
Expected:
Layer 12 sceneobject is translucent like in TXB2D.
Actual:
Layer 12 sceneobject is opaque/solid and can't be seen through.
I'll submit as a bug report if someone can reproduce for me.
Brian
About the author
[Public E-mail: Brian@nanoburnt.com] __________ [XBox Live Tag: Max Smalls] __________________ I'm currently working as a Software QA/QC Specialist. In my spare time I'm working on a Torque X Game.
#2
Brian
06/23/2009 (9:53 am)
Awesome. I'll go ahead and check it out tonight after work. Also, I'll link this post in your bug thread as a duplicate then.Brian
#3
www.garagegames.com/community/forums/viewthread/92827/
Brian
06/23/2009 (9:57 am)
Link to Matt's original bug submission:www.garagegames.com/community/forums/viewthread/92827/
Brian
Torque Owner Matthew Hoesterey
Here is the fix if you have the pro version
modify the SimpleMaterial.cs file by setting:
bool _isColorBlended = true;