15bd8deadSopenharmony_ciName 25bd8deadSopenharmony_ci 35bd8deadSopenharmony_ci SGIX_cylinder_texgen 45bd8deadSopenharmony_ci 55bd8deadSopenharmony_ciName Strings 65bd8deadSopenharmony_ci 75bd8deadSopenharmony_ci GL_SGIX_cylinder_texgen 85bd8deadSopenharmony_ci 95bd8deadSopenharmony_ciVersion 105bd8deadSopenharmony_ci 115bd8deadSopenharmony_ci $Date: 1999/04/03 08:40:44 $ $Revision: 1.3 $ 125bd8deadSopenharmony_ci 135bd8deadSopenharmony_ciNumber 145bd8deadSopenharmony_ci 155bd8deadSopenharmony_ci 140 165bd8deadSopenharmony_ci 175bd8deadSopenharmony_ciDependencies 185bd8deadSopenharmony_ci 195bd8deadSopenharmony_ciOverview 205bd8deadSopenharmony_ci 215bd8deadSopenharmony_ci This extension adds two texture coordinate generation modes, both 225bd8deadSopenharmony_ci of which generate a texture coordinate based on an intersection 235bd8deadSopenharmony_ci of the reflected ray with a local cylinder. The difference between 245bd8deadSopenharmony_ci the two modes lies in the coordinate space in which the reflected 255bd8deadSopenharmony_ci ray is assumed to reside. 265bd8deadSopenharmony_ci 275bd8deadSopenharmony_ciNew Procedures and Functions 285bd8deadSopenharmony_ci 295bd8deadSopenharmony_ci None 305bd8deadSopenharmony_ci 315bd8deadSopenharmony_ciNew Tokens 325bd8deadSopenharmony_ci 335bd8deadSopenharmony_ci Accepted by the <params> parameters of TexGeni, TexGenf, TexGend, 345bd8deadSopenharmony_ci TexGeniv, TexGenfv, and TexGendv: 355bd8deadSopenharmony_ci 365bd8deadSopenharmony_ci EYE_CYLINDER_SGIX 375bd8deadSopenharmony_ci OBJECT_CYLINDER_SGIX 385bd8deadSopenharmony_ci EYE_CYLINDER_RADIUS_SGIX 395bd8deadSopenharmony_ci OBJECT_CYLINDER_RADIUS_SGIX 405bd8deadSopenharmony_ci 415bd8deadSopenharmony_ciAdditions to Chapter 2 of the 1.0 Specification (OpenGL Operation) 425bd8deadSopenharmony_ci 435bd8deadSopenharmony_ci If TEXTURE_GEN_MODE indicates OBJECT_CYLINDER_SGIX, then the 445bd8deadSopenharmony_ci generating function for the coordinate indicated by <coord> is 455bd8deadSopenharmony_ci 465bd8deadSopenharmony_ci XXX 475bd8deadSopenharmony_ci 485bd8deadSopenharmony_ci In other words, compute the reflection vector in object space from 495bd8deadSopenharmony_ci the point P in object space, and find the intersection of this 505bd8deadSopenharmony_ci reflection vector with a cylinder of radius r oriented along the x 515bd8deadSopenharmony_ci axis in object space. If the cylinder is cut perpendicular to its 525bd8deadSopenharmony_ci axis at the point where the reflected ray intersects the cylinder, 535bd8deadSopenharmony_ci g is the normalized arclength of the arc from the xy plane to the 545bd8deadSopenharmony_ci intersection point along this cross section. 555bd8deadSopenharmony_ci 565bd8deadSopenharmony_ci r is specified by calling TexGeni, TexGenf, or TexGend with <pname> 575bd8deadSopenharmony_ci set to OBJECT_CYLINDER_SGIX and <params> set to r or by calling 585bd8deadSopenharmony_ci TexGeniv, TexGenfv, or TexGendv set to OBJECT_CYLINDER_SGIX and 595bd8deadSopenharmony_ci <params> pointing to an array containing r. 605bd8deadSopenharmony_ci 615bd8deadSopenharmony_ci If TEXTURE_GEN_MODE indicates EYE_DISTANCE_TO_POINT_SGIS, then the 625bd8deadSopenharmony_ci generating function for the coordinate indicated by <coord> is the 635bd8deadSopenharmony_ci same as above, but ... 645bd8deadSopenharmony_ci 655bd8deadSopenharmony_ci XXX 665bd8deadSopenharmony_ci 675bd8deadSopenharmony_ci In other words, compute the reflection vector in eye space from the 685bd8deadSopenharmony_ci point P in eye space, and find the intersection of this reflection 695bd8deadSopenharmony_ci vector with a cylinder of radius r oriented along the x axis in 705bd8deadSopenharmony_ci eye space. If the cylinder is cut perpendicular to its axis at the 715bd8deadSopenharmony_ci point where the reflected ray intersects the cylinder, g is the 725bd8deadSopenharmony_ci normalized arclength of the arc from the xy plane to the intersection 735bd8deadSopenharmony_ci point along this cross section. 745bd8deadSopenharmony_ci 755bd8deadSopenharmony_ci r is specified by calling TexGeni, TexGenf, or TexGend with <pname> 765bd8deadSopenharmony_ci set to EYE_CYLINDER_SGIX and <params> set to r or by calling 775bd8deadSopenharmony_ci TexGeniv, TexGenfv, or TexGendv set to EYE_CYLINDER_SGIX and <params> 785bd8deadSopenharmony_ci pointing to an array containing r. 795bd8deadSopenharmony_ci 805bd8deadSopenharmony_ciAdditions to Chapter 3 of the 1.1 Specification (Rasterization) 815bd8deadSopenharmony_ci 825bd8deadSopenharmony_ci None 835bd8deadSopenharmony_ci 845bd8deadSopenharmony_ciAdditions to Chapter 4 of the 1.1 Specification (Per-Fragment Operations 855bd8deadSopenharmony_ciand the Frame Buffer) 865bd8deadSopenharmony_ci 875bd8deadSopenharmony_ci None 885bd8deadSopenharmony_ci 895bd8deadSopenharmony_ciAdditions to Chapter 5 of the 1.1 Specification (Special Functions) 905bd8deadSopenharmony_ci 915bd8deadSopenharmony_ci None 925bd8deadSopenharmony_ci 935bd8deadSopenharmony_ciAdditions to Chapter 6 of the 1.1 Specification (State and State Requests) 945bd8deadSopenharmony_ci 955bd8deadSopenharmony_ci None 965bd8deadSopenharmony_ci 975bd8deadSopenharmony_ciNew State 985bd8deadSopenharmony_ci Initial 995bd8deadSopenharmony_ci Get Value Get Command Type Value Attrib 1005bd8deadSopenharmony_ci --------- ----------- ---- ------- ------ 1015bd8deadSopenharmony_ci EYE_CYLINDER_SGIX GetTexGeniv 1 x R {0} texture 1025bd8deadSopenharmony_ci OBJECT_CYLINDER_SGIX GetTexGeniv 1 x R {0} texture 1035bd8deadSopenharmony_ci EYE_CYLINDER_RADIUS_SGIX GetTexGeniv 1 x R {1} texture 1045bd8deadSopenharmony_ci OBJECT_CYLINDER_RADIUS_SGIX GetTexGeniv 1 x R {1} texture 1055bd8deadSopenharmony_ci 1065bd8deadSopenharmony_ci 107