Collada plugin for After Effects

More info here
Plugins and Scripts > trueSpace > Import/Export

Unreal Import Export for trueSpace7.61

Set of scripts for working with Unreal game engine file formats. Imports and Exports T3D format files. Works with UE1 through UE5.

persistent base install v3 required

Clintons3dPlugin.rsx v1638457 or higher (August 2024) is required.

toolbar button LMB open import panel floating, RMB open import panel in the stack

t3d import panel

T3D Import:

  • Scale - import scale applied, default 0.02 matches DeusEx maps
  • Clear scene - empty items from the scene, required for first run of ue1/deus ex csg map
  • Texture check - check for missing texture files for csg geometry(brushes) of type .png or .dds and list them in the Log view. Press (esc) to end a long run. Choose the T3D file below before running the check
  • UE4 map - t3d file was exported from Unreal Engine version 4 or 5
  • Brushes - import csg brush geometry
  • Static mesh - imports placeholders for static meshes and interpActors in the form of cubes
  • Skeletal mesh - imports placeholders
  • Lights - include lights
  • Cameras - include cameras
  • KActors - import placeholders for level kactors
  • Mover brushes - import mover geometry
  • Volumes - import special volume brushes
  • "..." - press button to choose the T3D file
  • Preload Brush Materials - import material texture files before importing brush csg geometry
  • Load Brushes - import csg geometry
  • Build Brushes - apply boolean operations to the imported brushes, requires tS restart and repeat runs
  • Copy Brush Materials - apply the preloaded materials to csg imported geometry brushes and movers
  • Import T3D - press to start the import of non-brush objects from the t3d file
t3d export panel

T3D Export:

  • Scale - export scale applied(100.0)
  • export filename - nothing
  • Only export selected - check to export only the selected objects
  • Export T3D - press to save a UE4 compatible T3D map file
  • note the time should be at frame zero or the start point for any animations may be off
t3d lights

T3D Lights - set the attenuation of all lights in the scene to prevent blowout levels of illumination.

  • Constant -
  • Linear -
  • Quadratic -
  • Threshold -
  • Apply attenuation button -
t3d mesh tag

T3D MarkMesh - assign tags to identify static and skeletal meshes and terrains for the T3D exporter, landscapes use the terrain tag

  • Package - package name for mesh in the UDK object browser
  • Group - group name of the mesh in the UDK object browser - test shows this value doesn't seem to matter, only package name is needed for matching up assets. For UE4 do use this to use preexisting meshes. for example set group to Character on a skeletal mesh named HeroTPP to end up with a full name of "/Game/Character/HeroTPP.HeroTPP"
  • StaticMesh Name - name of the mesh inside the Unreal object browser
  • Apply Static Tag - assign the staticmesh name to the node
  • Skeletal Mesh Name - name of the mesh inside the Unreal object browser
  • Apply Skeletal Tag - assign the skeletal mesh name to the node
  • MaxComponentSize - 4 typical value
  • NumPatchesX - set equal to num segments Width from original plane
  • NumPatchesY - set equal to num segments Height from original plane
  • Apply Terrain Tag - interprete as a terrain on export
  • Particle System Name - name of the particle system inside the Unreal browser
  • Apply Particle Tag - interprete as an Unreal particle system
  • Load Default Unreal Material - loads the light and dark gray checker texture into the material editor so it can be assigned to csg geometry
unreal utilitespanel

Utilities tools for show, hide, materials and the fbx utilities panel

  • Show Store Items - select the group or individual items found in the various stores: lights, brushes etc. and press to make them visible
  • Hide Store Items - select the group or individual items found in the various stores: lights, brushes etc. and press to make them invisible
  • Load Default Unreal Material - loads the light and dark gray checker texture into the material editor so it can be assigned to csg geometry
  • Load World Space Material loads a world space checker texture into the material editor so it can be assigned to csg geometry
  • Purple Transparent - convert DeusEx purple material to transparent
  • Open T3D FBX Utilities(see below):
unreal setup panel

Setup

  • MoveSpeed - make faster for larger scene navigation, slower for finer control
  • RotateSpeed - adjust for a comfortable rotation speed
  • Convert View Widget - changes the view widget walk control so it follows the Unreal Editor style of navigation
    • RMB - look around from eye position,
    • LMB - move with yaw is less sensitive to turning,
    • LMB + RMB - move up and down ( tS just RMB )
    • MMB (no change) - rotates around selection, or scene origin if nothing selected
    This change will revert after a reset default context
  • Skip Textures - do not load brush textures - enable preview without texture materials and may be required if no textures are in the level csg geometry
  • Use Preferences Lights load lights from Preferences, this will give UU style lights otherwise simpler light structures are created to save resources.
  • Collada Friendly Names - change all ", #"(comma space hash) to "_" so the names are more compatible with the enhanced collada exporter
  • Max Memory - stop building brushes when max memory is reached, 1600 Mb default
  • NTCore - if NTCore installed to tS exec, press to set max memory to 3000 Mb
t3d fbx utilites

T3D FBX Utilities

  • Infinite to Directional - convert imported infinite light to a directional light so shadows display
  • StaticMesh and SkeletalMesh - color and tag options
    • Process tags set smGroup, smPackage, smSkeletalMesh and smStaticMesh tags
    • Replace color ue4 fbx imports as black, set color to make shapes readable
    • Use Texture will replace the color with a world space gray checker texture
    • smGroup, smPackage, smSkeletalMesh and smStaticMesh text for skeletal and static mesh tags - smSkeletalMesh and smStaticMesh can be left blank for automatic naming based on the mesh
  • Process StaticMeshes/Process SkeletalMeshes - changes color and tags for selected imported FBX meshes
  • FBX source group group of fbx meshes used with t3d placeholders
  • T3D destination group group of t3d mesh placeholders for the fbx meshes
  • Copy FBX meshes copies each fbx mesh from the fbx source group to the location of the t3d files in the t3d group
  • Rename Branch No Anim renames all the childen with a prefix "NoAnimation_" to prevent ue4 from reading the animation on that branch
  • Rename Branch Yes Anim removes the "NoAnimation_" prefix from the names

A sample video on how to install an rsx plugin for truespace can be found here. The video is for installing the Indigo Renderer, but it uses the same rsx plugin.

Installs a button to open the importer/exporter floating panel (LMb) or in the panel view(RMB). This script comes in 2 parts. There is the script itself and a rsx plugin for reading and writing the binary PSK and PSA file formats. The script installs with the push of a button, the plugin requires manual installation.

Some old installation and usage notes can be found at this link.

https://www.gildor.org/en/projects/umodel - used to view and extract assets from the Unreal packages.

DeusEx

  • preload the texture materials
  • import t3d map to truespace - using fast boolean option(import in 1 hour instead of 10 hours)
  • copy brush materials
  • import lwo models to blender using custom script
  • import lwo animation model frames to blender
  • create morph targets for animation
  • use https://github.com/heimlich1024/OD_CopyPasteExternal to copy morphs into tS
  • use script to export animation texture for custom vertex shader in game engine

2022 Version - for history record

Old version 2015 and earlier: supports ue3 T3D, PSK and PSA

t3d import to truespace from ue4/ue5

  • export t3d scene from ue4 and import to tS, scale 0.01
  • static mesh placeholders will be saved to the "t3dStaticMeshStore" 2D group
  • export static meshes from the content browser as fbx without collision meshes. if more than 1 is exported a folder structure matching the content browser will be created
  • import fbx static meshes - "Add 180 Yaw Mesh" option checked, scale 0.01
  • t3dfbx import export utility - set checkboxes
    • process tags
    • replaceColor - unless the static mesh has a plain color
    • use texture - if static mesh has a texture assigned inside unreal
  • select all static meshes and press "Process StaticMeshes"
  • 2D encaps/group the fbx meshes
  • set fbx source, set t3d destination(t3dStaticMeshStore) to their group nodes
  • press "copy fbx meshes" button
  • delete fbx encaps and delete t3d encaps
  • final result is scene the matches the ue4 level

Utility Notes:

  • use naming in ts to control animating parts in ue4 - skeletal mesh animation
  • use only part of a skeletons animation in ue4 by renaming joints - does not work with root joint
  • cameras and lights will not do full round trip between tS and ue4

Notes:

  • After brush import and cleanup correct any mesh errors and break apart into meaningful individual meshes.
  • UDK example map has flattened textures that are used to create simplified materials
    ue viewer tool will export udk and ut2k4 material info into ".mat" files which list the texture files for diffuse, normal and specular maps. Maybe add this later...
  • ut2k4 was the beginning of the transistion away from bsp maps to staticmesh based maps.
  • Could not test ut3 export since all the assets are locked down.
  • UE5 example map has no bsp meshes, export SM_... by selecting them in the browser, rmb asset actions, bulk export, no collision, export all
    Import fbx files to tS matching the t3d import: 0.01 scale, no materials, fix yaw 180.
    t3dfbx utilities all checked, select all SM and process
    move t3d light to good position
    2d encaps fbx meshes, do materials/textures
    copy the fbx to the staticmesh placeholders, then remove the placeholders
  • dds files exported from ut2k4 do not load into tS
  • umodel will export as actorx or gltf files, import gltf to blender and just drag in the flattened texture file to the shader editor
  • After import the field of view of the viewport will increase to a value of 1.2
  • Because of the long load times for old bsp levels, use the texture check to verify that all texture files are ready before commiting to a long run.
  • Skip Textures if the level bsp has no textures or no textures are desired.
  • Brush map import run time for the DeusEx Hong Kong level is about 51 minutes
    • No fast booleans - 15.75hr
    • Fast bool, max materials 95 - 5hr
    • Fast bool, max materials 64 - 3.5hr
    • Fast bool, max materials 48 - 2.75hr
    • Fast bool, max materials 31 - 1.5hr

    This is a heavy csg level. Newer Unreal Editors do not use brushes as the primary means of level creation. A medium size UE1/UE2/Deus Ex level takes about an hour to load. Most old game levels are medium to large .

  • Brushes with 3 or 4 vertices will import as stand alone meshes to help reduce material counts?
  • Some UV maps will need adjusting?
  • Truespace to UE4 notes/tutorial
  • DeusEx to WebXR notes
  • sometime between v4.13 and 4.26 the t3d import workaround no longer works - no way to import t3d to latest UE4 and upcoming UE5
  • to import t3d to ue4 and ue5, open the t3d file in a text editor and copy all and paste into the unreal editor.
  • ue4/5 will work with csg geometry but will not import ue1/2/3 format t3d maps properly(maybe ue3, not tested)
  • t3d import has been "removed" from ue4 v4.13.0 due to hard crashes
  • Click this line for some old information.
  • The plugin package v1638457 or higher (August 2024 plugin file date) is required to use this script. Download the plugin package here.
  • Note that the rsx plugins on this site require the VC++ runtime 2008 sp1 from Microsoft. (2010) Get it if the rsx plugin does not install.
  • t3d import names the inner mesh node to match the ue4 content browser name for the object
  • t3d import at scale 0.01, export at scale 100, import 0.02 scale for Deus Ex maps
  • ue4 t3d import level goes black - save level fixes it
  • static mesh must have both smStaticMesh tag and smPackage tag for t3d export
  • fbx scene import is easier than t3d scene import
  • t3d is good for adding preexisting static and skeletal meshes to a ue4 level
  • t3d should also be good for heavy scene instancing
  • t3d import was completely removed sometime between ue4.13 and ue4.27
  • use deus ex tools to export static and animated meshes, custom lwo importer for blender to read them and odcopypaste to get the animated models as morph targets into tS
    custom lwo importer
  • the imported t3d objects are placed into layers
    • no csg brush 2
    • "flat" brushes 3
    • csg subtract 4
    • lights 5
    • mover brush 6
    • static meshes 7
    • skeletal meshes 8
    • csg add 9

Notes for preview release

new brush import process - for brush, movers and volumes

  1. preload materials
  2. load brushes
  3. build brushes(restart tS as needed)
  4. copy brush materials

all add and subtract brushes still exist in the scene after the build for possible repair functions later.

import t3d button is only for non-brush items now

Setup has new max memory inputs

during csg can stall - maybe temporary pause or totally stuck tS, so wait a bit to be sure, next run use cancel before problem and restart tS and try different precision values

maxmemory - scripts have memory leak so when reaching a limit it will stop. 1600 is good for a non-patched tS exe. If the NTCore 4Gb patch is installed then 3000 is a good value.
After stopping, restart tS and continue the run by pressing Build Brushes button.

layers not used for brushes, are in 2d groups so maybe good enough

todo add memory usage graph for brush csg step. ? any way read total avail memory ?

todo collada friendly names for brushes needs to come later in the process - need original names to match for csg processing

all tests only on deus ex so far - need to check other ue formats

can (esc) during long csg, maybe escape before a crash section and adjust the precision value to get by it

t3d import speed improvement
DeusEx Hong Kong level about 51 minutes with autoit based bad csg
new approach 19 mins with 3 restarts included, better csg result
note proper csg plus autoit took way too long to process, might be fixable but no reason to pursue

? issue with the Construction history dialog, if not fully setup to not ask then booleans will run very slowly

October 20, 2024

  • fix lights Use Preference Lights unchecked bug
  • sort Texture Check result and auto open log view to see it
  • load brushes, reestablish UE4 map boolean control
  • volumes reintroduce wireframe colors display
  • fix skip textures indexof missing bug, placed polyfill fix in load brushes
  • add heal vertices and triangulate to end of build brushes - prevent fbx export failure and crashes
  • connected ORA stack clear commands node to the build brush command node, was not working as a script call
  • fix preferences dialog restore values

September 12, 2024 - preview release

  • load on demand installer
  • new script name, just "unreal import export" with updated logo
  • boolean more stable, can pause but no longer freezes
  • Flatten construction history dialog pre-processing
  • kindof pre-release while code is cleaned and notes rewritten for no AutoIt method

July 21, 2024 - not yet published

  • fix boolean bug - changed Add to Union, this makes the AutoIt method too slow to be practical, reason for slow down not known
  • fixed post scale math - treat postscale as a vector and apply the inverse rotation matrix to it to get the final scale
  • brush import in stages
  • works with instanced brushes - only one found in one t3d file so far
  • faster but less stable, the boolean node is very finicky - works great but sensitive to failures
  • still much cleanup to do before publishing

June 9, 2024

  • installer load on demand compatible - for the boolean widget

Year 2022 and earlier

  • see unreal import export 2022 page
January 04, 2010
June 5, 2013