Results 1 to 8 of 8

Thread: max exporter feedback

  1. #1

    max exporter feedback

    I use COLLADA max export(01-16-06) to export my models. However, there is some problems in material export:

    It seems that this exporter can only export either diffuse color or diffuse map. I cannot export both of them. So is Specular and so on.

  2. #2
    Member
    Join Date
    May 2005
    Location
    Carrollton, TX
    Posts
    40

    Re: max exporter feedback

    Quote Originally Posted by zhouzhengchun
    I use COLLADA max export(01-16-06) to export my models. However, there is some problems in material export:

    It seems that this exporter can only export either diffuse color or diffuse map. I cannot export both of them. So is Specular and so on.
    I stumbled across that earlier. Is that a 1.4 schema constraint?
    Code :
    	<xs:complexType name="common_color_or_texture_type">
    		<xs:choice>
    			<xs:element name="color">
    				<xs:complexType>
    					<xs:simpleContent>
    						<xs:extension base="fx_color_common">
    							<xs:attribute name="sid" type="xs:NCName"/>
    						</xs:extension>
    					</xs:simpleContent>
    				</xs:complexType>
    			</xs:element>
    			<xs:element name="param">
    				<xs:complexType>
    					<xs:attribute name="ref" type="xs:NCName" use="required"/>
    				</xs:complexType>
    			</xs:element>
    			<xs:element name="texture">
    				<xs:complexType>
    					<xs:sequence>
    						<xs:element ref="extra" minOccurs="0"/>
    					</xs:sequence>
    					<xs:attribute name="texture" type="xs:NCName" use="required"/>
    					<xs:attribute name="texcoord" type="xs:NCName" use="required"/>
    				</xs:complexType>
    			</xs:element>
    		</xs:choice>
    	</xs:complexType>

    If this is a schema constraint, is it an intentional design feature? If not, can it be fixed by using something other than the "choice" XSLT tag?
    David Wallace Croft
    www.CroftSoft.com

  3. #3
    Junior Member
    Join Date
    Feb 2006
    Location
    Tokyo Japan
    Posts
    5
    sorry.
    I mistook a place to write.

  4. #4
    Member
    Join Date
    May 2005
    Location
    Carrollton, TX
    Posts
    40

    Re: max exporter feedback

    Quote Originally Posted by croft
    I stumbled across that earlier. Is that a 1.4 schema constraint?
    Never mind what I said earlier. I just learned where the image element goes within the effect.
    David Wallace Croft
    www.CroftSoft.com

  5. #5

    Re: max exporter feedback

    Quote Originally Posted by croft
    Never mind what I said earlier. I just learned where the image element goes within the effect.
    Then where is color? In the diffuse element, there only exists either texture or color. I cannot find both of them. Am I doing something wrong?
    Code :
    - <effect id="_01_-_Default-fx" name="_01_-_Default">
      - <profile_COMMON>
        - <technique id="_01_-_Default-fx-COMMON" sid="COMMON">
          - <phong>
            - <diffuse>
                <texture texture="Map__1" texcoord="1" /> 
              </diffuse>
             </phong>
           </technique>
         </profile_COMMON>
      </effect>

  6. #6
    Member
    Join Date
    May 2005
    Location
    Carrollton, TX
    Posts
    40

    Re: max exporter feedback

    Quote Originally Posted by zhouzhengchun
    Then where is color? In the diffuse element, there only exists either texture or color. I cannot find both of them. Am I doing something wrong?
    I don't know about the max exporter but today I figured how out to have both a texture image and a diffuse color. Here is a hand-coded example:
    http://earth.whoola.com:8080/space/cybe ... e/cube.dae
    David Wallace Croft
    www.CroftSoft.com

  7. #7
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    I'm pretty sure that Collada allows either a color or texture per channel, but not both (see the definition of the "common_color_or_texture_type" in croft's original response). This conflicts somewhat with Max's materials apparently, and that issue is addressed by glaforte at the end of this thread:
    Quote Originally Posted by glaforte
    The export of both color and texture for the diffuse (and other) material parameters, this is a COLLADA 1.4 regression, I'm afraid. I'll check for a nice way to add this information using the <extra> nodes, but since I'm already screwing that part of the schema for multi-texturing, I might give the option of always exporting both color and texture information for any channel.

  8. #8
    Senior Member
    Join Date
    Jan 2006
    Location
    Foster City, CA
    Posts
    540
    Quote Originally Posted by croft
    I don't know about the max exporter but today I figured how out to have both a texture image and a diffuse color. Here is a hand-coded example:
    I think this is slightly different than what zhou wants. He wants both a diffuse texture and a diffuse color.

Posting Permissions

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