1
General Anim8or Forum / Re: Where to find blend mode for textures in .3ds export?
« on: August 10, 2012, 10:52:42 am »
dwsel:
Thanks for the advice. As it happens, I have looked at other formats (I noticed that the
native .an8 format exports the setting, for one), but I would prefer to improve my .3ds
loader if possible. For one thing, I have dozens of models in that format, and it simplifies
things for me to have all of my assets in the same format.
Also, Anim8or loads the correct texture blend mode for the materials from the exported
.3ds file, so it must be writing that information somewhere in order to correctly render
the model that it exported.
Poring over the various .3ds specs, there are two potential places where this setting
could get written:
1. in a chunk specifically designed for it (0xa082)
2. in the material flags chunk (0xa351).
However, according to my loader (and hex editor), these chunks do not appear in the exported file.
In the end, I may have to add support for other formats (or add the ability to override the texture
blending in my effects definition files), but the stubborn part of me wants to make sure that there
is no better way first.
Thanks again!
Thanks for the advice. As it happens, I have looked at other formats (I noticed that the
native .an8 format exports the setting, for one), but I would prefer to improve my .3ds
loader if possible. For one thing, I have dozens of models in that format, and it simplifies
things for me to have all of my assets in the same format.
Also, Anim8or loads the correct texture blend mode for the materials from the exported
.3ds file, so it must be writing that information somewhere in order to correctly render
the model that it exported.
Poring over the various .3ds specs, there are two potential places where this setting
could get written:
1. in a chunk specifically designed for it (0xa082)
2. in the material flags chunk (0xa351).
However, according to my loader (and hex editor), these chunks do not appear in the exported file.
In the end, I may have to add support for other formats (or add the ability to override the texture
blending in my effects definition files), but the stubborn part of me wants to make sure that there
is no better way first.
Thanks again!