Hi Jean-Sébastien,

On Thu, May 26, 2011 at 6:31 AM, Jean-Sébastien Guay <
[email protected]> wrote:
>
> I tried this, and I notice it's an extra line in the material description
> string. I'm wondering why you didn't just put the extra attributes at the
> end of the Map ... line for the same map (after the filename)?
>

The reason I separated the attributes is because in Max there is a
difference between a map channel (diffuse, specular, bump, etc...) and a
bitmap type (bitmap, normal, mix, reflection, etc..). Technically, you can
have a normal bitmap on the diffuse channel, or any other channel. I might
add keywords for the other supported bitmap types in the future.

Also, placing the bitmap attributes on a separate line should make parsing
the description more future-proof. If a new "Map" attribute is added in the
future, that would move the bitmap attributes over one column, which could
break compatibility with older parsers. Having the bitmap attributes on a
separate line should avoid this issue.

Cheers,
Farshid
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to