BTG file format: Difference between revisions

Jump to navigation Jump to search
(more information about triangles, fixed triangle fans)
Line 21: Line 21:


All measurements are in meters.
All measurements are in meters.
=== Texture Coordinates ===
Texture coordinates are used to map textures onto 3D faces.
For this each corner vertex of a face is associated with the location of the texture pixel to be shown at this corner.
The texture is then projected onto the face using interpolation between the corner vertices.
The x- and y-parts of the coordinates are specified in the range 0.0 to 1.0, where the location <code>(0,0)</code> relates to the origin of the texture and an x- respectively y-part of 1.0 corresponds to vertices at full width respectively height of the texture.
Texture coordinates exceeding the range 0.0 to 1.0 are wrapped around, so that repeating textures are possible.
For example if the x-parts of the texture coordinates of a face cover the range -2.0 to 3.0, the texture repeats five times horizontally.
[[TerraGear]] makes heavy use of this feature for larger areas of the same material.


=== Endianness ===
=== Endianness ===
26

edits

Navigation menu