Results 1 to 3 of 3

Thread: Textures

  1. #1

    Textures

    hy.
    I have this kind of material
    Code :
     <effect id="f16-tail_fin__ri-fx" name="f16-tail_fin__ri">
          <profile_COMMON>
            <newparam sid="F16-RTAI_JPG-surface">
              <surface type="2D">
                <init_from>F16-RTAI.JPG</init_from>
                <format>A8R8G8B8</format>
              </surface>
            </newparam>
            <newparam sid="F16-RTAI_JPG-sampler">
              <sampler2D>
                <source>F16-RTAI_JPG-surface</source>
                <wrap_s>WRAP</wrap_s>
                <wrap_t>WRAP</wrap_t>
                <minfilter>NONE</minfilter>
                <magfilter>NONE</magfilter>
                <mipfilter>NONE</mipfilter>
              </sampler2D>
            </newparam>
            <newparam sid="F16-LAK_JPG-surface">
              <surface type="2D">
                <init_from>F16-LAK.JPG</init_from>
                <format>A8R8G8B8</format>
              </surface>
            </newparam>
            <newparam sid="F16-LAK_JPG-sampler">
              <sampler2D>
                <source>F16-LAK_JPG-surface</source>
                <wrap_s>WRAP</wrap_s>
                <wrap_t>WRAP</wrap_t>
                <minfilter>NONE</minfilter>
                <magfilter>NONE</magfilter>
                <mipfilter>NONE</mipfilter>
              </sampler2D>
            </newparam>
            <technique sid="common">
              <phong>
                <ambient>
                  <color>0 0 0 1</color>
                </ambient>
                <diffuse>
                  <texture texture="F16-RTAI_JPG-sampler" texcoord="CHANNEL1">
                    <extra>
                      <technique profile="MAYA">
                        <mirrorU>0</mirrorU>
                        <mirrorV>0</mirrorV>
                        <wrapU>0</wrapU>
                        <wrapV>0</wrapV>
                        <repeatU>1</repeatU>
                        <repeatV>1</repeatV>
                        <translateFrameU>0</translateFrameU>
                        <translateFrameV>0</translateFrameV>
                        <rotateUV>0</rotateUV>
                      </technique>
                      <technique profile="MAX3D">
                        <amount>1</amount>
                      </technique>
                    </extra>
                  </texture>
                </diffuse>
                <specular>
                  <color>0.898039 0.898039 0.898039 1</color>
                </specular>
                <shininess>
                  <float>1</float>
                </shininess>
                <reflective>
                  <texture texture="F16-LAK_JPG-sampler" texcoord="CHANNEL1">
                    <extra>
                      <technique profile="MAYA">
                        <mirrorU>0</mirrorU>
                        <mirrorV>0</mirrorV>
                        <wrapU>1</wrapU>
                        <wrapV>1</wrapV>
                        <repeatU>1</repeatU>
                        <repeatV>1</repeatV>
                        <offsetU>0</offsetU>
                        <offsetV>0</offsetV>
                        <rotateUV>0</rotateUV>
                      </technique>
                      <technique profile="MAX3D">
                        <amount>0.05</amount>
                      </technique>
                    </extra>
                  </texture>
                </reflective>
                <reflectivity>
                  <float>1</float>
                </reflectivity>
                <transparent opaque="A_ONE">
                  <color>1 1 1 1</color>
                </transparent>
                <transparency>
                  <float>1</float>
                </transparency>
              </phong>
              <extra>
                <technique profile="FCOLLADA">
                  <spec_level>
                    <float>0.05</float>
                  </spec_level>
                  <emission_level>
                    <float>0</float>
                  </emission_level>
                </technique>
              </extra>
            </technique>
          </profile_COMMON>
          <extra>
            <technique profile="MAX3D">
              <faceted>0</faceted>
              <double_sided>0</double_sided>
              <wireframe>0</wireframe>
              <face_map>0</face_map>
            </technique>
          </extra>
        </effect>
    When i have this material what texture i must apply to the mesh?
    THere are 2 texture type:

    F16-LAK_JPG-sampler
    and
    F16-RTAI_JPG-sampler

    one for the diffuse and one for the reflective .
    Thanks

  2. #2
    Member
    Join Date
    Feb 2005
    Location
    San Jose, CA
    Posts
    63

    Re: Textures

    Most of the time, you should use F16-RTAI_JPG-sampler, the one from <diffuse> element.

    Effect with <profile_COMMON> is confusing when it comes to transparency, blending, and multi-texturing. You can see different importer/exporter use different meaning.

    Correctly me if I am wrong.
    texture from <ambient> could means ambient occlusion map.
    texture from <specular> could means specular map.
    texture from <reflective> and <refractive> could means cubemap/spheremap/etc.

    Herbert

  3. #3
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: Textures

    Feeling Software extensions for texture are documented on the wiki here:

    http://www.collada.org/mediawiki/index. ... _extension

Posting Permissions

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