Khronos Public Bugzilla
Bug 284 - values for fx_sampler_min_filter_enum and fx_sampler_mip_filter_enum are swapped
Summary: values for fx_sampler_min_filter_enum and fx_sampler_mip_filter_enum are swapped
Status: NEW
Alias: None
Product: COLLADA
Classification: Unclassified
Component: Specification (show other bugs)
Version: 1.5.0
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: Fabrice Robinet
QA Contact: COLLADA Work Group email alias
Depends on:
Reported: 2010-04-01 17:35 PDT by Markus Henschel
Modified: 2014-01-07 10:23 PST (History)
0 users

See Also:


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:simpleType name="fx_sampler_mip_filter_enum">
  <xs:restriction base="xs:NMTOKEN">
  <xs:enumeration value="NONE"/>
  <xs:enumeration value="NEAREST"/>
  <xs:enumeration value="LINEAR"/>

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: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

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