RE: OpenGL 1.4 Spec and RGB_SCALE/ALPHA_SCALE
Pat Brown <pbrown <at> nvidia.com>
2003-07-07 17:19:21 GMT
Bert,
IIRC, RGB_SCALE in OpenGL 1.4 should be functionally equivalent to that
found in the EXT/ARB_texture_env_combine extensions.
There should probably be language in the spec soon after TexEnv is
introduced that says "if <target> is RGB_SCALE or ALPHA_SCALE, the RGB or
alpha scale factors are set to...". That would make it much more clear.
Pat
--
Pat Brown (pbrown <at> nvidia.com)
OpenGL Developer, NVIDIA Corporation
-----Original Message-----
Sent: Wednesday, July 02, 2003 3:16 PM
To: Multiple recipients of list OPENGL-GAMEDEV-L
Hi,
how is RGB_SCALE set according to the OpenGL 1.4 spec? It was part of
the texture_env_combine extension and was accessed as a TexEnv
parameter there. However, nothing is said in the 1.4 spec to this
extent:
"When target is TEXTURE_ENV, the possible environment parameters are
TEXTURE_ENV_MODE, TEXTURE_ENV_COLOR, COMBINE_RGB, and COMBINE_ALPHA."
RGB_SCALE is only mentioned briefly on page 153:
"If the value of TEXTURE_ENV_MODE is COMBINE, the form of the texture
function depends on the values of COMBINE_RGB and COMBINE_ALPHA,
according to table 3.24. The RGB and ALPHA results of the texture
function are then multiplied by the values of RGB_SCALE and
ALPHA_SCALE, respectively."
Also it is listed as possible parameter for GetTexEnvfv() on page 232:
"RGB_SCALE 2*x R3 GetTexEnvfv 1.0 RGB post-combiner scaling 3.8.12
texture"
So one could infer that RGB_SCALE is indeed a TexEnv() parameter. Was
this simply forgotten in the spec? Actually, the 1.3 spec has the same
problem - did nobody notice until now?
-- Bert
-----
FAQ and OpenGL Resources at:
http://www.geocities.com/SiliconValley/Hills/9956/OpenGL
--
Author: Bert Freudenberg
INET: bert <at> isg.cs.uni-magdeburg.de
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru <at> fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
-----
FAQ and OpenGL Resources at:
http://www.geocities.com/SiliconValley/Hills/9956/OpenGL
--
--
Author: Pat Brown
INET: pbrown <at> nvidia.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru <at> fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).