Re: User Clipping Planes
Rhadamés Carmona <[email protected]>
| Newsgroups | gmane.games.devel.opengl |
|---|---|
| Organization | Fat City Network Services, San Diego, California |
| Message-ID | <[email protected]> |
I used GLSL under Fx5200 and 6800 and gl_ClipVertex works...
void main()
{
vec4 clipVertex = gl_ModelViewMatrix * gl_Vertex;
gl_Position = ftransform();
for (int i = 0; i < 6; i++)
gl_ClipCoord[i] = dot(clipVertex, gl_ClipPlane[i]);
}
Download latest drivers, latest glExt.h or latest glew.
I hope it works 2u
All d best!.
RIX
----- Original Message -----
To: "Multiple recipients of list OPENGL-GAMEDEV-L"
<[email protected]>
Sent: Tuesday, May 31, 2005 9:03 AM
> Hello,
>
> (in some way further discussion to CG Using Clipping Planes thread ...)
>
> okay we learned that if we activate programmable vertex shaders our user
> clipping does not do anymore:
> there is only a gl_Position = ftransform ()
> and no gl_ClipVertex = ftransformClip () or so ... (see spec)
>
> (by the way on a ati card i got user clipping planes working with a
> programmable vertex shader and the gl_ClipVertex set correctly?! but thats
> another thing ...)
>
> ------------------------------------------------------------------------
>
> now i only activate the programmable pixel shader and leave the vertex
> fixed pipeline as is.
>
> then the fx5x series does no user clipping but fx6x does.
> there are also some ati cards that do user clipping and some who do not.
>
> does anyone have similar experiences? how can this be?
>
> Thanks,
> Andreas
>
>
>
> -----
> FAQ and OpenGL Resources at:
> http://www.geocities.com/SiliconValley/Hills/9956/OpenGL
>
> --
> Author: Andreas Lachner
> INET: [email protected]
>
> Fat City Hosting, San Diego, California -- http://www.fatcity.com
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [email protected] (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: =?iso-8859-1?Q?Rhadam=E9s_Carmona?=
INET: [email protected]
Fat City Hosting, San Diego, California -- http://www.fatcity.com
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [email protected] (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).