Collada plugin for After Effects

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

Collada DAE Importer for trueSpace7.61

A plugin and script for reading Collada mesh and animation data into truespace. It will read in lights, cameras, meshes, nulls, light color, spot light cone angle, camera fov and motion animations. It will not read in morphs or physics.

persistent base install required

Clintons3dDAE.rsx required

some version of microsoft visual c runtime 2008 is required - try the links below if plugin does not install

Note: rsx plugin requires VC++ runtime 2008 from Microsoft. (2007). Get it if the plugin does not install.

Note: may require VC++ runtime 2008 sp1 from Microsoft. (2010). Get it if the plugin does not install.

Installation:

  1. install the persistent base if not already installed
  2. install the rsx plugin if it is not already installed
  3. drag the node into the link editor
  4. delete the node from the scene after install is complete

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.

some version of ms visual c runtime 2008 is required - try the links below

Note: the fbx rsx plugin requires VC++ runtime 2008 from Microsoft. (2007) Get it if the plugin does not install.

Note: may require VC++ runtime 2008 sp1 from Microsoft. (2010) Get it if the plugin does not install.

Usage:

import dialog

as joints - interpret joints as joints and create an extra bone at the last joint in a chain so it can be used as a deformer. Otherwise reads joints as bones ignoring the last joint in a chain.

materials - import materials, otherwise only import color to a simple generic material. This option is good for importing scenes that have hundreds of items.

The Post Import Utilities are used to apply animation and skinning and to convert and clean the node structures imported. The presentation order below and on the ui is the general order these utilities would be applied. The process actor and process actor animations are only needed for skeletal animations.

  • clean hierarchy - reduces the nodes to simple parenting relationships. This step can take some time to complete. This step is required before processing the actor. During the import several helper nodes are created to account for different rotation orders that might be encountered and to help with truespace rotation limits. This process transfers the transform data from the helpers to the base nodes(meshes, lights cameras etc) and deletes the helpers resulting in a cleaner scene.
  • process actor - copies the bind pose and sets the skin weights for the skeleton. It copies the bind pose to a fake skeleton then copies the transform values from the fake skeleton to the real skeleton and finally reads the skinning data from a file and applies those values to the mesh.
  • process actor animation -copies the animation from the fake skeleton to the real skeleton inside the actor. A long animation can take a very long time to process.
  • convert to groups - converts the parenting relationships of the nodes to group relationships. Truespace does not natively support parenting and this process converts to a truepace compatible format.

Make connections in the link editor to adjust for Y-up collada files. Connect the OwnerMatrix of the Actor to the WldMatrix of the collada scene node. The collada scene node will have it's WldMatrix connected to all of the other imported items. Rotate the collada scene node so the top of the scene is pointed upwards in the Z direction. At this point the scene can be converted to a group. If the scene is already Z-up just disconnect the collada scene node from all it's children and delete it.

you tube here

Notes:

  • Plugin package is required to use this script.  Download the plugin package here.
  • A scene with a large number of items can crash trueSpace. Uncheck the material option to load scenes with large item counts.
  • Null, Pitch, Empty and FakeJoint nodes to the \\Scripts\\preobjects folder
  • It will not read in morphs or physics.
  • Meshes are limited to 128 materials, 2 uv texture maps and must be made of triangles or convex polygons.
  • Only one skeleton per file and one mesh per skeleton is allowed.
  • The importer works best with the link editor view not visible. A lot of nodes are created and that slows down the process if the link editor is updating to accommodate the display of all these nodes.
  • The process for importing skeletal meshes:
    • Import the collada file then clean the hierarchy
    • process the actor
    • process the actor animations
    • finally adjust for Y-up files
  • The plugin does not check for preexisting items with the same names as imported items and may crash if that is the case. Empty the scene using the clear scene button before import or be sure all names will be unique or 3d encapsulate the existing scene before importing.
  • Mesh normals don't always come in properly.
  • All imported items are connected to a "collada scene" node. This is used to make Y-up collada files have the proper orientation and maybe for scaling an entire scene after importing. Skeletal meshes don't connect to the scene node automatically so use the link editor to attach the ownermatrix of the actor to the collada scene node first.
  • The camera from the After Effects exporter may be reversed in the x direction. Connect this node between the camera's OwnerMatrix and the WldMatrix of the node connected to it.

click to get the source code (for programmers to build the rsx file)

The source assumes to be added into d:\sdk_tS761B8\Examples\ with collada dom source built into d:\collada-dom-2.2\collada-dom\dom\

September 14, 2021

  • fix lambert shader lack of model shader
  • plugin version 1638420

October 31, 2020

  • previous changes were never uploaded and were lost - rerelease of Sept 18 changes
  • updated toolbar reset list

September 18, 2020

  • break dae import portion of rsx plugin out from the other functions
  • installer clears recent files list and opens clintons3d toolbar
  • plugin version v.1638419 is a new rsx plugin file

August 25, 2019

  • new name attribute for material import
  • fix transparency alpha
  • remove symbol for material matching - now matches by order of appearance
  • fix no visual scene crash
  • remove ambient color from the diffuse color
  • plugin version v.1638414

February 24, 2018

  • persistent install v2 compatible
  • compatible with new batch installer

January 12, 2018 - persistent install

July 1 2017 - improved material handling

  • load material nodes from resource instead of the file system
  • removed obsolete clean shaders, connect normal and remove normal map options
  • more stable and new upper limit of 128 materials per mesh
  • added shininess import to the texture model shader
  • alpha reads both transparency and transparent tags
  • reads normalmap from blender
  • rsx file version v.1638409

January 31 2016:

  • new option to not import materials
  • new option to remove normal maps during the import process
  • fix to remove 1 extra material node

July 30 2013:

  • import as a standard truespace skeleton
  • option to import as bones or joints
  • cleaner appearance

December 20 2012:

  • light color animation is imported
  • spot light cone angle animation
  • camera fov animation
  • camera transform bug fixed
  • fbx material bug fixed

December 16 2012:

  • unique button id and automatic installer for the script portion
  • matrix animation tags supported - can be used with Autodesk FBX Converter
  • skeletal animations
  • true bind pose support - was using scene transform for the bind pose
  • clean heirarchy scripts improved
  • mirrored items fixed
  • automatic Y-up adjustments removed

December 10 2012: - crashing when more than 16 materials. Rebuilt Clintons3dPlugin.rsx and it works now. Must have been a bad build. No code changes.

August 21 2011:

  • imports a real skeleton and skinning data(no animations yet)
  • will import skeletal meshes composed of more than one mesh
  • new functions for cleaning up the node structures
  • limited support for collada matrix tags
  • fixed bug that prevented model side compatibility
  • after import frame at 0 instead of some crazy number

June 13 2011:

  • more stable - no need to restart after an import
  • reads polygon tags
  • material limit raised to 16
  • uv limit raised to truespace maximum of 2
  • will read a fake skeleton
  • button highlighting fixed
  • user interface with scale value and import filters
  • button to empty the scene
  • reads skeletal meshes(but not the skeletons)
  • loads a fake skeleton
  • improved hierarchy building
  • works with Blender2.49
February 18, 2010
June 5, 2013