SahelFllh / opencollada

Automatically exported from code.google.com/p/opencollada
0 stars 0 forks source link

Animation: Visibility animation not saved under Max #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Export MAX file with visibility animation in it

What is the expected output? What do you see instead?
animation node, channel node in it, target="daeid/visibility"

What version of the product are you using? On what operating system?
OpenCollada 1.2.3

Please provide any additional information below.

Original issue reported on code.google.com by cs...@digitalreality.hu on 16 Oct 2009 at 12:58

GoogleCodeExporter commented 9 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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