OpenFlight Issues

#1
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.
 
Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#2
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.
 
#3
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

Administrator
Staff member
FSDevConf team
Resource contributor
#4
Hi,

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