Pack Making Models Windows - DonBruce64/MinecraftTransportSimulator GitHub Wiki

Windows are an optional feature for models that allow for the standard MC glass texture to be automatically applied on parts of the model. This application happens on the outside or inside of the window depending on the config settings of the player. They are perhaps the most optional feature on models, as many modelers will prefer to use their own texture rather than the default Vanilla texture. However, this requires texturing a bunch of areas that you don't normally have to do, and allows for the windows to be disabled via the configs, so it's a mixed bag.

If you want to make a window, it's a simple as making a shape that's either a triangle or square and having window (case insensitive) in the name. This shape, unlike everything else on the model, does NOT need to be textured or properly UV-mapped as MTS auto-maps the shape before rendering. As such, windows MUST be comprised of a single triangle or one or more squares; attempting to make a window with multiple triangles will cause the game to crash. Note that since this only affects the texture-mapping, windows may still be animated like normal objects.

Do note that the direction the face is facing affects how MTS interprets the "outside" of the window. If you make your window points in the wrong order, MTS will think the windows faces inside the vehicle, and you'll have a lot of confused (and complaining) players if they want to only see the outside windows. A simple flipping of normals in your nearest modeling program will fix this.