Goal
I want to:
- place many objects in an external 3D package
- export object transforms to .T3D file
- import T3D into UE4 to drive instancedStaticMesh actor placement
Issue
I can not find how to express Instanced StaticMesh transforms in T3D, while T3D format supports standard StaticMeshActor placement
Expected Info
I want example .t3d file that i can import into UE4 to generate instancedStaticMesh actors
Example
The following is T3D representation of InstancedStaticMesh actor that has 10 instances, but the transforms are not epxressed in T3D
Begin Actor Class=BP_instStatMesh Name=BP_instStatMesh_1 Archetype=BP_instStatMesh_C'/Game/Blueprints/BP_instStatMesh_C'
Begin Object Class=InstancedStaticMeshComponent Name="InstancedStaticMesh" Archetype=InstancedStaticMeshComponent'/Game/Blueprints/BP_instStatMesh_C:InstancedStaticMeshComponent_0'
End Object
Begin Object Name="InstancedStaticMesh"
InstancingRandomSeed=13583
RelativeLocation=(X=-11129.292969,Y=-14105.630859,Z=353.577637)
bNetAddressable=True
CreationMethod=SimpleConstructionScript
End Object
InstancedStaticMesh=InstancedStaticMesh
RootComponent=InstancedStaticMesh
ActorLabel="BP_instStatMesh"
BlueprintCreatedComponents(0)=InstancedStaticMesh
End Actor
StaticMeshActor is expressed in T3D with full transform matrix:
Begin Actor Class=StaticMeshActor Name=Chair_15 Archetype=StaticMeshActor'/Script/Engine.Default__StaticMeshActor'
Begin Object Class=StaticMeshComponent Name="StaticMeshComponent0" Archetype=StaticMeshComponent'/Script/Engine.Default__StaticMeshActor:StaticMeshComponent0'
End Object
Begin Object Name="StaticMeshComponent0"
StaticMesh=StaticMesh'/Game/StarterContent/Props/SM_Chair.SM_Chair'
OverrideMaterials(0)=Material'/Game/StarterContent/Props/Materials/M_Chair.M_Chair'
bHasCachedStaticLighting=True
VisibilityId=3
BodyInstance=(bAutoWeld=False)
RelativeLocation=(X=-215.000000,Y=-120.000000,Z=32.000000)
RelativeRotation=(Pitch=0.000000,Yaw=63.749863,Roll=-0.000000)
CustomProperties
End Object
StaticMeshComponent=StaticMeshComponent0
RootComponent=StaticMeshComponent0
ActorLabel="Chair"
FolderPath="StaticMeshes"
End Actor