From: Eric E. <eri...@fr...> - 2005-09-11 07:00:31
|
Christos Dimitrakakis wrote: >> >> While I can use a knife tool and a lot of vertex merging to reform the >> landscape inside the circuit into something more reasonable, I'm >> wondering if I'm missing something. I've noticed there are plenty of >> options in trackgen that I don't understand! I've also noticed that >> some of the tracks I've downloaded seem to have better triangulation >> inside the track than I've acheived. >> > > There are a couple of fields inside the track .xml that could help. I > think the one you want is: > > <section name="Terrain Generation"> > <attnum name="group size" val="200"/> > </section> > > The problem with the inner mesh being triangulated badly probably > appears on tracks where there is a very large empty inner area. If the > above does not work, then the only other thing you could do is to modify > trackgen to generate meshes differently (perhaps a grid-based generation > in the inner terrain) > The group size is used to split the terrain in smaller objects to help the scene graph make his job. If all the terrain is done in one object, it will never be culled and the performances will be awful. This is done after the mesh generation and don't participate in the mesh geometry. You can use additional ac3d files (see e-track-6-relief.ac in the sources) initially for setting altitude on the terrain but as the points are used in the generated mesh, it can be useful to give better mesh. If a <track>-relief.ac file exists in the directory it will be used for the terrain generation by trackgen. The mesh generator stops on closed polys, so if you want a hole in the mesh, you can draw closed polys, else you draw lines and they participate to the mesh. If you supply the external border in the "relief" file, you can used the trackgen option "-B" to use it as external border instead of generating the default rectangular border. last note, you have to set properties to your lines and polys in the "relief" files : "internal" for the inner mesh and "external" for outer mesh. May be a file containing the commands and parameters used to generate the track should be present in the track sources to help understanding the tools. Bye, Eric. |