GS-0
05-28-2010, 09:53 PM
So I am having a strange issue with static meshes as a sub object. They render perfectly in the editor, but when ingame they render pitch black as if they had no LightEnvironment. After searching, yes I used the search first, I have uncovered similar problems, but those dealt with missing light environments. Before you decide to give me a link to Google and some harsh words, consider this:
I have experimented and searched for answers, but nothing seems to work. Also, I am still a novice at UnrealScript. To help explain my problem, I have pictures and code "snippets":
http://img.photobucket.com/albums/v240/geminijunodeluxe/Untitled-1-42.jpg
class StateTrigger extends Actor
placeable;
var DynamicLightEnvironmentComponent LightEnvironment;
var StaticMeshComponent BaseX,Nub,Thing;
defaultproperties
{
Begin Object Class=DynamicLightEnvironmentComponent Name=MyLightEnvironment
bSynthesizeSHLight=TRUE
bIsCharacterLightEnvironment=TRUE
bUseBooleanEnvironmentShadowing=FALSE
End Object
Components.Add(MyLightEnvironment)
LightEnvironment=MyLightEnvironment
Begin Object Class=StaticMeshComponent Name=StaticMeshComponent0
StaticMesh=StaticMesh'NEC_Wires.SM.Mesh.S_NEC_Wire s_SM_Pipecap01'
LightEnvironment=MyLightEnvironment
End Object
Components.Add(StaticMeshComponent0)
BaseX=StaticMeshComponent0
Begin Object Class=StaticMeshComponent Name=StaticMeshComponent1
StaticMesh=StaticMesh'NEC_Wires.SM.Mesh.S_NEC_Wire s_SM_Wireconnector01'
LightEnvironment=MyLightEnvironment
End Object
Components.Add(StaticMeshComponent1)
Nub=StaticMeshComponent1
Begin Object Class=StaticMeshComponent Name=StaticMeshComponent2
StaticMesh=StaticMesh'LT_Light.SM.Mesh.S_LT_Light_ SM_Light01'
LightEnvironment=MyLightEnvironment
End Object
Components.Add(StaticMeshComponent2)
Thing=StaticMeshComponent2
Begin Object Class=CylinderComponent Name=CylinderComponent0
CollideActors=true
CollisionRadius=+0040.000000
CollisionHeight=+0040.000000
End Object
Components.Add(CylinderComponent0)
CollisionComponent=CylinderComponent0
bCollideActors=true
bStatic=true
bMovable=false
bEdShouldSnap=true
}
As you can probably tell from the code above, I am currently following the Mastering Unreal V3 tutorial on the UDN. By the way, I am currently using the May build of the UDK.
Any help is very much appreciated, thank you.
I have experimented and searched for answers, but nothing seems to work. Also, I am still a novice at UnrealScript. To help explain my problem, I have pictures and code "snippets":
http://img.photobucket.com/albums/v240/geminijunodeluxe/Untitled-1-42.jpg
class StateTrigger extends Actor
placeable;
var DynamicLightEnvironmentComponent LightEnvironment;
var StaticMeshComponent BaseX,Nub,Thing;
defaultproperties
{
Begin Object Class=DynamicLightEnvironmentComponent Name=MyLightEnvironment
bSynthesizeSHLight=TRUE
bIsCharacterLightEnvironment=TRUE
bUseBooleanEnvironmentShadowing=FALSE
End Object
Components.Add(MyLightEnvironment)
LightEnvironment=MyLightEnvironment
Begin Object Class=StaticMeshComponent Name=StaticMeshComponent0
StaticMesh=StaticMesh'NEC_Wires.SM.Mesh.S_NEC_Wire s_SM_Pipecap01'
LightEnvironment=MyLightEnvironment
End Object
Components.Add(StaticMeshComponent0)
BaseX=StaticMeshComponent0
Begin Object Class=StaticMeshComponent Name=StaticMeshComponent1
StaticMesh=StaticMesh'NEC_Wires.SM.Mesh.S_NEC_Wire s_SM_Wireconnector01'
LightEnvironment=MyLightEnvironment
End Object
Components.Add(StaticMeshComponent1)
Nub=StaticMeshComponent1
Begin Object Class=StaticMeshComponent Name=StaticMeshComponent2
StaticMesh=StaticMesh'LT_Light.SM.Mesh.S_LT_Light_ SM_Light01'
LightEnvironment=MyLightEnvironment
End Object
Components.Add(StaticMeshComponent2)
Thing=StaticMeshComponent2
Begin Object Class=CylinderComponent Name=CylinderComponent0
CollideActors=true
CollisionRadius=+0040.000000
CollisionHeight=+0040.000000
End Object
Components.Add(CylinderComponent0)
CollisionComponent=CylinderComponent0
bCollideActors=true
bStatic=true
bMovable=false
bEdShouldSnap=true
}
As you can probably tell from the code above, I am currently following the Mastering Unreal V3 tutorial on the UDN. By the way, I am currently using the May build of the UDK.
Any help is very much appreciated, thank you.