Khronos Public Bugzilla
Bug 284 - values for fx_sampler_min_filter_enum and fx_sampler_mip_filter_enum are swapped
values for fx_sampler_min_filter_enum and fx_sampler_mip_filter_enum are swapped
Status: NEW
Product: COLLADA
Classification: Unclassified
Component: Specification
1.5.0
All All
: P3 normal
: ---
Assigned To: Fabrice Robinet
COLLADA Work Group email alias
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-01 17:35 PDT by Markus Henschel
Modified: 2014-01-07 10:23 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Henschel 2010-04-01 17:35:45 PDT
This are the types from the schema version 1.5:

<xs:simpleType name="fx_sampler_min_filter_enum">
  <xs:restriction base="xs:NMTOKEN">
  <xs:enumeration value="NEAREST"/>
  <xs:enumeration value="LINEAR"/>
  <xs:enumeration value="ANISOTROPIC"/>
  </xs:restriction>
</xs:simpleType>

<xs:simpleType name="fx_sampler_mip_filter_enum">
  <xs:restriction base="xs:NMTOKEN">
  <xs:enumeration value="NONE"/>
  <xs:enumeration value="NEAREST"/>
  <xs:enumeration value="LINEAR"/>
  </xs:restriction>
</xs:simpleType>

The values from fx_sampler_min_filter_enum actually belong to fx_sampler_mip_filter_enum and vice versa. Originally this must have been the intention of the schema author because the comment of the mipfilter element mentions ANISOTROPIC in the annotation. By the way the comment is quite incorrect:
<xs:element name="mipfilter" type="fx_sampler_mip_filter_enum" default="LINEAR" minOccurs="0">
 <xs:annotation>
  <xs:documentation>filtering across mips.
NONE = no minification
NEAREST = bilinear
LINEAR = trilinear
ANISOTROPIC =  Compensates for distortion caused by the difference in angle between the polygon and the plane of the screen.  Relies on max_anisotropy
  </xs:documentation>
 </xs:annotation>
</xs:element>

In my opinion the comment shoul be:
NONE = no mipmapping, only use the first mipmap level
NEAREST = only use texels from the nearest mimap level
LINEAR = linear filtering between nearest two mipmap levels
ANISOTROPIC = use anisotropic filtering between mipmap levels