Results 1 to 6 of 6

Thread: Unclarity in newparam

  1. #1
    Junior Member
    Join Date
    Oct 2006
    Posts
    3

    Unclarity in newparam

    I am currently switching from an older version of the ColladaMaya plugin to a newer version, which now supports more of the Collada format. When looking at the new files, it appears to be using the newparam tag. In the Collada reference documentation, I cannot find the children the newparam tag can have and what their use is. Can anyone help me further?

  2. #2
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    If you go to "Ch. 6: COLLADA FX Reference" in the spec you'll see the documentation for the <newparam> element, including a listing of all possible child elements. For <newparam> the allowable child elements vary depending on the profile the <newparam> appears in (<profile_COMMON>, <profile_CG>, etc).

    A <newparam> is sort of like declaring a variable in a programming language. It gives a name (via the sid attribute), a type, and a value to some entity in the effect. You can then use it elsewhere by referring to its name.

  3. #3
    Junior Member
    Join Date
    Oct 2006
    Posts
    3
    This piece of documentation I could find, but in several collada files I found a sampler2D and surface inside a newparam. However this cannot be found in this piece of documenation. So I am wondering where I can find a complete list of possibilities within a newparam tag.

  4. #4
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    It lists "VALUE_TYPE" as one of the options for a child of a <newparam>, and it says to see the "Value Types" section for more info. You can find that section at the end of Ch. 6 (it'd be nice if it were hyperlinked), and in there you'll see <sampler2D>, <surface>, and all the other possibilities.

  5. #5
    Junior Member
    Join Date
    Oct 2006
    Posts
    3
    Thanks... that is quite a list...

  6. #6
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771
    Yes it is. COLLADA FX is a powerful effects system. Is there something in particular you are trying to figure out that we can help you with?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •