Menu

#50 cmodfix support for per-polygon surface textures

open
nobody
None
5
2008-02-09
2008-02-09
Selden Ball
No

Since Celestia's model code supports textures on individual polygons when separate group lists are used, it would be very helpful if cmodfix optimization options did too.

Currently I'm using the -b option to translate ASCII CMOD files which have textures on individual polygons. That works, but it'd be nice to be able to use the optimization and normal generation options, too.

Discussion

  • Chris Laurel

    Chris Laurel - 2008-02-12

    Logged In: YES
    user_id=159994
    Originator: NO

    Is the request for optimization and normal generation to work across groups with different textures?

     
  • Selden Ball

    Selden Ball - 2008-02-12

    Logged In: YES
    user_id=662401
    Originator: YES

    Sorry I wasn't clearer.

    Currently when cmodfix is asked to optimize a CMOD file which contains a Mesh which contains multiple node lists, with several different materials specified, it merges them all into one list with one material, losing the other materials.

    It'd be very helpful if it only merged and optimized those lists which specified the same materials, so that the different materials were still visible on the surfaces of the output model.

    I don't know how this would affect how normals and tangents are calculated.

     
  • Chris Laurel

    Chris Laurel - 2008-02-12

    Logged In: YES
    user_id=159994
    Originator: NO

    The point of the optimize option is to coalesce lists with identical materials. If the model looks different after running cmodfix, then there's a bug.

     
  • Selden Ball

    Selden Ball - 2008-02-12

    Logged In: YES
    user_id=662401
    Originator: YES

    If you say so :-)

    I had a recollection from long ago of a comment that only a single material per Mesh was supported.

     

Log in to post a comment.