TKE_Color
Opcode
ASCII |
" (double quote) |
Hexadecimal |
22 |
Decimal |
34 |
Operands
Variable geometry,
Variable channels,
[Variable diffuse],
[Variable specular],
[Variable mirror],
[Variable transmission],
[Variable emission],
[Float gloss],
[Float index],
[Variable environment],
[Variable bump]
Note: all of the optional Variable fields are of this format:
Byte length,
if length =
0:
(3)xByte rgb
if length >
0:
(length)xByte string
geometry |
bitmask of affected geometry. 1 byte, if high bit set a second byte follows.
bit definitions are here |
channels |
color components of specified geometry types. 1 byte, if high bit set a second byte follows |
diffuse |
basic color of the objects |
specular |
color modulation applied to directly reflected lights |
mirror |
color modulation applied to indirectly reflected light, such as form an
environment map or during ray-tracing |
transmission |
color modulation applied to light passing through the object |
emission |
color supplied directly by the object |
gloss |
shininess of the object |
index |
index of refraction of the object (may be useful with ray-tracing) |
environment |
environment map applied to the object |
bump |
bump map applied to the object |
Notes
This is the
color which will apply to geometry in the currently opened segment/geometry. For detailed information on what this means in the HOOPS/3dGS refer to the Set_Color
specification in the 3dGS Reference Manual.
Most color components may be
either a simple RGB triplet (values scaled from 0-255) or a string
description (such as "light blue" or "brick").
Channel bits
0001 |
Diffuse |
0002 |
Specular |
0004 |
Mirror |
0008 |
Transmission |
0010 |
Emission |
0020 |
Gloss |
0040 |
Index |
0080 |
indicates additional byte required |
0100 |
Environment |
0200 |
Bump |
|