I found the solution to my problem.
Well it's not really a solution it is a workaround.

I don't know who is the one to blame here but this looks more like an issue of Director rather of Maya. However I am not sure. Maybe someone can verify this.


The situation:

You have a model with uv coordinates beyond the 0..1 space.
You do this intentionally to get a proper tiling of your texture in shockwave3d
because the repeatU and repeatV settings of the place2dTexture node of the shader in Maya have no effect for the final result


The problem:

The texture tiling looks ok in the maya viewport and ok in the shockwave3d preview window but it looks really different in director. In my situation the texture repeated much more often than expected.

The workaround:

you have to reset the "textureTransform" attribute of your shader to the identity 
matrix manually by script in Director
because it looks like the matrix is "conformed" to a 0..1 range during export or 
during import.

In my case the attribute

member.shader[1].textureTransform

looked like this:

(0.16, 0.0, 0.0, 0.0,
0.0, 0.16, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0)

i reset it to this:

(1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0)

That works but it has to be done every time you start the movie in director.
It seems the best way is to do it in the startMovie handler therefore or in a 
beginSprite handler of an attached behavior.


I posted this also on the Maya List which is actively monitored by Alias staff.

Please note that the problem occurs only in Director not in Mayas preview window.
Therefore it looks more like a problem of Director if the shockwave3d previewer of 
Maya is right.

I find this really odd especially because it happens not all the time but only most 
times.
It costed me a lot of time to resolve this.
Am I missing something or is this behavior intentionally?

It would be nice to be resolved in future releases or to be a more understandable 
behavior.

Cheers,

Lutz


[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to