Re: [Plib-devel] LoadASE problem.
Brought to you by:
sjbaker
From: <Va...@t-...> - 2000-02-23 16:19:46
|
Steve Baker wrote: > > Also, the _ssgMakePath function chops off the leading path > information or something...we need ssgModelPath to be applied > consistantly across all loaders. What ssgLoadAC does is: > > * If the path starts with a slash - use it as-is. > * If the path starts with anything else, prepend _ssgModelPath > and a slash. > > I'm not sure if that's the *perfect* rule - but it's what existing > applications expect. It's definitely not perfect. If I want to load c:\project\my_game\model.ssg but my path is set to d:\files\3d_models\ I get a big problem as d:\files\3d_models\c:\project\my_game\model.ssg doesn't exist. Couldn't we feed the loader with the whole absolute path and the loader gets all the files from the dir that the specified file is in? Perhaps we need a texture modifier. (Hypothetic) Example: Texture modifier is: '../textures' Path is: 'd:/files/3d_models/objects/model.ssg' This would load the model d:/files/3d_models/objects/model.ssg and the the textures d:/files/3d_models/textures/model_texture_0.rgb d:/files/3d_models/textures/model_texture_1.png d:/files/3d_models/textures/model_texture_2.rgb CU, Christian |