PDA

View Full Version : OpenFlight Issues


Jeffrey Stähli
05 Feb 2009, 14:28
I will post all issues concerning the openflight export function here:


Texture uvw mappings "beyond the edge" is incorrect in the openflight model
Double sided textures (as defined in the FSX material parameters) seems not to be converted into the openflight model

What I mean with beyond the edge is the technique used when we want to achieve repeatitive tiling. E.g. for a fence, we just extend the right edge to U=20.0 in order to have 20 "fence tiles" on the polygon. I think you get the idea :D
In the openflight model, only the portion within the [0.0...1.0] uv-intervals are correctly displayed, the rest of the polygon is just a streched mess.

In the mdl tweaker tool, it works.

arno
05 Feb 2009, 15:25
Hi,

Texture uvw mappings "beyond the edge" is incorrect in the openflight model

It might be something in the attr file I think. I remember there are settings there for clamp or not, etc. I will check if there is a difference with MDL Tweaker for this part.

Double sided textures (as defined in the FSX material parameters) seems not to be converted into the openflight model

Let me check, I think I forgot to implement that flag in the OpenFlight writer indeed.

Jeffrey Stähli
07 Feb 2009, 07:41
Yep, looking in a hex editor, the integer flag is set to 1 = 'TX_CLAMP' at the moment. Changing it to 0 = 'TX_REPEAT' solves it.

arno
07 Feb 2009, 09:07
Hi,

I fixed both issues this morning. So in the next nightly build you will get those changes.

Jeffrey Stähli
07 Feb 2009, 10:47
Perfect! Thanks, Arno.