From ae34966c76663e4b01d872308771f5a638b05a7e Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 25 Jul 2008 18:32:54 +0000 Subject: documentation updates --- doc/models.html | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'doc/models.html') diff --git a/doc/models.html b/doc/models.html index 0567507..a2835aa 100644 --- a/doc/models.html +++ b/doc/models.html @@ -136,20 +136,34 @@ Textures

- The engine does not support model textures. Any real texturing information - is ignored. + The engine does not support textured models. Every brush face is drawn + using a single color and any real texturing information is ignored.

- The textures in the directory /textures/colors can be used by + The color textures in the directory /textures/colors can be used by the editor. The engine translates these textures into RGB colors when the model is loaded. Unknown textures will be colored hot pink. + +

+ The fixed set of colors is rather limited, more colors can be added by + using the common/entity_* family of textures. The actual in-game + color information for these faces will be provided by the engine. +

+ The special texture common/entity represents an object's primary color. + In-game the faces with this texture will be drawn in the color that the entite has + provided as the object's primary color. For example, for player-controled ships will + have their owner's color as primary color.

- You can also use two special textures from the /textures/common - directory: as explained above, faces with the common/caulk texture - will be ignored on load. The common/clip texture is reserved for - future use. At the moment they will be ignored as well. + Similar, the texture common/entity_second represents on object's secondary + color. common/entity_third will be a mix of the primary and secondary color. + Each of these textures also has a _dark variant.

+ You can also use two other special textures: as explained above, + faces with the common/caulk texture will be ignored on load. +

+ The common/clip texture is reserved for + future use. At the moment they will be ignored as well.

At the time of writing, texture names are hardcoded - in src/model/mapfile.cc. + in src/model/map.cc.

Surface flags @@ -157,8 +171,7 @@

The only supported surface flag is light. This will render the brush face fullbright and can be used to create light-emiting objects - or windows. The light flag does not work in conjunction with - the common/entity shader. + or windows.

Lights -- cgit v1.2.3