Closed GoogleCodeExporter closed 8 years ago
Neither COLLADA 1.4.1 nor COLLADA 1.5.0 support switching of visibility within
an
animation. That might be interesting for future specifications. @Marcus ?
Original comment by opencollada
on 16 Oct 2009 at 1:10
MAX 10 exports a collada file with plus one animation:
<animation>
<source>...</source>
<source>...</source>
<source>...</source>
<sampler id="prop_blur01-visibility-animation">
<input semantic="INPUT" source="#prop_blur01-visibility-animation-input"/>
<input semantic="OUTPUT" source="#prop_blur01-visibility-animation-output"/>
<input semantic="IN_TANGENT" source="#prop_blur01-visibility-animation-intan"/>
<input semantic="OUT_TANGENT"
source="#prop_blur01-visibility-animation-outtan"/>
<input semantic="INTERPOLATION"
source="#prop_blur01-visibility-animation-interpolation"/>
</sampler>
<channel source="#prop_blur01-visibility-animation"
target="prop_blur01/visibility"/>
So I can catch it, if I want.
But I can do anything if there is no data in the dae file at all.
Original comment by cs...@digitalreality.hu
on 16 Oct 2009 at 1:31
In <channel source="#prop_blur01-visibility-animation"
target="prop_blur01/visibility"/>
... what is the target referring to?
Original comment by Marcus.C...@gmail.com
on 17 Oct 2009 at 4:47
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.
Original comment by nzChr...@gmail.com
on 7 May 2011 at 11:02
Attachments:
I really hope to see this patch get added to the official release soon.
Tom
Original comment by fcukg00gl3@gmail.com
on 15 Jun 2011 at 10:29
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
Original comment by antok...@gmail.com
on 18 Jul 2011 at 11:46
Original issue reported on code.google.com by
cs...@digitalreality.hu
on 16 Oct 2009 at 12:58