Page MenuHome

add COLLADA export of sampler2D filter/mipmap/wrapping settings
Open, NormalPublic

Description

Hi,

this adds support for basic sampler settings to the current COLLADA exporter:

<sampler2D>
...
<wrap_s>CLAMP</wrap_s>
<wrap_t>CLAMP</wrap_t>
<minfilter>LINEAR_MIPMAP_LINEAR</minfilter>
<magfilter>LINEAR</magfilter>
<mipfilter>LINEAR</mipfilter>
<mipmap_maxlevel>8</mipmap_maxlevel>
<mipmap_bias>1</mipmap_bias>
...
</sampler2D>

- Mipmapping and filtering is controlled by Interpolate and Mipmap checkboxes in the texture properties
- maxlevel and bias is currently hardcoded (sry did not find a suitable edit value)
- wrap modes are taken from the settings of UV editor (wrap checkbox), not the texture properties, since the UV editor settings correspond more to what you see and get later on.

have fun,
daniel

Details

Type
Patch