conversation with jiba on irc channel #slune who solved my problem
eblouir73: hello, could someone tell me if it's possible to export well
oriented uv textures with "blender2cal3d-2.py" ?
eblouir73: I have a curious problem of inverted y axis textures on each
faces in Soya
eblouir73: although all seems to be good in Blender ...
jiba: i don't have this problem...
jiba: do you have set EXPORT_FOR_SOYA to 1 in the script ?
eblouir73: yes , at least I have selected "export for soya"
eblouir73: in blender
jiba: yes, that's it
eblouir73: thanks for your answer. Could it be a version problem with
blender ? (I use 2.37a)
jiba: maybe... i use an older version
eblouir73: ok, i'll try that
jiba: you can also hack the script by modifying the method
Map.to_cal3d_xml()
jiba: just replace self.v by -self.v
eblouir73: great , i try this
eblouir73: it worked, thanks again jiba. I needed to replace
"Map.to_cal3d()" instead but I think it was what you wanted to say
eblouir73 it's far better with this minor change :-)
I have another problem with "blender2cal3d_2.py" with uv textures.
the textures are exported and are drawn in Soya, but the "Y axis" is
inverted. Simply said, the upper part of the texture specified in
blender's uv face appears in the lower part of the uv face in Soya.
And when two shapes with textures are superimposed the textures aren't
drawn well too. (the textures are dispatched in different
direction). Without textures there's no visible problem . I have
tested this with my own hack of demos exemples, and with
"game_skel-5.py" ( I replaced the Balazar character to test)
I don't really think it's related but when I export a cal3d model
and I launch it in Soya the Y axis in blender correspond to z axis
in soya, and I need to reorient the character in blender (z axis is
y axis).
Maybe the uv problem I encounter are well known or it's something
stupid I do but I haven't found any explanation about this now.