egg-palettize swallowing the blend_no_occlude attribute?

Hi,

When egg-palettizing models with a texture that uses the blend_no_occlude attribute, e.g. something like

<Texture> tree_shadow {
  "data/Textures/tree_shadow.png"
  <Scalar> format { rgba }
  <Scalar> wrapu { clamp }
  <Scalar> wrapv { clamp }
  <Scalar> envtype { modulate }
  <Scalar> alpha { blend_no_occlude }

then egg-palettize replaces my alpha attribute of blend_no_occlude with blend.
So it would then look like:

<Texture> tree_shadow {
  "data/Textures/tree_shadow.png"
  <Scalar> format { rgba }
  <Scalar> wrapu { clamp }
  <Scalar> wrapv { clamp }
  <Scalar> envtype { modulate }
  <Scalar> alpha { blend }

Does anybody have a clue why? To me this looks like a bug. But maybe I’m missing something?

Thanks in advance,

Erik

egg-palettize tries to be smart about the blend mode, since this was so frequently set incorrectly by our artists. So it ignores whatever is already in the egg file and replaces it with either none, dual, or blend, according to its own analysis of the texture image itself.

Arguably this is incorrect behavior when you actually have artists who know what they’re doing, and there should be a global override to change this behavior. There isn’t a global override, but you can override it on a per-texture basis, in the textures.txa file, like this:

tree_shadow.png: blend_no_occlude

David

Hi David,

Thanks, that worked. Problem solved.

Cheers,

Erik