I hate to resurrect this old issue, but I maintain the COLLADA importer for
the Torque game engine, and we have recently run into problems with
visibility animations exported from 3ds max. In all but this feature, the
OpenCOLLADA exporter is superior to the built-in Autodesk one. The Autodesk
exporter outputs the visibility keyframes, but does not include the
animation target. This is detected and corrected by our importer, but we
cannot do anything with the OpenCOLLADA output since the keyframes are not
present.
Although there is no official support in COLLADA for animated visibility,
the COLLADAMaya exporter already supports them by animating a
node 'visibility' element as shown below:
<node id="node-Sphere01" name="Sphere01">
<matrix>1 0 0 1.714086 0 1 0 -7.595023 0 0 1 0 0 0 0 1</matrix>
<instance_geometry url="#geom-Sphere01">
<bind_material>
<technique_common>
<instance_material symbol="ColorMaterial" target="#ColorEffect2"/>
</technique_common>
</bind_material>
</instance_geometry>
<extra>
<technique profile="OpenCOLLADA">
<visibility sid="visibility">1</visibility>
</technique>
</extra>
</node>
I've attached a patch that adds similar support for visibility animation to
the COLLADAMax exporter, and would love to see it become part of the
official build.
Attachments:
colladamax_vis_anim_support.patch 2.9 KB
I really hope to see this patch get added to the official release soon.
Tom
looks like it's material parametr, so would be great if it just cach
visibility as opacity of material... e.g. multiply..... since not animated
it don't work too