DIF/greater than 256 surfaces on an interior hull
From TDN
[edit] IntroductionThis is a classic example of this error with two options on how to fix it.
[edit] The ErrorThe error you usually get looks something like this:
Fatal-ISV: (\Projects\TorqueSE\engine\interior\interior.cpp @ 1386) Error, > 256 surfaces on an interior hull
[edit] Fixes[edit] A FixSo one fix that is sometimes appropriate is pre-splitting the offending brush surface. In your maps you could split it up even further, but in this case I took the floors and split them in half:
[edit] A Better FixSo this map works, but there are some problems still. These little slivers of surfaces do not shadow well with the scene lighting. Even with a low light scale and a large lightmap border you'll get little spots where light pokes thru in your shadows. Also if this was a larger map the excess of triangles created on these fractured surfaces could start to cause performance problems. To correct this we go with another method, detail brushes. When we set all our columns into detail brushes (or we can set the floors to detail brushes) and export we see the surface count in the export statistics drop from 1231 surfaces to 479. Looking at the DIF in Torque again we can see why: Detail brushes do not force intersecting brushes to split. In this case, the columns intersect with the floors, so if either the floors or columns are set to detail brushes, they will not split each other. [edit] ConclusionIn the future the DIF format may change to remove this limitation, but for now you know the reason this error occurs and how to avoid it. |
Categories: TGE | DIF