From: MLM Veraart (veraart++at++fel.tno.nl)
Date: 08/28/2003 10:52:16
Hello,
I have a problem with the flight loader that it can't find textures for models
when they are in a certain directory structure.
I have a lot of textured models that are put inside a separate directory.
Each directory contains the flight file and the accompanied textures and attribute files.
The directory structure I use is
-- models/
+ model001.flt
+ model002.flt
+ model003.flt
|
+ model001/
+ model001.flt
+ texture001.01.rgb
+ texture001.02.rgb
+ model002/
+ model002.flt
+ extern01.flt
+ texture002.01.rgb
+ model003/
:
I have made flight files inside the 'models' directory that only contain an external reference to the
model file in a subdirectory.
The 'models' directory is part of PFPATH.
When I give the command 'perfly model001.flt'
it finds 'models/model001.flt'
and loads the external './model001/model001.flt'
But it fails to load the textures belonging to model001.flt.
I get errors like
Can't find texture "./texture001.01.rgb"
When loading 'models/model002.flt' the loader can find 'models/model002/model002.flt'
but can't find the external './extern01.flt' referenced in 'model002/model002.flt' and the textures.
My question is:
Why are the textures and external files not (first) searched RELATIVE to the flightfile?
Flight files are modelled with relative paths.
Putting all modelxxx directories in PFPATH is not an option because the total length will be very big.
Are the source files for the flight loader available?
If not, will this be corrected in the next performer release?
Mario Veraart
-- ------------------------------------------------------------------------------ The disclaimer that applies to e-mail from TNO Physics and Electronics Laboratory can be found on: http://www.tno.nl/disclaimer/email.html ------------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Thu Aug 28 2003 - 11:01:55 PDT