When to "Pop" and when to "Push" when building a meshtree - Tomb-Raider-Level-Editor/Tutorials GitHub Wiki

Written by sapper

I've designed a flowchart to help determine when to "Pop" and when to "Push" and when to "Pop" and "Push" when building a new moveable object with Wadmerger's Meshtree Editor.

Included in the zip are 4 pdf files.

The flowchart, a blank worksheet to use with the flowchart and the two completed worksheets shown below which serve as examples.

The idea is to print off a worksheet, draw your meshtree on it then use the flowchart to construct the meshtree structure and complete the list on the worksheet.

In the worked examples I use 1, 2, 3 for the mesh structure instead of "Pop" and "Push" and "Pop" and "Push" respectively, since I will release a program that will use the numbers but you can write "Pop" or "Push" or "Pop" and "Push" which are also indicated by the flowchart.

Also, Josep Borrut's TR Wad Reorganizer (see trle.net) uses the numbers.

MeshTreeTutorial-MeshTreeKit.zip

Flowchart

image

Examples

WhiteTiger wanted to add a skirt to a moveable.

I assumed the moveable had the same meshtree as Lara_Skin and used the flowchart to determine what changes had to be made to the meshtree.

The first picture is the meshtree for Lara_Skin and the second picture shows how the structure would need to be changed to add the skirt.

image

image