Texture clamping in maya?


We were having a bit of trouble with background flats in our Maya-generated scenes: a stripe of the bottom edge of the texture is visible at the very top edge. I believe it’s because the ‘wrapu’ and ‘wrapv’ options for the textures in the eggs generated by maya2egg are set to ‘repeat’ by default.

Is there any way to edit the model (or provide options to maya2egg) to cause these to default to ‘clamp?’ I can go set them manually, but in general I like to retain as many details like this one in the model file itself as I can.


Yes, maya2egg respects the options set in the Maya shader. By default, Maya sets these to “wrap” in both dimensions, but you can change it explicitly in the shader attributes.